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

Support for cht-core v3.12 and the cht-script-api #151

Merged
merged 18 commits into from
Jan 3, 2022
Merged

Conversation

kennsippell
Copy link
Member

@kennsippell kennsippell commented Dec 18, 2021

This is a spin-off of the branch adding-cht-script-api-mock written by @latin-panda. Thanks for the great start and getting this code into shared-libs so this is pretty easy.

  1. Adds support for cht-core v3.12
  2. New interface harness.userRoles and associated handles in the "defaults file" for setting the current user's assigned role. I think we might want to improve this later Improved functionality for setting userRoles #152, and if reviewer has any immediate suggestions please indicate.
  3. Adds version-aware tests cht-core for cht-scripts-api (works >=v3.12 and doesn't work <v3.12)

Refactoring:

  • Currently tests for tasks/targets are written against a compiled app_settings.json file without the source. That's tough to work with and tough to understand, so this adds a new project with source for unit tests. For now, it keeps the old tests too.

#148

cc @eljhkrr

@kennsippell kennsippell changed the title Support for cht-core v3.12 Support for cht-core v3.12 and the cht-script-api Dec 18, 2021
Copy link
Contributor

@jkuester jkuester left a comment

Choose a reason for hiding this comment

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

👍 I am still getting familiar with all the facets of this harness, so cannot speak much to the completeness of this change set (though I trust @kennsippell's discretion here 😄). I can say that these changes are consistent and do work for me. The test coverage is nice as well (though I agree it would be nice to have some tests for the user role functionality for targets)!

@kennsippell kennsippell merged commit 764ca93 into master Jan 3, 2022
@kennsippell kennsippell deleted the support-3-12 branch January 3, 2022 20:46
kennsippell added a commit that referenced this pull request Jan 4, 2022
* Adds support for cht-core v3.13
* Makes 3.13 Enketo wireup the "default" which adds parse-timestamp-to-date
* Fixes a regression to the npm run explore command from the test refactoring in Support for cht-core v3.12 and the cht-script-api #151
@medic-ci
Copy link

medic-ci commented Apr 9, 2024

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants