Skip to content
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

feat: adding application.type to feedback_summary hasura migration #4023

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

zz-hh-aa
Copy link
Collaborator

@zz-hh-aa zz-hh-aa commented Dec 2, 2024

Adds a new Hasura migration to add application.type to feedback_summary view.

We tested it in a flow with find property, application type etc. and everything worked.

@zz-hh-aa zz-hh-aa requested a review from a team December 2, 2024 10:46
Copy link

github-actions bot commented Dec 2, 2024

Removed vultr server and associated DNS entries

(((fb.user_data -> 'passport'::text) -> 'data'::text) ->> 'proposal.projectType'::text) AS project_type,
(((fb.user_data -> 'passport'::text) -> 'data'::text) ->> 'property.constraints.planning'::text) AS intersecting_constraints,
fb.feedback_score,
((((fb.user_data -> 'passport'::text) -> 'data'::text) -> 'application.type'::text) ->> 0) AS application_type
Copy link
Contributor

@DafyddLlyr DafyddLlyr Dec 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
((((fb.user_data -> 'passport'::text) -> 'data'::text) -> 'application.type'::text) ->> 0) AS application_type
fb.user_data -> 'passport' -> 'data' -> 'application.type' ->> 0 AS application_type

I think this is the same just much clearer, we don't need to cast this chain all the way down.

Could you try this out and check it still works?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, worked for me so pushed the change!

Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! Once this is merged we can queue up a prod deployment so that you can get this across onto Metabase.

@zz-hh-aa zz-hh-aa merged commit c20025d into main Dec 2, 2024
12 checks passed
@zz-hh-aa zz-hh-aa deleted the oz/application_type_feedback branch December 2, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants