-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added hidden filter to data streams tab (#85028)
* Added hidden filter to data streams tab * Fix i18n import * Fixed tests * hidden ds pr feedback * Added includeHidden query to data streams list * Changed how badge group renders data streams badges Co-authored-by: Kibana Machine <[email protected]>
- Loading branch information
1 parent
542a8aa
commit a8d088f
Showing
15 changed files
with
320 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
x-pack/plugins/index_management/public/application/sections/home/components/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
export { FilterListButton, Filters } from './filter_list_button'; |
45 changes: 45 additions & 0 deletions
45
...index_management/public/application/sections/home/data_stream_list/data_stream_badges.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiBadge, EuiBadgeGroup } from '@elastic/eui'; | ||
import { FormattedMessage } from '@kbn/i18n/react'; | ||
import { DataStream } from '../../../../../common'; | ||
import { isFleetManaged } from '../../../lib/data_streams'; | ||
|
||
interface Props { | ||
dataStream: DataStream; | ||
} | ||
|
||
export const DataStreamsBadges: React.FunctionComponent<Props> = ({ dataStream }) => { | ||
const badges = []; | ||
if (isFleetManaged(dataStream)) { | ||
badges.push( | ||
<EuiBadge color="hollow"> | ||
<FormattedMessage | ||
id="xpack.idxMgmt.dataStreamList.table.managedDataStreamBadge" | ||
defaultMessage="Managed" | ||
/> | ||
</EuiBadge> | ||
); | ||
} | ||
if (dataStream.hidden) { | ||
badges.push( | ||
<EuiBadge color="hollow"> | ||
<FormattedMessage | ||
id="xpack.idxMgmt.dataStreamList.table.hiddenDataStreamBadge" | ||
defaultMessage="Hidden" | ||
/> | ||
</EuiBadge> | ||
); | ||
} | ||
return badges.length > 0 ? ( | ||
<> | ||
| ||
<EuiBadgeGroup>{badges}</EuiBadgeGroup> | ||
</> | ||
) : null; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.