-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MR-2364: Dealt with packages with shared rates in the current UI (#1945)
* Update packagesWithSharedRateCerts to contractsWithSharedRateRevision. * Refactor packageName parameters to only accept what is used and move hanlding of no rate programs. * Add real packagesWithSharedRateCerts data from db to rateFormDataToDomainModel. Update conversion functions to return error types. * Refactor variable sub with pkg for less confusion. Replace setting value with formData id to pkg id. * Replace using getProgramsFromState with findStatePrograms and throwing errors in tests if programs are not found. * Fix imports * Update contractsWithSharedRateRevision * Update tests for packages with shared rate certs. * cypress re-run * cypress re-run * Fix some merging stuff. * cypress re-run
- Loading branch information
1 parent
2d796f0
commit 469a39f
Showing
54 changed files
with
918 additions
and
423 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
...i/prisma/migrations/20230922204522_modify_shared_rate_revision_relationship/migration.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,48 @@ | ||
BEGIN; | ||
/* | ||
Warnings: | ||
- You are about to drop the `SharedRateCertifications` table. If the table is not empty, all the data it contains will be lost. | ||
- You are about to drop the `_ContractRevisionTableToSharedRateCertifications` table. If the table is not empty, all the data it contains will be lost. | ||
- You are about to drop the `_RateRevisionTableToSharedRateCertifications` table. If the table is not empty, all the data it contains will be lost. | ||
*/ | ||
-- DropForeignKey | ||
ALTER TABLE "_ContractRevisionTableToSharedRateCertifications" DROP CONSTRAINT "_ContractRevisionTableToSharedRateCertifications_A_fkey"; | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "_ContractRevisionTableToSharedRateCertifications" DROP CONSTRAINT "_ContractRevisionTableToSharedRateCertifications_B_fkey"; | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "_RateRevisionTableToSharedRateCertifications" DROP CONSTRAINT "_RateRevisionTableToSharedRateCertifications_A_fkey"; | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "_RateRevisionTableToSharedRateCertifications" DROP CONSTRAINT "_RateRevisionTableToSharedRateCertifications_B_fkey"; | ||
|
||
-- DropTable | ||
DROP TABLE "SharedRateCertifications"; | ||
|
||
-- DropTable | ||
DROP TABLE "_ContractRevisionTableToSharedRateCertifications"; | ||
|
||
-- DropTable | ||
DROP TABLE "_RateRevisionTableToSharedRateCertifications"; | ||
|
||
-- CreateTable | ||
CREATE TABLE "_SharedRateRevisions" ( | ||
"A" TEXT NOT NULL, | ||
"B" TEXT NOT NULL | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "_SharedRateRevisions_AB_unique" ON "_SharedRateRevisions"("A", "B"); | ||
|
||
-- CreateIndex | ||
CREATE INDEX "_SharedRateRevisions_B_index" ON "_SharedRateRevisions"("B"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "_SharedRateRevisions" ADD CONSTRAINT "_SharedRateRevisions_A_fkey" FOREIGN KEY ("A") REFERENCES "ContractTable"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "_SharedRateRevisions" ADD CONSTRAINT "_SharedRateRevisions_B_fkey" FOREIGN KEY ("B") REFERENCES "RateRevisionTable"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
COMMIT; |
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
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
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.