Skip to content

Commit

Permalink
[frontend] rename queryRef to data (#8115)
Browse files Browse the repository at this point in the history
  • Loading branch information
delemaf committed Jan 23, 2025
1 parent 9dd4ad3 commit 9b58d67
Show file tree
Hide file tree
Showing 23 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const RootChannel = ({ queryRef, channelId }: RootChannelProps) => {
'sightings',
'channels',
]}
queryRef={channel}
data={channel}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const RootMalware = ({ queryRef, malwareId }: RootMalwareProps) => {
'infrastructures',
'sightings',
]}
queryRef={malware}
data={malware}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const RootTool = ({ queryRef, toolId }: RootToolProps) => {
'observables',
'sightings',
]}
queryRef={tool}
data={tool}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const RootVulnerability = ({ queryRef, vulnerabilityId }: RootVulnerabilityProps
'sightings',
'infrastructures',
]}
queryRef={vulnerability}
data={vulnerability}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const stixCoreObjectKnowledgeBarFragment = graphql`
const StixCoreObjectKnowledgeBar = ({
stixCoreObjectLink,
availableSections,
queryRef,
data,
attribution,
}) => {
const { t_i18n, n } = useFormatter();
Expand All @@ -84,7 +84,7 @@ const StixCoreObjectKnowledgeBar = ({
const isInAvailableSection = (sections) => availableSections.some((filter) => sections.includes(filter));
const { relationshipsWithoutRelatedToDistribution, stixCoreObjectsDistribution, relatedEntities } = useFragment(
stixCoreObjectKnowledgeBarFragment,
queryRef,
data,
);
const settingsMessagesBannerHeight = useSettingsMessagesBannerHeight();

Expand Down Expand Up @@ -812,7 +812,7 @@ StixCoreObjectKnowledgeBar.propTypes = {
id: PropTypes.string,
stixCoreObjectLink: PropTypes.string,
availableSections: PropTypes.array,
queryRef: PropTypes.object,
data: PropTypes.object,
attribution: PropTypes.arrayOf(PropTypes.string),
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const RootEvent = ({ eventId, queryRef }: RootEventProps) => {
'tools',
'observables',
]}
queryRef={event}
data={event}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const RootIndividual = ({ individualId, queryRef }: RootIndividualProps) => {
'tools',
'observables',
]}
queryRef={individual}
data={individual}
/>
)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const RootOrganization = ({ organizationId, queryRef }: RootOrganizationProps) =
'vulnerabilities',
'observables',
]}
queryRef={organization}
data={organization}
/>
)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const RootSector = ({ sectorId, queryRef }: RootSectorProps) => {
'tools',
'observables',
]}
queryRef={sector}
data={sector}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const RootSystem = ({ systemId, queryRef }: RootSystemProps) => {
'observables',
'vulnerabilities',
]}
queryRef={system}
data={system}
/>
)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const RootIncidentComponent = ({ queryRef }) => {
'vulnerabilities',
'observables',
]}
queryRef={incident}
data={incident}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const RootAdministrativeAreaComponent = ({ queryRef, administrativeAreaId }) =>
'tools',
'observables',
]}
queryRef={administrativeArea}
data={administrativeArea}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const RootCityComponent = ({ queryRef, cityId }) => {
'tools',
'observables',
]}
queryRef={city}
data={city}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const RootCountryComponent = ({ queryRef, countryId }) => {
'tools',
'observables',
]}
queryRef={country}
data={country}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const RootPosition = ({ positionId, queryRef }: RootPositionProps) => {
'tools',
'observables',
]}
queryRef={position}
data={position}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const RootRegionComponent = ({ queryRef, regionId }) => {
'tools',
'observables',
]}
queryRef={region}
data={region}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const InfrastructureKnowledge = ({ infrastructure }: { infrastructure: Infrastru
<>
<StixCoreObjectKnowledgeBar
stixCoreObjectLink={link}
queryRef={infrastructureData}
data={infrastructureData}
availableSections={[
'threats',
'threat_actors',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const RootAttackPattern = ({ attackPatternId, queryRef }: RootAttackPatternProps
'indicators',
'observables',
]}
queryRef={attackPattern}
data={attackPattern}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const RootNarrative = ({ narrativeId, queryRef }: RootNarrativeProps) => {
'observables',
'sightings',
]}
queryRef={narrative}
data={narrative}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const RootCampaign = ({ campaignId, queryRef }: RootCampaignProps) => {
'infrastructures',
'sightings',
]}
queryRef={campaign}
data={campaign}
attribution={['Intrusion-Set', 'Threat-Actor-Individual', 'Threat-Actor-Group']}
/>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const RootIntrusionSet = ({ intrusionSetId, queryRef }: RootIntrusionSetProps) =
'infrastructures',
'sightings',
]}
queryRef={intrusionSet}
data={intrusionSet}
attribution={['Threat-Actor-Individual', 'Threat-Actor-Group']}
/>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const RootThreatActorGroup = ({ queryRef, threatActorGroupId }: RootThreatActorG
'infrastructures',
'sightings',
]}
queryRef={threatActorGroup}
data={threatActorGroup}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const RootThreatActorIndividualComponent = ({
'sightings',
'countries',
]}
queryRef={threatActorIndividual}
data={threatActorIndividual}
/>
}
/>
Expand Down

0 comments on commit 9b58d67

Please sign in to comment.