-
Notifications
You must be signed in to change notification settings - Fork 203
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
(feat) Put Patient Flags
feature behind a feature toggle
#1283
Conversation
Size Change: +183 B (0%) Total Size: 7.54 MB ℹ️ View Unchanged
|
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.
Thanks @denniskigen LGTM
registerFeatureFlag( | ||
'patientFlags', | ||
'Patient Flags', | ||
'Visual components that enable healthcare providers to see relevant patient information with a glance in the Patient chart. Flags are displayed in the Patient Summary, just below the patient banner, and can link users to other areas of the chart to perform relevant actions during a visit.', |
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.
Beautiful description, thank you 👏
Why are we making changes within |
No need to call |
No need to call useFeatureFlag at any point? Yeah, right? Like we just prevent the extension from mounting at all and we're good.
What? Oh, do you mean that only modifying the extension definition doesn't change it locally for you? Is it because you need to coerce your dev server into reloading the routes somehow? |
3e462d2
to
3420033
Compare
That's it! I've just checked the routes registry file and noticed that the |
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.
Thanks Dennis. I'm good approving this as is, but heads up to @ibacher about the difficulties with the dev server and routes—I think this challenge is an already familiar one but just want to make sure.
Yeah, this is a known issue. If you run |
Thanks for the suggestions and the reviews! |
Requirements
Summary
The Patient Flags feature is currently still a work in progress and isn't ready for production. It makes sense to put it behind a feature flag. This PR adds a feature flag called
patientFlags
and wraps the feature behind it.Screenshots
patient-flags-feature-toggle.mp4
Related Issue
https://issues.openmrs.org/browse/O3-2279
Other
None