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-6285] ESUP amendments detonator magazine missing #3348

Merged
merged 5 commits into from
Dec 18, 2024

Conversation

asinn134
Copy link
Collaborator

@asinn134 asinn134 commented Dec 14, 2024

Objective

MDS-6285

  • Adjustments made in the esup's generate preview certificate work flow to use the explosive permit amendment magazines if user is trying to preview an amendment. Previously it would only use explosive permit magazine data even when we are dealing with a explosive permit amendment.

@@ -70,12 +71,13 @@ def post(self, document_type_code):

explosives_permit_guid = data['explosives_permit_guid']
explosives_permit = ExplosivesPermit.find_by_explosives_permit_guid(explosives_permit_guid)
explosives_permit_amendment_id = data.get('explosives_permit_amendment_id', None)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we might want to perform a check here to make sure the explosives_permit_amendment_id is actually for this explosives_permit. Just a precaution.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A check for this has been added now.

matbusby-fw
matbusby-fw previously approved these changes Dec 16, 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.

I like Simen's suggestion, but otherwise looks great!

Copy link

Copy link

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

Failed conditions
34.6% Coverage on New Code (required ≥ 80%)
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

👍🏻

@asinn134 asinn134 merged commit a962931 into develop Dec 18, 2024
14 of 15 checks passed
@asinn134 asinn134 deleted the mds-6285-esup-detonator-magazine-missing branch December 18, 2024 17:34
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