-
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-3545, MR-2370: Fix change history, add cypress tests, and turn on …
…remaining API Unit tests (#1959) * populating * keep incoming * remove default name. not sure why it's here? * use the right deploy script * move the migration into a func * return errors in prepopulate updateinfo * use error returns on insertContractId * return the error. no throws here for try/catch * clean up error messaging * move contract ops to migrateContract() * don't forget the associations error handling * the migrate results type * more tests * make it a helper func * rate revision test * check that we can get the migrated revision back * record the exception no need to return a packageId * fix test * more logging * clearAllMocks * doesnt' test anything now * some debug * keep track of migrations that did not complete * crashing on the user find * log out some stats * need to continue * just use the client we already get * remove some debug * all the contract ammendment info * get unlockInfoID * rate revision as well * testing file * fix up test some more * Adding test fixes and fixes from test * fixes in migrate. add DB reset at init. * use the prisma types in the test * finish adding contract docs * adds the rate docs * add another fake doc * contract/rate doc migration moved. * move join table work to the create phase * cleanup all the things * format on save? * enable remaining jest tests * fix up compare * Enable `rates-db-refactor` and `supporting-docs-by-rate` flag for cypress tests. * Skip Q&A tests, resolver not modified for refactor yet. * logging data objects out for compare * refactor comparison * more cleaning on test * fix the map to flatmap * fix up which we compare with * error check * Add extra test for change history order and count. * Remove rate history from contract history. * Add a check for which query to wait for. * Apply suggestions from code review Co-authored-by: Jason Lin <98117700+JasonLin0991@users.noreply.github.com> * some fixes to the migrator * fix ordering of contract revisions * update yarn.lock * Fix contractWithHistoryToDomainModel. * debug helper. * Update tests * Longer timeout looking for unlock button. * Update services/app-api/src/resolvers/healthPlanPackage/indexHealthPlanPackages.test.ts * Update services/app-api/src/resolvers/healthPlanPackage/indexHealthPlanPackages.test.ts * cypress re-run * add position to actuary contacts * Increase timeouts for more docs. * tests are suspiciously fixed * Skip tests for rate history. * test and fix how update contract with rates reads rateInfo.id * update migrators handling of submittedAt and unlocked rates * pass tx into findContractWithHistory. variable name changes for clarity. * Change setting id from revision id to rate id. * Fix tests for rate formData.id change. * connect related contract * fix tests proactively --------- Co-authored-by: Mazdak Atighi <maz@truss.works> Co-authored-by: Mojo Talantikite <mojo.talantikite@gmail.com> Co-authored-by: MacRae Linton <macrael@truss.works> Co-authored-by: MacRae Linton <55759+macrael@users.noreply.github.com>
- Loading branch information
Showing
23 changed files
with
1,649 additions
and
939 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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.