-
Notifications
You must be signed in to change notification settings - Fork 164
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
Fixes an issue when loading unknown datasource causes page to crash #1947
Fixes an issue when loading unknown datasource causes page to crash #1947
Conversation
Signed-off-by: Darshit Chanpura <[email protected]>
Signed-off-by: Darshit Chanpura <[email protected]>
public/apps/configuration/panels/audit-logging/audit-logging-edit-settings.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Darshit Chanpura <[email protected]>
Signed-off-by: Darshit Chanpura <[email protected]>
Signed-off-by: Darshit Chanpura <[email protected]>
Signed-off-by: Darshit Chanpura <[email protected]>
Signed-off-by: Darshit Chanpura <[email protected]>
Signed-off-by: Darshit Chanpura <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1947 +/- ##
==========================================
+ Coverage 70.61% 71.07% +0.46%
==========================================
Files 97 98 +1
Lines 2600 2631 +31
Branches 380 393 +13
==========================================
+ Hits 1836 1870 +34
+ Misses 668 665 -3
Partials 96 96 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Darshit Chanpura <[email protected]>
Signed-off-by: Darshit Chanpura <[email protected]>
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.
Hi @DarshitChanpura, thanks for taking this on.
@kgcreative Would you mind giving this a look? The proposed design of adding a button to switch to default cluster is not required in this case since the page auto-reloads to default cluster when aggregation view is disabled. In the case where aggregation view is enabled, the user needs permissions to be able to read all data-source connections. Two possible outcomes in this case:
This is the new file that was introduced. Please let me know if any language needs to be changed. |
I would maybe suggest:
|
Can we move this into a panel, WDYT @kgcreative ? @cwperks what is the relative usage of this feature flag/ I know it is marked as experimental so maybe not high? Is it still worth it to add this? |
@derek-ho there is no active work on the feature flag. This was intended to simplify sharing amongst tenants, but is now* being supplanted by workspaces. The feature flag is not supported and IMO can be removed. |
Signed-off-by: Darshit Chanpura <[email protected]>
Most of the relevant code bits have been moved to the latest PR: #1964 I would be in favor of closing this down if the setting is deprecated |
I agree if the feature flag is not relevant anymore this can be closed in favor of #1964, since all the important changes from this PR are present over there. |
Closing as this is not needed since aggregation view is an experimental feature |
Description
Fixes an issue when entering an invalid dataSource id causes page to crash.
UnknownDataSourcePage component only displays when
opensearch_security.multitenancy.enable_aggregation_view
is set to true.When this setting is set to false, the page automatically reloads to the default dataSource.
Category
Bug Fix
Why these changes are required?
Issues Resolved
Testing
Screen.Recording.2024-05-10.at.5.53.48.PM.mov
Screen.Recording.2024-05-10.at.6.48.37.PM.mov
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.