Skip to content

[MDS-6741] - View Mine Report Definition Button Does Nothing#3786

Merged
matbusby-fw merged 3 commits intodevelopfrom
mds-6741-view-report-definitions
Jan 14, 2026
Merged

[MDS-6741] - View Mine Report Definition Button Does Nothing#3786
matbusby-fw merged 3 commits intodevelopfrom
mds-6741-view-report-definitions

Conversation

@matbusby-fw
Copy link
Collaborator

It seems we never implemented the view modal for viewing a mine report definition. Converted the existing create modal to have an optional view only mode

Objective

MDS-6741

image

@matbusby-fw matbusby-fw added the 👍 Ready for review Pull request has been double checked by the author and is ready for comments and feedback. label Dec 16, 2025
const reportDefinition = reportDefinitions.find(
(r) => r.mine_report_definition_guid === record.mine_report_definition_guid
);
if (!reportDefinition) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm wondering if there is a scenario where reportDefinition isn't found. Like, the table data is the (transformed, but not filtered) reportDefinitions, and the record is part of that list.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I ran into some problems there testing locally which is why I added this, but I forgot to add an early return with the notification. Added that now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, I'm just looking at the transformData where the record is defined. I don't think it should be necessary to do reportDefinitions.find at all because of how transformData does a spread to copy the whole object into the table record. I wonder if there's something else strange going on here

asinn134
asinn134 previously approved these changes Jan 8, 2026
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 9, 2026

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

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

See analysis details on SonarQube Cloud

@matbusby-fw matbusby-fw merged commit 2e1c716 into develop Jan 14, 2026
11 of 12 checks passed
@matbusby-fw matbusby-fw deleted the mds-6741-view-report-definitions branch January 14, 2026 17:19
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.

3 participants