Graylog2 / Graylog2/graylog2-server

Disable specific sidebar actions on search page, when search page has errors.

Open
#10,813 0 comments 0 reactions 1 assignee Claimed by @Emy-01 View on GitHub
feature
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

## What?

## Why?

With https://github.com/Graylog2/graylog2-server/pull/10798 we introduced the `hasError` flag for the search page. When opening a search page, which has errors we are no longer displaying the search results.

In this case we should disable some actions, because they do not or should not have an effect:
- creating a widget
- field actions in sidebar fields list.

We could share the `hasError` state by using a context. In this case we should use the state to disable the dashboard save action. We are currently disabling these action based on `searchMetadata.undeclared.size`.

## Your Environment

* Graylog Version: current development version for 4.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.