8000 fixed MIG-127 and adjusted tests to include manifest in memo by emilyackermanmedable · Pull Request #388 · Medable/mdctl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fixed MIG-127 and adjusted tests to include manifest in memo #388

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

Merged
merged 2 commits into from
Sep 5, 2022

Conversation

emilyackermanmedable
Copy link
Contributor

Also fixed a bug in StudyManifestTools that previously meant ec__document_templates were not being included in study exports: we had been looking for the property "c_study" in ec__document_templates, but that property does not exist; rather, it is called ec__study on that object

Copy link
Contributor
@davideaquaro davideaquaro left a comment

Choose a reason for hiding this comment

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

Hi @emilyackermanmedable,I think that property variable is used to determine if querying by 'c_study' (for full migrations) or 'c_key' (for partial migrations) when calling getObjectIDsArray method.
If that value is hard coded , will it still work properly for partial migrations where we pass c_key instances instead?

@@ -707,7 +707,7 @@ class StudyManifestTools {
}
case 'ec__document_template': {
// Get the eConsents ID's from the study or the manifest
ids = (await this.getObjectIDsArray(org, key, property, values)).map(v => v._id)
ids = (await this.getObjectIDsArray(org, key, 'ec__study', values)).map(v => v._id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @emilyackermanmedable,I think that property variable is used to determine if querying by 'c_study' (for full migrations) or 'c_key' (for partial migrations) when calling getObjectIDsArray method.
If that value is hard coded , will it still work properly for partial migrations where we pass c_key instances instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed it - thank you for catching that!

8000

Copy link
Contributor
@davideaquaro davideaquaro left a comment

Choose a reason for hiding this comment

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

Suggested changes applied. All tests passing.

@fiachra fiachra merged commit 14a3dfc into develop Sep 5, 2022
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.

3 participants
0