-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Update contactview_metadata to be compatible with configurable contact hierarchies #61
Comments
Hi @latin-panda , Can you reassign the owner for each object after they're created to full_access as well? ALTER [OBJECT_TYPE] [OBJECT_NAME] OWNER TO full_access; |
|
I also thought about that. But, this repo (medic-couch2pg) is medic specific instance and I think we should put that. But not put REASSIGN on our public repo. |
Hey guys, I've verified and effectively this repo is designed to support all CHT deployments, even self hosted. So we should not hardcode Medic-specific roles, but we can include this as a separate script that runs in demand, I've raised a ticket to address this next. |
I've tested this in my local setup. By tearing down the current |
@latin-panda this is ready to merge. |
Ticket: #61 In this commit: * Add contact_type column to contactview_metadata materialized view. * Add a unit test to check that materialized views have the required columns defined.
PR has been merged. |
Ticket: #61 In this commit: * Add contact_type column to contactview_metadata materialized view. * Add a unit test to check that materialized views have the required columns defined.
Current version of contactview_metadata was last updated on 2018. Since then, we've added configurable hierarchy to CHT-Core and for most of the partners using latest version of CHT-Core,
contact_type
field is also important.Whenever couch2pg runs, it creates contactview_metadata, so we should ensure that we're creating required field in contactview_metadata instead of partners/tech leads requiring to drop and recreate this mat view again.
The text was updated successfully, but these errors were encountered: