Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[frontend] fix relationship stop_time edition (#4133) #4134

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

Archidoit
Copy link
Member

Github issue: #4133

@Archidoit Archidoit self-assigned this Aug 22, 2023
@Archidoit Archidoit changed the title [frontend] enable relationship stop_time edition (#4133) [frontend] fix relationship stop_time edition (#4133) Aug 22, 2023
@Archidoit Archidoit added the filigran team use to identify PR from the Filigran team label Aug 22, 2023
@@ -275,6 +275,18 @@ Omit<StixCoreRelationshipEditionOverviewProps, 'queryRef'>
stixCoreRelationshipValidator,
);

// necessary for stop_time because the validator includes a reference to another value (start_time)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the validator refers to the wrong value, should it be fixed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not a wrong value, you need it to compare start_time and stop_time

@@ -383,7 +395,7 @@ Omit<StixCoreRelationshipEditionOverviewProps, 'queryRef'>
component={DateTimePickerField}
name="stop_time"
onFocus={editor.changeFocus}
onSubmit={editor.changeField}
onSubmit={handleSubmitFieldStopTime}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why doesn't it work like the other fields ? why did you need to add handleSubmitFieldStopTime ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the other fields don't call an other field for their validation

Copy link
Member Author

@Archidoit Archidoit Aug 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Archidoit Archidoit linked an issue Aug 22, 2023 that may be closed by this pull request
Copy link
Member

@SarahBocognano SarahBocognano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ✅

@SamuelHassine SamuelHassine merged commit 25ef938 into master Aug 23, 2023
5 of 6 checks passed
@SamuelHassine SamuelHassine deleted the issue/4133 branch August 23, 2023 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filigran team use to identify PR from the Filigran team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't update relationship stop_time
5 participants