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

[MDS-6263] Adjustments around Assigned status not behaving as aspected #3334

Merged
merged 8 commits into from
Dec 12, 2024

Conversation

asinn134
Copy link
Collaborator

@asinn134 asinn134 commented Dec 5, 2024

Objective

MDS-6263

  • Changed unassigning project lead to not send blank activity for Core and Minespace

  • Changed assigning project lead to not send notifications for Minespace

  • Added new text provided in mockup

  • Adjusted Minespace fields to be editable when a project summary that hasn't been submitted yet has an assigned project lead

  • Adjusted Core's project management to be able to save a new status and also make an adjustment to the project lead input without the status being forced to be "Submit" or "Assigned"

  • Adjusted declaration section's submission in Core to change status to "Submit" when a draft project summary is completed

matbusby-fw
matbusby-fw previously approved these changes Dec 6, 2024
Copy link
Collaborator

@matbusby-fw matbusby-fw left a comment

Choose a reason for hiding this comment

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

Nice work! Looks solid!

status_code = "SUB";
}
} else if (!newActiveTab && status_code === "DFT") {
status_code = "SUB";
Copy link
Collaborator

Choose a reason for hiding this comment

The 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)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This should be removed now.

msDisabledStatuses: ["SUB", "ASG", "UNR", "WDN", "OHD", "COM"],
msEnabledStatuses: ["DFT", "CHR"],
msDisabledStatuses: ["SUB", "UNR", "WDN", "OHD", "COM"],
msEnabledStatuses: ["DFT", "CHR", "ASG"],
Copy link
Collaborator

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?

Copy link
Collaborator

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:

  1. an MS/CORE user makes a draft project summary
  2. they assign a project lead
  3. the project gets put in Assigned status even though it's not submitted

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?

Copy link
Collaborator Author

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.

Copy link

Quality Gate Passed Quality Gate passed for 'bcgov-sonarcloud_mds_minespace-web'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

Copy link

@@ -18,6 +18,12 @@ describe("Major Projects", () => {
it("should upload and download a document successfully", () => {
const fileName = "dummy.pdf";

cy.get('body').then((element) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Depending on the status of the project summary, clicking the button for project description can bring us to the project description tab or the actual project description form page. Just have to include this to make sure we click the View Project Description Details button if we do get sent to the Project Description tab.

Copy link

Copy link

@asinn134 asinn134 merged commit 9c52a18 into develop Dec 12, 2024
19 checks passed
@asinn134 asinn134 deleted the mds-6263-assigned-status-not-behaving-as-aspected branch December 12, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants