-
Notifications
You must be signed in to change notification settings - Fork 39
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
[MDS-6263] Adjustments around Assigned status not behaving as aspected #3334
Changes from 4 commits
ea0ad5e
0096867
3dff330
6a658cb
01a5b5c
9c11b45
19af423
1378690
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,19 +215,15 @@ export const ProjectSummary: FC = () => { | |
|
||
if (!status_code || isNewProject) { | ||
status_code = "DFT"; | ||
} else if (!newActiveTab) { | ||
if (isCore) { | ||
status_code = formValues.status_code; | ||
} else { | ||
status_code = "SUB"; | ||
} | ||
} else if (!newActiveTab && status_code === "DFT") { | ||
status_code = "SUB"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Noticed a sonarcloud issue- just some unused stuff that wants to be removed (isCore wants to be removed, and then probably related imports like the SystemFlagEnum and the selector) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be removed now. |
||
is_historic = false; | ||
if (amsFeatureEnabled) { | ||
message = null; | ||
} | ||
} | ||
|
||
if (isCore && !isNewProject) { | ||
if (!isNewProject && newActiveTab) { | ||
status_code = formValues.status_code; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do find it confusing that Assigned was added to enabled- like, generally they're still not supposed to be able to edit when it's in Assigned status, right? Is the status even assigned when there's no project lead assigned?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, so is the flow that's causing issues basically:
I guess it's pretty wacky! I'm thinking that for the tests though, maybe pass a parameter to indicate that it has been submitted so that we know what to expect generally, and then add another test for the special case where it's assigned but not submitted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted the change to the arrays, and a new test has been added now.