-
Notifications
You must be signed in to change notification settings - Fork 186
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
Add ability to disable the edition of configuration through API endpoints and UI #6607
Conversation
…ion from API endpoints - Add ability to disable the edition of configuration from API endpoints - Add plugin setting to manage this ability - Add route controlle decorator - Protect the related API route controllers to updating the configuration - Changed the sign of routeDecoratorProtectedAdministrator - Adapted its usage on the API endpoints - Create compose utility to compose functions - Add test related to API controllers decorators - Add test about PUT /utils/configuration related to API endpoint protection
…o feat/6557-disable-ability-edit-configuration
…n setting from the Deploy new agent guide
…o feat/6557-disable-ability-edit-configuration
Testability-configuration-editableLegend: UI
Details 🟢 With configuration.ui_api_editable setting enabled, go to App Settings and the Configuration tab should be visible. Update the configuration should work.Chrome - 🟢 Firefox - 🟢 Safari - ⚫ |
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.
LGTM!!
…epending on if the configuration can editable through UI
UI
Details 🟢 With configuration.ui_api_editable setting enabled, go to App Settings and the Configuration tab should be visible. Update the configuration should work.Chrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 With configuration.ui_api_editable setting disabled, go to App Settings and the Configuration tab should not be visible.Chrome - 🟢 Firefox - ⚫ Safari - ⚫ API
Details 🟢 With configuration.ui_api_editable setting enabled, execute PUT to change configuration. The response code must be 200.
🟢 With configuration.ui_api_editable setting disabled, execute PUT to change configuration. The response code must be 403.
|
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.
LGTM!
Description
This pull request add the ability to enable or disable the edition of configuration through API endpoints and UI.
Changes
configuration.ui_api_editable
to manage if the configuration settings can be edited from API endpoints and UI.Configuration
Remember server address
button on deploy new agent guideSettings
button on Statistics appcompose
utility to compose decorators of API endpointsApp Settings
Settings
componentspluginAppName
prop ofAbout
component. This is managed by the component now.Issues Resolved
#6557
Evidence
Test
ability-configuration-editable
Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable
UI
Details
⚫ With configuration.ui_api_editable setting enabled, go to App Settings and the Configuration tab should be visible. Update the configuration should work.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ With configuration.ui_api_editable setting enabled, go to App Settings and the Configuration tab should not be visible.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
Check List
yarn test:jest