Skip to content
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
8 changes: 4 additions & 4 deletions x-pack/plugins/infra/server/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const METRICS_FEATURE = {
all: {
app: ['infra', 'metrics', 'kibana'],
catalogue: ['infraops', 'metrics'],
api: ['infra'],
api: ['infra', 'rac'],
savedObject: {
all: ['infrastructure-ui-source'],
read: ['index-pattern'],
Expand All @@ -50,7 +50,7 @@ export const METRICS_FEATURE = {
read: {
app: ['infra', 'metrics', 'kibana'],
catalogue: ['infraops', 'metrics'],
api: ['infra'],
api: ['infra', 'rac'],
savedObject: {
all: [],
read: ['infrastructure-ui-source', 'index-pattern'],
Expand Down Expand Up @@ -88,7 +88,7 @@ export const LOGS_FEATURE = {
all: {
app: ['infra', 'logs', 'kibana'],
catalogue: ['infralogging', 'logs'],
api: ['infra'],
api: ['infra', 'rac'],
savedObject: {
all: ['infrastructure-ui-source'],
read: [],
Expand All @@ -109,7 +109,7 @@ export const LOGS_FEATURE = {
read: {
app: ['infra', 'logs', 'kibana'],
catalogue: ['infralogging', 'logs'],
api: ['infra'],
api: ['infra', 'rac'],
alerting: {
rule: {
read: [LOG_DOCUMENT_COUNT_ALERT_TYPE_ID],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const useStatusBulkActionItems = ({
setEventsDeleted,
onUpdateSuccess,
onUpdateFailure,
timelineId,
timelineId = STANDALONE_ID,
}: StatusBulkActionsProps) => {
const { updateAlertStatus } = useUpdateAlertsStatus(timelineId !== STANDALONE_ID);
const { addSuccess, addError, addWarning } = useAppToasts();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,23 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
expect(enabledCheckBoxes.length).to.eql(3);
});
});

it('validate functionality of the single alert actions button', async () => {
await observability.alerts.common.setWorkflowStatusFilter('acknowledged');
const singleActions = await testSubjects.findAll('alerts-table-row-action-more');
await singleActions[0].click();

const closeAlertAction = await testSubjects.find('close-alert-status');
await closeAlertAction.click();

await observability.alerts.common.setWorkflowStatusFilter('acknowledged');

await retry.try(async () => {
const enabledCheckBoxes =
await observability.alerts.common.getAllEnabledCheckBoxInTable();
expect(enabledCheckBoxes.length).to.eql(2);
});
});
});
});
});
Expand Down