Instance streaming - Update destination list, create and delete queries
What does this MR do and why?
Update the graphql query to pull instance level audit event streaming destinations if they are available. If not it will show the empty state and allow users to add destinations
Screenshots or screen recordings
Empty state
List destinations
Add a destination
How to set up and validate locally
-
Enable the both FE and BE feature flag
Feature.enable(:instance_streaming_audit_events) Feature.enable(:ff_external_audit_events)
-
Navigate to Admin menu and go to Monitoring -> Audit Events
-
Ensure that the
Streams
tab is visible. -
Click on the
Streams
tab -
Ensure that it shows the empty state and clicking on to add a destination will show the form
-
Add a URL, test different variations, I use https://webhook.site/ to test events are received
-
Ensure that the new URL is listed and does not refresh page
-
Trigger an instance audit event and confirm it is received (eg create a new group)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #398107 (closed)