Skip to content

Commit

Permalink
[EASI-3691] Geography questions updates (#918)
Browse files Browse the repository at this point in the history
* [EASI-3691] Backend updates to geography question feature branch (#902)

* initial schema draft for feature

* feat: updated data model, migration, and store sql

* updated postman collection, tests, and resolvers

* chore: cleaned up old comment

* [EASI-3738] FE work for geography questions updates (#890)

* initial schema draft for feature

* feat: updated data model, migration, and store sql

* update STATE enum translation

* update REGION enum translation

* changed the order to match figma

* remove the arrayhelper

* using new util to make sure read only matches figma order

* remove arrayhelper

* using new util to render the list according to figma

* update snasps

* Add geograpghiesTargetedRegionTypes FE, types

* renamed region enum and added state enum

* making geographiesRegionTypes and geographiesStatesAndTerritories optional

* updating name and remove comment

* change the multisleect for states

* add geographiesStatesAndTerritories & geographiesRegionTypes to queries

* updated postman collection, tests, and resolvers

* split the side by side view

* temp wip

* redo the way the readonly renders mjlti list

* add optionsrelatedinfo to geographytype

* formatOtherList items too

* update snaps

* add to the mock

* textarea -> textinput and remove bold

* textarea -> textinput and remove bold

* update snaps

* add to csv export

* adding a empty region state to read only

* Add Geography region types label

* add more query and types

* passing null instead of rendering more copy

---------

Co-authored-by: Tom Brooks <[email protected]>

* chore: regenerated snapshots

* fix: missed merge file

* Renamed migration

---------

Co-authored-by: Gary Zhao <[email protected]>
Co-authored-by: Patrick Segura <[email protected]>
  • Loading branch information
3 people authored Jan 26, 2024
1 parent deef6df commit cd78e45
Show file tree
Hide file tree
Showing 32 changed files with 1,610 additions and 388 deletions.
4 changes: 2 additions & 2 deletions MINT.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation updatePlanGeneralCharacteristics ($id: UUID!, $changes: PlanGeneralCharacteristicsChanges!) {\n updatePlanGeneralCharacteristics (id: $id, changes: $changes) {\n id\n modelPlanID\n isNewModel\n currentModelPlanID\n existingModelID\n resemblesExistingModel\n resemblesExistingModelHow\n resemblesExistingModelNote\n hasComponentsOrTracks\n hasComponentsOrTracksDiffer\n hasComponentsOrTracksNote\n alternativePaymentModelTypes\n alternativePaymentModelNote\n keyCharacteristics\n keyCharacteristicsOther\n keyCharacteristicsNote\n collectPlanBids\n collectPlanBidsNote\n managePartCDEnrollment\n managePartCDEnrollmentNote\n planContractUpdated\n planContractUpdatedNote\n careCoordinationInvolved\n careCoordinationInvolvedDescription\n careCoordinationInvolvedNote\n additionalServicesInvolved\n additionalServicesInvolvedDescription\n additionalServicesInvolvedNote\n communityPartnersInvolved\n communityPartnersInvolvedDescription\n communityPartnersInvolvedNote\n geographiesTargeted\n geographiesTargetedTypes\n geographiesTargetedTypesOther\n geographiesTargetedAppliedTo\n geographiesTargetedAppliedToOther\n geographiesTargetedNote\n participationOptions\n participationOptionsNote\n agreementTypes\n agreementTypesOther\n multiplePatricipationAgreementsNeeded\n multiplePatricipationAgreementsNeededNote\n rulemakingRequired\n rulemakingRequiredDescription\n rulemakingRequiredNote\n authorityAllowances\n authorityAllowancesOther\n authorityAllowancesNote\n waiversRequired\n waiversRequiredTypes\n waiversRequiredNote\n createdBy\n createdDts\n modifiedBy\n modifiedDts\n readyForReviewBy\n readyForReviewDts\n readyForClearanceBy\n readyForClearanceDts\n status\n\n createdByUserAccount \n {\n commonName\n } \n modifiedByUserAccount\n {\n commonName\n } \n readyForReviewByUserAccount \n {\n commonName\n }\n readyForClearanceByUserAccount \n {\n commonName\n } \n }\n}",
"variables": "{\n \"id\": \"{{generalCharacteristicsID}}\",\n \"changes\": {\n \"isNewModel\": true,\n \"currentModelPlanID\": null,\n \"existingModelID\": null,\n \"resemblesExistingModel\": true,\n \"resemblesExistingModelHow\": \"\",\n \"resemblesExistingModelNote\": \"\",\n \"hasComponentsOrTracks\": true,\n \"hasComponentsOrTracksDiffer\": \"\",\n \"hasComponentsOrTracksNote\": \"\",\n \"alternativePaymentModelTypes\": [\n \"\"\n ],\n \"alternativePaymentModelNote\": \"\",\n \"keyCharacteristics\": [\n \"\"\n ],\n \"keyCharacteristicsOther\": \"\",\n \"keyCharacteristicsNote\": \"\",\n \"collectPlanBids\": true,\n \"collectPlanBidsNote\": \"\",\n \"managePartCDEnrollment\": true,\n \"managePartCDEnrollmentNote\": \"\",\n \"planContractUpdated\": true,\n \"planContractUpdatedNote\": \"\",\n \"careCoordinationInvolved\": true,\n \"careCoordinationInvolvedDescription\": \"\",\n \"careCoordinationInvolvedNote\": \"\",\n \"additionalServicesInvolved\": true,\n \"additionalServicesInvolvedDescription\": \"\",\n \"additionalServicesInvolvedNote\": \"\",\n \"communityPartnersInvolved\": true,\n \"communityPartnersInvolvedDescription\": \"\",\n \"communityPartnersInvolvedNote\": \"\",\n \"geographiesTargeted\": true,\n \"geographiesTargetedTypes\": [\n \"\"\n ],\n \"geographiesTargetedTypesOther\": \"\",\n \"geographiesTargetedAppliedTo\": [\n \"\"\n ],\n \"geographiesTargetedAppliedToOther\": \"\",\n \"geographiesTargetedNote\": \"\",\n \"participationOptions\": true,\n \"participationOptionsNote\": \"\",\n \"agreementTypes\": [\n \"\"\n ],\n \"agreementTypesOther\": \"\",\n \"multiplePatricipationAgreementsNeeded\": true,\n \"multiplePatricipationAgreementsNeededNote\": \"\",\n \"rulemakingRequired\": true,\n \"rulemakingRequiredDescription\": \"\",\n \"rulemakingRequiredNote\": \"\",\n \"authorityAllowances\": [\n \"\"\n ],\n \"authorityAllowancesOther\": \"\",\n \"authorityAllowancesNote\": \"\",\n \"waiversRequired\": true,\n \"waiversRequiredTypes\": [\n \"\"\n ],\n \"waiversRequiredNote\": \"\",\n \"status\": \"\"\n }\n}"
"query": "mutation updatePlanGeneralCharacteristics ($id: UUID!, $changes: PlanGeneralCharacteristicsChanges!) {\n updatePlanGeneralCharacteristics (id: $id, changes: $changes) {\n id\n modelPlanID\n isNewModel\n currentModelPlanID\n existingModelID\n resemblesExistingModel\n resemblesExistingModelHow\n resemblesExistingModelNote\n hasComponentsOrTracks\n hasComponentsOrTracksDiffer\n hasComponentsOrTracksNote\n alternativePaymentModelTypes\n alternativePaymentModelNote\n keyCharacteristics\n keyCharacteristicsOther\n keyCharacteristicsNote\n collectPlanBids\n collectPlanBidsNote\n managePartCDEnrollment\n managePartCDEnrollmentNote\n planContractUpdated\n planContractUpdatedNote\n careCoordinationInvolved\n careCoordinationInvolvedDescription\n careCoordinationInvolvedNote\n additionalServicesInvolved\n additionalServicesInvolvedDescription\n additionalServicesInvolvedNote\n communityPartnersInvolved\n communityPartnersInvolvedDescription\n communityPartnersInvolvedNote\n geographiesTargeted\n geographiesTargetedTypes\n geographiesStatesAndTerritories\n geographiesRegionTypes\n geographiesTargetedTypesOther\n geographiesTargetedAppliedTo\n geographiesTargetedAppliedToOther\n geographiesTargetedNote\n participationOptions\n participationOptionsNote\n agreementTypes\n agreementTypesOther\n multiplePatricipationAgreementsNeeded\n multiplePatricipationAgreementsNeededNote\n rulemakingRequired\n rulemakingRequiredDescription\n rulemakingRequiredNote\n authorityAllowances\n authorityAllowancesOther\n authorityAllowancesNote\n waiversRequired\n waiversRequiredTypes\n waiversRequiredNote\n createdBy\n createdDts\n modifiedBy\n modifiedDts\n readyForReviewBy\n readyForReviewDts\n readyForClearanceBy\n readyForClearanceDts\n status\n\n createdByUserAccount \n {\n commonName\n } \n modifiedByUserAccount\n {\n commonName\n } \n readyForReviewByUserAccount \n {\n commonName\n }\n readyForClearanceByUserAccount \n {\n commonName\n } \n }\n}",
"variables": "{\n \"id\": \"{{generalCharacteristicsID}}\",\n \"changes\": {\n \"isNewModel\": true,\n \"currentModelPlanID\": null,\n \"existingModelID\": null,\n \"resemblesExistingModel\": true,\n \"resemblesExistingModelHow\": \"\",\n \"resemblesExistingModelNote\": \"\",\n \"hasComponentsOrTracks\": true,\n \"hasComponentsOrTracksDiffer\": \"\",\n \"hasComponentsOrTracksNote\": \"\",\n \"alternativePaymentModelTypes\": [\n \"\"\n ],\n \"alternativePaymentModelNote\": \"\",\n \"keyCharacteristics\": [\n \"\"\n ],\n \"keyCharacteristicsOther\": \"\",\n \"keyCharacteristicsNote\": \"\",\n \"collectPlanBids\": true,\n \"collectPlanBidsNote\": \"\",\n \"managePartCDEnrollment\": true,\n \"managePartCDEnrollmentNote\": \"\",\n \"planContractUpdated\": true,\n \"planContractUpdatedNote\": \"\",\n \"careCoordinationInvolved\": true,\n \"careCoordinationInvolvedDescription\": \"\",\n \"careCoordinationInvolvedNote\": \"\",\n \"additionalServicesInvolved\": true,\n \"additionalServicesInvolvedDescription\": \"\",\n \"additionalServicesInvolvedNote\": \"\",\n \"communityPartnersInvolved\": true,\n \"communityPartnersInvolvedDescription\": \"\",\n \"communityPartnersInvolvedNote\": \"\",\n \"geographiesTargeted\": true,\n \"geographiesTargetedTypes\": [\n \"\"\n ],\n \"geographiesStatesAndTerritories\": [\n \"FL\",\n \"NY\"\n ],\n \"geographiesRegionTypes\": [\n \"CBSA\",\n \"HRR\"\n ],\n \"geographiesTargetedTypesOther\": \"\",\n \"geographiesTargetedAppliedTo\": [\n \"\"\n ],\n \"geographiesTargetedAppliedToOther\": \"\",\n \"geographiesTargetedNote\": \"\",\n \"participationOptions\": true,\n \"participationOptionsNote\": \"\",\n \"agreementTypes\": [\n \"\"\n ],\n \"agreementTypesOther\": \"\",\n \"multiplePatricipationAgreementsNeeded\": true,\n \"multiplePatricipationAgreementsNeededNote\": \"\",\n \"rulemakingRequired\": true,\n \"rulemakingRequiredDescription\": \"\",\n \"rulemakingRequiredNote\": \"\",\n \"authorityAllowances\": [\n \"\"\n ],\n \"authorityAllowancesOther\": \"\",\n \"authorityAllowancesNote\": \"\",\n \"waiversRequired\": true,\n \"waiversRequiredTypes\": [\n \"\"\n ],\n \"waiversRequiredNote\": \"\",\n \"status\": \"\"\n }\n}"
}
},
"url": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
-- Create the StatesAndTerritories type
CREATE TYPE STATES_AND_TERRITORIES AS ENUM (
'AL',
'AK',
'AZ',
'AR',
'CA',
'CO',
'CT',
'DE',
'DC',
'FL',
'GA',
'HI',
'ID',
'IL',
'IN',
'IA',
'KS',
'KY',
'LA',
'ME',
'MD',
'MA',
'MI',
'MN',
'MS',
'MO',
'MT',
'NE',
'NV',
'NH',
'NJ',
'NM',
'NY',
'NC',
'ND',
'OH',
'OK',
'OR',
'PA',
'RI',
'SC',
'SD',
'TN',
'TX',
'UT',
'VT',
'VA',
'WA',
'WV',
'WI',
'WY',
'AS',
'GU',
'MP',
'PR',
'UM',
'VI'
);

-- Create a new column in the plan_general_characteristics table to hold array of states or territories of the plan
ALTER TABLE plan_general_characteristics
ADD COLUMN geographies_states_and_territories STATES_AND_TERRITORIES[];

-- Create the GEOGRAPHIES_REGION_TYPE type
CREATE TYPE GEOGRAPHIES_REGION_TYPE AS ENUM (
'CBSA',
'HRR',
'MSA'
);

-- Create a new column in the plan_general_characteristics table to hold the array of region types of the plan
ALTER TABLE plan_general_characteristics
ADD COLUMN geographies_region_types GEOGRAPHIES_REGION_TYPE[];
Loading

0 comments on commit cd78e45

Please sign in to comment.