Graylog2 / Graylog2/graylog2-server

When editing a widget, cancelling forces the entire dashboard to reexecute the search.

Open
#15,833 0 comments 0 reactions 1 assignee Claimed by @maxiadlovskii View on GitHub
bug triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

When editing widgets on dashboards, one may want to only view the widget config and not necessarily commit any changes. Using the "edit" button we can do this, however, when canceling the edit action, the entire dashboard is blanked out and you must wait for the search to execute. In my opinion this is unexpected behavior because nothing was changed.

http://videos.graylog.com/watch/vK3QwKLFK2M6DCfhH8cSxR?

## Expected Behavior

Cancel returns to dashboard, search is not reexecuted and existing dashboard widgets do not have their contents emptied. (unrelated it may make more sense to not clear out the entire widget while waiting for a search result, but rather keep the existing data and then update it when the search finishes executing).

## Current Behavior

All dashboards are emptied, search is reexecuted.

## Possible Solution

Have cancel button close the edit screen but not trigger any updates or search execute actions.

## Steps to Reproduce (for bugs)

1. Open a dashboard
2. Edit a widget
3. Click cancel

## Context

Its not uncommon or unusual to want to inspect a dashboard widget but not commit and edits/changes to it. Having to wait for the search to reexecute makes this process slow and cumbersome and is a suboptimal user experience. I have quite a bit a feedback in terms of dashboard behavior but thats another topic for another day. Happy to chat at lenght though for anyone interested.

## Your Environment

* Graylog Version: 5.1.2
* Java Version: Bundled
* ~~Elasticsearch~~ OpenSearch Version: 2.8.0
* MongoDB Version: 6.0.6
* Operating System: Ubuntu Server 22.04 LTS
* Browser version: Google Chrome Version 114.0.5735.198 (Official Build) (arm64)

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.