-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Warn about deprecated transitions when uploading app-settings #269
Comments
This is ready for AT. |
@latin-panda I think this looks good. I wonder if this would be worth adding a check if that transition actually exists instead of causing all transitions to be disabled but is probably a separate issue. Confirmed warning logs in apps about deprecation |
Ticket: medic/cht-conf#269 This commit will: * Add transition name and deprecated properties to each transition, to identify which ones are deprecated and the version it got deprecated. * Add function inside each transition to return the deprecation message. * Add log the message when deprecated transitions are initialized. * Add function in the transition's index to return the list of deprecated ones. * Add endpoint in the Settings API to return the deprecated transitions. * Fix a circular dependency between settings service and config.js * Move the unit test of transition to test/unit/transitions directory
Ticket: #269 This commit will: * Add a feature to log warning when deprecated transitions are activated when uploading app settings. * Skip 404 errors when requesting deprecated messages
There are a number of deprecated transitions in
cht-core
, each with it's own deprecation "version":update_notifications
deprecated since 3.3.0 in favor ofmuting
update_sent_forms
deprecated since 3.7.0 due to the refactor of Remindersgenerate_patient_id_on_people
deprecated since 3.8.0 in favor ofgenerate_shortcode_on_contacts
medic-conf
could warn, pre-upload (?), when a deprecated transition is enabled in app_settings, depending on the version of the app the instance is running.Questions to consider:
Should the deprecation table be hardcoded in medic-conf?
Should we have an API endpoint that returns the list of deprecated transitions?
The text was updated successfully, but these errors were encountered: