Skip to content

Environment Canada New Form Fields#703

Open
ionwyn wants to merge 16 commits into
masterfrom
dev/ionwyn/HMCR-1131/2526saltreporting
Open

Environment Canada New Form Fields#703
ionwyn wants to merge 16 commits into
masterfrom
dev/ionwyn/HMCR-1131/2526saltreporting

Conversation

@ionwyn
Copy link
Copy Markdown
Collaborator

@ionwyn ionwyn commented May 28, 2026

The purpose of this pull request is to satisfy Environment Canada requirements of having the 2025/2026 season annual salt reporting.

Environment Canada requires additions of new form fields and descriptions.

The migration adds 19 new columns, has been approved and executed in DEV, TEST, and UAT by Doug Bilinski at ticket HMCR-1135

This reverts commit 675e11f.

Signed-off-by: Ionwyn Sean <ionwynsean@gmail.com>
@ionwyn ionwyn changed the title Dev/ionwyn/hmcr 1131/2526saltreporting Environment Canada New Form Fields May 29, 2026
ionwyn added 2 commits May 29, 2026 13:55
Signed-off-by: Ionwyn Sean <ionwynsean@gmail.com>
Signed-off-by: Ionwyn Sean <ionwynsean@gmail.com>
public sealed class SaltReportMap : ClassMap<HmrSaltReport>
{
public SaltReportMap()
{
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

WARNING! This change looks huge because previously the logic was:

  • INCLUDE everything but ignore what I explicitly write.

Now:

  • Explicitly INCLUDE only what we want (which is still a lot, but cut included size and CSV build time by ~2.3s)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

WARNING! The changes here look huge because previous logic was

  • Literally write CSV here

But I got really confused, so I asked AI to replace it a map.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added new validations for new data and Optimized ValidationSchema via DRY principle

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

WARNING!

This file looks HUGE. We had to backfill previous data including history table for the new columns as those columns accept NULL but not EMPY by design.

@rogene-bcgov rogene-bcgov self-requested a review May 29, 2026 21:25
Signed-off-by: Ionwyn Sean <ionwynsean@gmail.com>
This reverts commit 1875f7b.
Signed-off-by: Ionwyn Sean <ionwynsean@gmail.com>
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.

2 participants