-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MDS-6204] - condition review assignment (#3355)
* Create functionality to assign a user to a condition_category. * fix rebase conflicts in PermitConditions. * update snapshots * added new resources to test_expected_auth.py * added be tests and updated permitConditionCategorySlice.spec.ts * enhance mocks and update snap * updating loading of assigned_review_user in permit_condition_category.py
- Loading branch information
1 parent
d2c74f0
commit 9e6145a
Showing
42 changed files
with
1,945 additions
and
584 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
migrations/sql/V2024.12.17.22.23__add_user_permit_condition_category_relations.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ALTER TABLE permit_condition_category | ||
ADD COLUMN user_sub VARCHAR, | ||
ADD CONSTRAINT fk_permit_condition_category_user FOREIGN KEY (user_sub) | ||
REFERENCES "user" (sub) ON DELETE SET NULL ON UPDATE CASCADE; | ||
|
||
COMMENT ON COLUMN permit_condition_category.user_sub IS 'The user assigned to this permit condition category to review it'; | ||
|
||
ALTER TABLE permit_condition_category_version | ||
ADD COLUMN user_sub VARCHAR, | ||
ADD CONSTRAINT fk_permit_condition_category_version_user FOREIGN KEY (user_sub) | ||
REFERENCES "user" (sub) ON DELETE SET NULL ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.