Skip to content

[MDS-6308] Add permit condition status #3374

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

Merged
merged 12 commits into from
Jan 16, 2025
Merged

Conversation

sggerard
Copy link
Collaborator

@sggerard sggerard commented Jan 14, 2025

Objective

MDS-6308

Add statuses to permit conditions.

  • Update sidebar to display summary of each categories statuses (Complete, In Progress or Not started)
  • Allow assigned user to Complete Review
  • Reset status when any condition (including children) is updated

Please note - when testing you will need to run the database migration and generate new permit conditions as there are additional fields that need to be set.

image

@sggerard sggerard added the 👍 Ready for review Pull request has been double checked by the author and is ready for comments and feedback. label Jan 15, 2025
@sggerard sggerard marked this pull request as ready for review January 15, 2025 17:55
('INP', 'In Progress', 20, 'system-mds', 'system-mds'),
('COM', 'Complete', 30, 'system-mds', 'system-mds')
ON CONFLICT DO NOTHING;

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm wondering if it's necessary to add to this file!
We've run into issues in the past where it's difficult to maintain things that are put here. If it's not necessary, would avoid it

Copy link
Collaborator

Choose a reason for hiding this comment

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

Counterpoint to that, this is the kind of thing that would get annoying to remind people to enter in themselves. I'd prefer to have it seeded personally.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Absolutely.
We're just adding these data migrations together with schema migrations instead of using the afterMigrate functionality. So would suggest maybe adding in another.

(example: V2024.06.11.10.03__add_new_document_types_to_project_summary_document_type.sql)

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 had it in both the migration and seed_data. Have removed it from the seed data now.

matbusby-fw
matbusby-fw previously approved these changes Jan 15, 2025
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!

A bit of a dive into lots of the more complicated parts of the code. I agree with some of what Tara was saying in her comments.

  • Would probably be good to make that interface property optional
  • The one permit amendment message likely won't come up much, but "Permit amendment status code is not provided" specifically could probably be a bit more user friendly. Something like "Permit condition status code missing from request"?

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

Copy link

Quality Gate Failed Quality Gate failed for 'bcgov-sonarcloud_mds_core-web'

Failed conditions
75.6% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Copy link

Quality Gate Failed Quality Gate failed for 'bcgov-sonarcloud_mds_core-api'

Failed conditions
76.5% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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.

Woo!

@sggerard sggerard merged commit 5924f87 into develop Jan 16, 2025
18 of 20 checks passed
@sggerard sggerard deleted the mds-6308-condition-statuses branch January 16, 2025 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👍 Ready for review Pull request has been double checked by the author and is ready for comments and feedback.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants