-
-
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
Extra column to materialised view and Unit Test #64
Conversation
Hi @garethbowen! If you have a chance, can you please have a look at this draft and my following questions? Thank you!
|
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.
LGTM!
This is complicated because there can be multiple "person" types now (eg: "chw", "supervisor", etc) and they are named arbitrarily so you can't created hardcoded views based on the
This repo is designed to support all CHT deployments, even self hosted. The reason we have two repos is one is generic enough it could be used for any sort of CouchDB -> PG replication, not just CHT. So I don't think we should hardcode Medic-specific roles, but maybe we can include that as a separate script. Regardless it seems to be outside the scope of this issue, so consider raising a new issue for that.
Definitely! It doesn't need to block this work so unless the CI is slowing you down feel free to raise a new issue for that and add it to the backlog. |
Thanks @garethbowen for the review and information! I'm going to raise new issues for each of the 3 questions and pick up the one about CI, as learning experience and also because travis is failing with node 8. We were able to run this project in node 10, I think is good opportunity for a CI upgrade. |
Ticket for question 1: Create new materialised view |
We have to be a bit careful about dropping backwards compatibility as it may require a Node upgrade in production. See if you can get it to work in Node 8, and if not we can explore dropping support. |
Hi @garethbowen Sure, as soon as my current assignment is done, I'll try to fix the project to work with Node 8. |
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.
Description
This PR:
contact_type
column tocontactview_metadata
materialized view.Ticket: #61
License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.