Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.33k stars 1.06k forks source link

Unable to edit search filters in dashboard widgets that are imported from content packs #15841

Closed miwent closed 1 year ago

miwent commented 1 year ago

Users are unable to edit search filters used in dashboard widgets that are imported as part of a content pack.

Expected Behavior

Users should be able to edit the search filters

Current Behavior

Editing the filter generates an error filters_error

Possible Solution

Steps to Reproduce (for bugs)

  1. Create a dashboard with widgets that rely on search filters
  2. Export this dashboard in a content pack and remove the test dashboard
  3. Import the content pack and install
  4. Attempt to edit the filters in the test dashboard widgets

Context

This would limit the ability of users to customize content after it was imported from the content pack. For Illuminate this would mean the filters could only be edited on the system they were originally generated on, as long as those widgets were never removed.

Your Environment

dennisoelkers commented 1 year ago

The underlying issue is that even though the search filter has a type of referenced, it is not actually persisted to the search_filters collection when the content pack is installed.