Skip to content

Commit

Permalink
[backend/frontend] Move indicator to module (OpenCTI-Platform#2859)
Browse files Browse the repository at this point in the history
Co-authored-by: Souad Hadjiat <[email protected]>
  • Loading branch information
aHenryJard and SouadHadjiat authored Dec 28, 2023
1 parent 65dcfde commit 56ead3f
Show file tree
Hide file tree
Showing 52 changed files with 827 additions and 775 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,9 @@ const indicatorMutationFieldPatch = graphql`
$commitMessage: String
$references: [String]
) {
indicatorEdit(id: $id) {
fieldPatch(
input: $input
commitMessage: $commitMessage
references: $references
) {
...IndicatorEditionOverview_indicator
...Indicator_indicator
}
indicatorFieldPatch(id: $id, input: $input, commitMessage: $commitMessage, references: $references) {
...IndicatorEditionOverview_indicator
...Indicator_indicator
}
}
`;
Expand All @@ -49,10 +43,8 @@ export const indicatorEditionOverviewFocus = graphql`
$id: ID!
$input: EditContext!
) {
indicatorEdit(id: $id) {
contextPatch(input: $input) {
id
}
indicatorContextPatch(id: $id, input: $input) {
id
}
}
`;
Expand All @@ -62,11 +54,9 @@ const indicatorMutationRelationAdd = graphql`
$id: ID!
$input: StixRefRelationshipAddInput!
) {
indicatorEdit(id: $id) {
relationAdd(input: $input) {
from {
...IndicatorEditionOverview_indicator
}
indicatorRelationAdd(id: $id, input: $input) {
from {
...IndicatorEditionOverview_indicator
}
}
}
Expand All @@ -78,10 +68,8 @@ const indicatorMutationRelationDelete = graphql`
$toId: StixRef!
$relationship_type: String!
) {
indicatorEdit(id: $id) {
relationDelete(toId: $toId, relationship_type: $relationship_type) {
...IndicatorEditionOverview_indicator
}
indicatorRelationDelete(id: $id, toId: $toId, relationship_type: $relationship_type) {
...IndicatorEditionOverview_indicator
}
}
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ import Transition from '../../../../components/Transition';

const IndicatorPopoverDeletionMutation = graphql`
mutation IndicatorPopoverDeletionMutation($id: ID!) {
indicatorEdit(id: $id) {
delete
}
indicatorDelete(id: $id)
}
`;

Expand Down
Loading

0 comments on commit 56ead3f

Please sign in to comment.