-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fund status table to Data Dictionary with funding status descriptions #1507
Conversation
@@ -0,0 +1,14 @@ | |||
ALTER TABLE "public"."moped_fund_status" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept this migration simple since it didn't seem like this table is a prereq for the db views that power the advanced search component on the Projects index page. Since fund status isn't an option as an advanced filter field, this seemed right, but I may be naive.
@@ -75,5 +75,10 @@ export const TABLE_LOOKUPS_QUERY = gql` | |||
project_role_name | |||
project_role_description | |||
} | |||
moped_fund_status(where: { funding_status_id: { _neq: 0 } }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how we ignore the archived field. Let me know if there's a preferred way to do this. Wish I could've added a comment here for posterity but I don't know if there's comment syntax you can use within the gql
template literal string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm, I looked it up. #
works for commented out lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love seeing documentation built into the DB. And it's always nice to see another section added to the data dictionary. Looks goood 🚢 🚢 🚢 🚢 🚢
ALTER TABLE "public"."moped_fund_status" | ||
ADD COLUMN "funding_status_description" text NULL; | ||
|
||
COMMENT ON COLUMN "public"."moped_fund_status"."funding_status_description" IS 'Description of the funding status'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇
moped-database/migrations/1735340549358_add-funding-status-description/up.sql
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the bot doing it's thing? 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, this is what it looks like when there is formatting done by the bot 🤖 and there isn't a change in the view definition. I think this happened since this branch is behind main? We saw the same formatting change in https://github.com/cityofaustin/atd-moped/pull/1472/files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for adding this to the dictionary 📖 🚀 and for the helpful comments. 🙏 I requested a couple small changes, and then this is 🚢
- description for “Funding setup requested” - alphabetize data dictionary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for making the updates 🙌 😎 🚢
@mateoclarke I'm going to merge this to get started on testing this morning. Thanks again! |
Associated issues
Closes cityofaustin/atd-data-tech#19665
Testing
URL to test:
Test locally since there is a migration required.
Steps to test:
hasura migrate apply --down 1
and confirm that thefunding_status_description
field is dropped properly.Ship list
[ ] Product manager added to QA test script if applicable