Graylog2 / Graylog2/graylog2-server

Share button not enabled immediately after Event Definition/Notification creation

Open
#20,411 0 comments 0 reactions 0 assignees View on GitHub
bug test-day triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

After a normal user (not `admin`) creates either an Event Definition or Notification the share button is not immediately enabled.
## Expected Behavior

After creating an Event Definition or Notification a user should immediately be able to share it.
## Current Behavior

After creating an Event Definition or Notification a user must refresh the page for the Share button to be enabled and share the entity.

## Possible Solution

Refresh the permissions check on the frontend after either of these entities is created to allow for the proper enabled state of the share button
## Steps to Reproduce (for bugs)

1. Log in as a non-`admin` user with the `Event Notification Creator` and `Event Definition Creator` roles assigned
2. Create both a notification and definition
3. Notice immediately after creation the newly created entity cannot be shared
4. Refresh the page and the Share button should be enabled

## Context

## Your Environment

* Graylog Version:
* Java Version:
* OpenSearch Version:
* MongoDB Version:
* Operating System:
* Browser version:

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.