Skip to content

PSP-11366 : Add new Program Type to Lease/Licence drop-down Options#5293

Merged
asanchezr merged 3 commits intobcgov:devfrom
eddherrera:psp-11366
Apr 22, 2026
Merged

PSP-11366 : Add new Program Type to Lease/Licence drop-down Options#5293
asanchezr merged 3 commits intobcgov:devfrom
eddherrera:psp-11366

Conversation

@eddherrera
Copy link
Copy Markdown
Collaborator

No description provided.

Comment on lines 29 to 33
IF @@ROWCOUNT = 1
UPDATE PIMS_LEASE_PROGRAM_TYPE
SET IS_DISABLED = 0
SET IS_DISABLED = 1
, CONCURRENCY_CONTROL_NUMBER = CONCURRENCY_CONTROL_NUMBER + 1
WHERE LEASE_PROGRAM_TYPE_CODE = @CurrCd;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

In my opinion this whole file should be deleted. "Pretend it never existed" because we will alter down the lower environments before re-applying the PR targeting the correct table PIMS_LEASE_LICENSE_TYPE

No need to keep this logic and keep a code disabled unnecessarily

Comment on lines 26 to 28
PRINT '- Executing PSP_PIMS_S120_00/Alter Down/057_DML_PIMS_LEASE_PROGRAM_TYPE_Alter_Down.sql '
:setvar filepath "PSP_PIMS_S120_00/Alter Down/057_DML_PIMS_LEASE_PROGRAM_TYPE_Alter_Down.sql"
:r $(filepath)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

In my opinion we should not be running alter downs and ups for the wrong table . Only leave the alters for PIMS_LEASE_LICENSE_TYPE

@@ -0,0 +1,51 @@
-- -------------------------------------------------------------------------------------------
-- Alter the PIMS_LEASE_PROGRAM_TYPE table.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: the comment is mentioning the wrong table. This script is modifying PIMS_LEASE_LICENSE_TYPE

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.

Updated

@@ -0,0 +1,75 @@
-- -------------------------------------------------------------------------------------------
-- Alter the PIMS_LEASE_PROGRAM_TYPE table.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

wrong table name

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.

Updated

@eddherrera eddherrera requested a review from asanchezr April 22, 2026 22:36
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
52.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@asanchezr asanchezr added this pull request to the merge queue Apr 22, 2026
Merged via the queue into bcgov:dev with commit 366e9d3 Apr 22, 2026
15 of 16 checks passed
@eddherrera eddherrera deleted the psp-11366 branch April 23, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants