-
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.
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
1 parent
deef6df
commit cd78e45
Showing
32 changed files
with
1,610 additions
and
388 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
75 changes: 75 additions & 0 deletions
75
migrations/V142__Add_GeographiesStatesAndTerritories_And_GeographiesRegionTypes.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,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[]; |
Oops, something went wrong.