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

Add param1_title & param2_title to LVPCT table #2663

Merged

Conversation

rvsiyad
Copy link
Contributor

@rvsiyad rvsiyad commented Dec 5, 2024

https://eaflood.atlassian.net/browse/WATER-4825

As part of the migration of legacy pages into the new system, we identified missing information in the licence_version_purpose_condition_types table. Specifically, the param1 and param2 values in the licence_version_purpose_conditions table are dynamically associated with row titles derived from the code and subcode in the licence_version_purpose_condition_types table. To correctly reference these row titles for each parameter, we need to add static values to the licence_version_purpose_condition_types table.

This PR introduces two new columns, param1_title and param2_title, to store these static titles, ensuring proper referencing and improved data consistency.

https://eaflood.atlassian.net/browse/WATER-4825

As part of the migration of legacy pages into the new system, we identified missing information in the `licence_version_purpose_condition_types` table.
Specifically, the `param1` and `param2` values in the `licence_version_purpose_conditions` table are dynamically associated with row titles derived from the `code` and `subcode` in the `licence_version_purpose_condition_types` table.
To correctly reference these row titles for each parameter, we need to add static values to the `licence_version_purpose_condition_types` table.

This PR introduces two new columns, `param1_title` and `param2_title`, to store these static titles, ensuring proper referencing and improved data consistency.
@rvsiyad rvsiyad added the enhancement New feature or request label Dec 5, 2024
@rvsiyad rvsiyad self-assigned this Dec 5, 2024
@rvsiyad rvsiyad marked this pull request as draft December 5, 2024 15:59
…columns to licence version purpose condition types table
… to licence version purpose condition types table
…umns from licence version purpose condition types table
@rvsiyad rvsiyad added housekeeping Refactoring, tidying up or other work which supports the project and removed enhancement New feature or request labels Dec 6, 2024
Cruikshanks
Cruikshanks previously approved these changes Dec 9, 2024
@rvsiyad rvsiyad marked this pull request as ready for review December 16, 2024 12:49
Copy link
Contributor

@StuAA78 StuAA78 left a comment

Choose a reason for hiding this comment

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

@rvsiyad rvsiyad merged commit 0ddf0e6 into main Dec 16, 2024
5 checks passed
@rvsiyad rvsiyad deleted the add-param1Title-param2Title-columns-to-condition-types-table branch December 16, 2024 13:50
rvsiyad added a commit to DEFRA/water-abstraction-system that referenced this pull request Dec 16, 2024
DEFRA/water-abstraction-service#2663

As part of the migration of legacy pages into the new system, we identified missing information in the licence_version_purpose_condition_types table.
Specifically, the param1 and param2 values in the licence_version_purpose_conditions table are dynamically associated with row titles derived from the
code and subcode in the licence_version_purpose_condition_types table. To correctly reference these row titles for each parameter, we added the
static values to the licence_version_purpose_condition_types table. We now need to add the `param_1_label` and `param_2_label` to the licence_version_purpose_condition_types
view.

This PR introduces two new columns,`param_1_label` and `param_2_label` to the licence_version_purpose_condition_types view.
rvsiyad added a commit to DEFRA/water-abstraction-system that referenced this pull request Dec 18, 2024
* Add `param_1_label` & `param_2_label` to lvpct view

DEFRA/water-abstraction-service#2663

As part of the migration of legacy pages into the new system, we identified missing information in the licence_version_purpose_condition_types table.
Specifically, the param1 and param2 values in the licence_version_purpose_conditions table are dynamically associated with row titles derived from the
code and subcode in the licence_version_purpose_condition_types table. To correctly reference these row titles for each parameter, we added the
static values to the licence_version_purpose_condition_types table. We now need to add the `param_1_label` and `param_2_label` to the licence_version_purpose_condition_types
view.

This PR introduces two new columns,`param_1_label` and `param_2_label` to the licence_version_purpose_condition_types view.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants