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

2009 restrict notes #2014

Merged
merged 5 commits into from
Jul 23, 2021
Merged

2009 restrict notes #2014

merged 5 commits into from
Jul 23, 2021

Conversation

iamleeg
Copy link
Contributor

@iamleeg iamleeg commented Jul 22, 2021

Fixes #2009.

Copy link
Contributor

@abhidg abhidg left a comment

Choose a reason for hiding this comment

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

There's a missing parameter, looks good otherwise

def move_notes(db, collection, source_id, source, dest, dry_run):
"""Move the values in the 'source' key to the 'dest' key for cases in the 'collection'
collection in the 'db' where their caseReference.source_id matches 'source_id'.
If 'remove_source' is set, then additionally remove values from the source key.
Copy link
Contributor

Choose a reason for hiding this comment

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

remove_source isn't in params

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, it was originally but I realised it isn't needed, we never want to copy the notes into both fields. I'll remove it from the docstring!

@iamleeg iamleeg merged commit baf6a3b into main Jul 23, 2021
@iamleeg iamleeg deleted the 2009_restrict_notes branch July 23, 2021 07:58
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.

Hide notes from Brazil data sources
3 participants