-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature-3495] - CR TDL Updates (#904)
* WIP to Split CRs and TDLs on the backend * Add migrations and tests * Update migration to update historical data and make Implementation Date nullable on CRs * Fixed migration type, updated postman collection * Fix migration condition and automated tests * Update tests to not check exact dates * [EASI-3810] - FE CR TDL (#903) * Init work on crtdl frontend * Updated form to use new mutations and types * Fixed incorrect iterable array * Added month and year form components to addcrtdl * Added support for converting date values * Added conditional text for form * Fixed date parsing * Added type as a form value * Added validation and max page size * Updated readonly * Updated unit tests * Updated cypress tests * Updated snapshot * Rant linteR --------- Co-authored-by: Clay Benson <[email protected]> * Renamed migration * Update migration to properly handle existing data * feat: separate cr and tdl tables in migration * feat: cr tdl models declared in separate files * feat: sql queries to their own folders * feat: cr and tdl to separate resolver files * feat: cr and tdl to separate store files * feat: separate cr and tdl tests into separate files * feat: fix unit test issues * feat: adjust analyze audit to correctly analyze table names of changes * feat: rename migrations * feat: add todo comment to remove the comparison to plan_cr_tdl after deployed for a day * chore: remove accidentally commented out migrations --------- Co-authored-by: ClayBenson94 <[email protected]> Co-authored-by: Steven Wade <[email protected]> Co-authored-by: Steven Wade <[email protected]>
- Loading branch information
1 parent
0a01fe1
commit 1f2be4c
Showing
99 changed files
with
6,816 additions
and
2,098 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- https://jiraent.cms.gov/browse/EASI-3495 | ||
|
||
ALTER TABLE plan_cr_tdl ADD COLUMN date_implemented TIMESTAMP; | ||
|
||
ALTER TABLE plan_cr_tdl RENAME TO plan_cr; | ||
|
||
/* Update audit table to rename cr_tdl to plan_cr */ | ||
UPDATE "audit"."table_config" SET "name"='plan_cr' WHERE "name"='plan_cr_tdl' |
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,16 @@ | ||
/* Create new table, same format as it was for plan_cr_tdl */ | ||
CREATE TABLE plan_tdl ( | ||
id uuid PRIMARY KEY, | ||
model_plan_id uuid NOT NULL REFERENCES model_plan(id), | ||
id_number zero_string NOT NULL, | ||
date_initiated timestamp without time zone NOT NULL, | ||
title zero_string NOT NULL, | ||
note text, | ||
created_dts timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
modified_dts timestamp with time zone, | ||
created_by uuid NOT NULL REFERENCES user_account(id), | ||
modified_by uuid REFERENCES user_account(id) | ||
); | ||
|
||
/* Enable Audting for new table*/ | ||
SELECT audit.AUDIT_TABLE('public', 'plan_tdl', 'id', 'model_plan_id', '{created_by,created_dts,modified_by,modified_dts}'::TEXT[], '{}'::TEXT[]); |
Oops, something went wrong.