Skip to content
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

[Bug][DataSource] No restriction on setting default data source #7396

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/7396.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- [DataSource] No restriction on setting default data source ([#7396](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7396))
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,5 @@ describe('Datasource Management: Edit Datasource Header', () => {
expect(component.find(headerTitleIdentifier).last().text()).toBe(dataSourceName);
expect(component.find(deleteIconIdentifier).exists()).toBe(false);
});
test('should not show default icon', () => {
expect(component.find(setDefaultButtonIdentifier).exists()).toBe(false);
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ export const Header = ({
<EuiFlexItem grow={false}>
<EuiFlexGroup alignItems="baseline" gutterSize="m" responsive={false}>
{/* Test default button */}
{canManageDataSource ? (
<EuiFlexItem grow={false}>{renderDefaultIcon()}</EuiFlexItem>
) : null}
<EuiFlexItem grow={false}>{renderDefaultIcon()}</EuiFlexItem>
{/* Test connection button */}
<EuiFlexItem grow={false}>{renderTestConnectionButton()}</EuiFlexItem>
{/* Delete icon button */}
Expand Down
Loading