-
Notifications
You must be signed in to change notification settings - Fork 15
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
Enable/disable charts feature #2147
Conversation
8369197
to
a3c26cc
Compare
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.
Hey!
Good stuff.
data-testid="chart-disabled-box" | ||
> | ||
<h2 className="font-bold text-center text-xl"> | ||
Charts are disabled, please check documentation for further details |
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.
Maybe Charts are disabled. Please check the documentation for further details
.
Could we point the user to that documentation with a link?
Otherwise it doesn't look like that helpful
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.
Yes, but we don't have the docs yet, so atm I think we could have as is
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.
Great!
Commented some other small leftovers.
No need for a new review
assets/js/common/ChartsDisabledBox/ChartsDisabledBox.stories.jsx
Outdated
Show resolved
Hide resolved
d67a6b0
to
f42b77c
Compare
Description
This pr aims to enable and disable the charts feature, both in the backend/frontend.
By default the feature is enabled, can be disabled with a runtime env variable.
On the backend, a dedicated plug will return 501 for all the charts endpoint, when the feature is disabled.
On frontend, the chart components will not be displayed, instead a text with a dedicated copy is shown to the user.
Frontend result
How was this tested?
Automated tests