Integrate listing of existing custom headers into custom headers form for streaming audit events
requested to merge 361632-integrate-custom-headers-list-graphql-into-custom-headers-form-for-streaming-audit-events into master
What does this MR do and why?
This MR adds a read-only form on existing destinations to show the custom headers applied. This will be changed from read-only in the update mutation integration.
Overall it adds:
- Custom headers to GraphQL query for destinations retrieval
- Edit button to streaming items
- Editing mode to streaming items to toggle the editor
- Ability to set the editor to read-only when the item is passed in
- 'Save' button rather than 'Add' button on editing
- Section to the docs on the listing UI
Screenshots or screen recordings
Screen_Recording_2022-07-06_at_14.45.24
How to set up and validate locally
- Enable the feature flag
:custom_headers_streaming_audit_events_ui
:echo "Feature.enable(:custom_headers_streaming_audit_events_ui)" | rails c
. - Visit a group's audit events page e.g.
http://gdk.test:3000/groups/gitlab-org/-/audit_events
and look at the Streams tab. - Add a new destination without header values.
- While adding, check the save button text is 'Add'.
- Select the edit button on the destination item and check the fields are read-only and no header values exist.
- Check the save button text is 'Save'.
- Add a new destination with header values.
- Select the edit button on the destination item and check the fields are read-only and the header values exist.
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 #361632 (closed)
Edited by Robert Hunt