Skip to content
Snippets Groups Projects

Add custom headers form to streaming audit events

All threads resolved!

What does this MR do and why?

This MR adds the custom headers form to the audit events streaming UI. It does not add the ability to save or delete the custom headers, which will be done in future MRs.

This MR follows the constraints from the issue:

  1. Behind the :custom_headers_streaming_audit_events_ui feature flag
  2. Form should be able to add and remove rows
    • Limited to 20 rows and shows a message when the limit is reached
    • Automatically shows a new blank row when the previous row gets filled in with a header and value
    • active checkbox is disabled for now
  3. documentation updated explaining how to use the new UI and the row limit
  4. Specs added for the new UI

Screenshots or screen recordings

Empty With values Video of use (checkbox is now marked as checked, not shown in video)
image image Screen_Recording_2022-06-21_at_15.15.19

How to set up and validate locally

  1. Visit a group's audit events page e.g. http://gdk.test:3000/groups/gitlab-org/-/audit_events and look at the Streams tab.
  2. Check that the custom headers table isn't shown and that you can add new destination URLs, edit existing URLs, and delete URLs.
  3. Enable the feature flag :custom_headers_streaming_audit_events_ui: echo "Feature.enable(:custom_headers_streaming_audit_events_ui)" | rails c.
  4. Check that the custom headers table is shown and that you can add new destination URLs, edit existing URLs, and delete URLs.
    • The custom headers data will not be saved.
  5. Check that you can fill in the header name and value inputs and a new row is automatically added when you do.
  6. Check that you get a warning if the same header name is used twice.
  7. Check that you can delete a header from the table.
  8. Fill in 20 headers and check that no more can be added and a message is shown at 20 headers.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

MR reviews

Related to #361630 (closed)

Edited by Evan Read

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Robert Hunt
  • Robert Hunt marked this merge request as ready

    marked this merge request as ready

  • Robert Hunt marked the checklist item I have evaluated the MR acceptance checklist for this MR. as completed

    marked the checklist item I have evaluated the MR acceptance checklist for this MR. as completed

  • Robert Hunt changed the description

    changed the description

  • Robert Hunt added 7 commits

    added 7 commits

    • c1112200...43344756 - 6 commits from branch master
    • 0d8c8e21 - Add custom headers form to audit events streaming UI using feature flag

    Compare with previous version

  • Robert Hunt changed the description

    changed the description

    • Author Maintainer
      Resolved by Evan Read

      @eread would you mind taking a look at the documentation changes in this MR? I'm trying to capture the new UI behind the feature flag however it doesn't save or delete the data yet, so it's a bit tricky :see_no_evil:

      This is part of the epic we're looking to make good headway on in %15.2, so there will be further documentation changes in this area over the course of the milestone.

  • Robert Hunt requested review from @eread

    requested review from @eread

  • Robert Hunt requested review from @mwoolf

    requested review from @mwoolf

    • Author Maintainer
      Resolved by Robert Hunt

      @jiaan as a frontend groupcompliance expert, I would love to get you to do the initial review of the frontend changes in this MR, especially as this is the base for the next several MRs for this feature. However, I also know that you're super busy right now, so if you can't do a true review, it would be great if you could do a cursory check-over to make sure I'm not doing anything too stupid :sweat_smile:

  • Robert Hunt requested review from @jiaan

    requested review from @jiaan

  • Max Woolf
  • Max Woolf approved this merge request

    approved this merge request

  • Max Woolf removed review request for @mwoolf

    removed review request for @mwoolf

  • :wave: @mwoolf, thanks for approving this merge request.

    This is the first time the merge request is approved. To ensure full test coverage, a new pipeline has been started.

    For more info, please refer to the following links:

  • Robert Hunt added 108 commits

    added 108 commits

    • 0d8c8e21...007223d2 - 107 commits from branch master
    • f545bfd7 - Add custom headers form to audit events streaming UI using feature flag

    Compare with previous version

  • Robert Hunt requested review from @toupeira

    requested review from @toupeira

  • Robert Hunt requested review from @seggenberger

    requested review from @seggenberger

  • added UX label

  • Please wait for Reviewer Roulette to suggest a designer for UX review, and then assign them as Reviewer. This helps evenly distribute reviews across UX.

  • mentioned in issue #362504 (closed)

  • Markus Koller approved this merge request

    approved this merge request

  • Jiaan Louw
  • Jiaan Louw
  • Jiaan Louw
  • Jiaan Louw
  • Jiaan Louw
  • Jiaan Louw
    • Resolved by Jiaan Louw

      Suggestion (non-blocking): This is outside the scope of this MR, but WDYT about adding the active tab to the URL and setting the active tab based on the URL? That way reloading the page wouldn't navigate away from the Streams tab and users could also bookmark it.

  • Jiaan Louw
  • Jiaan Louw
  • Jiaan Louw
  • Jiaan Louw
  • Jiaan Louw
  • Jiaan Louw
  • Jiaan Louw
  • Jiaan Louw
  • Jiaan Louw
  • Jiaan Louw
  • Robert Hunt added 84 commits

    added 84 commits

    Compare with previous version

  • Jiaan Louw
  • Jiaan Louw
  • Jiaan Louw
  • Jiaan Louw approved this merge request

    approved this merge request

  • Jiaan Louw removed review request for @jiaan

    removed review request for @jiaan

  • Markus Koller removed review request for @toupeira

    removed review request for @toupeira

  • Evan Read
  • Evan Read
  • Evan Read
  • Evan Read
  • Evan Read removed review request for @eread

    removed review request for @eread

  • Robert Hunt added 369 commits

    added 369 commits

    • a3f3e452...2a7146e2 - 367 commits from branch master
    • 69e694a3 - Add custom headers form to audit events streaming UI using feature flag
    • 997e43fe - Changed docs based upon tech writers reviewers suggestions

    Compare with previous version

  • Robert Hunt requested review from @eread

    requested review from @eread

  • Evan Read removed review request for @eread

    removed review request for @eread

  • Robert Hunt added 143 commits

    added 143 commits

    • 997e43fe...e2db9d07 - 142 commits from branch master
    • 7d487c1c - Add custom headers form to audit events streaming UI using feature flag

    Compare with previous version

  • Robert Hunt requested review from @eread

    requested review from @eread

  • Robert Hunt added priority1 label and removed priority3 label

    added priority1 label and removed priority3 label

  • Sascha Eggenberger approved this merge request

    approved this merge request

  • Robert Hunt changed the description

    changed the description

  • Robert Hunt requested review from @ntepluhina

    requested review from @ntepluhina

    • Contributor
      Resolved by Robert Hunt

      @rob.hunt @seggenberger since the Active checkbox is disabled, what do you think about making it disabled checked? That could provide some visual confirmation that the header value is active, even if a user can't actually interact with the checkbox.

  • Robert Hunt changed the description

    changed the description

  • Robert Hunt added 47 commits

    added 47 commits

    • 7d487c1c...313981a0 - 46 commits from branch master
    • b0ecb3f8 - Add custom headers form to audit events streaming UI using feature flag

    Compare with previous version

  • Natalia Tepluhina removed review request for @ntepluhina

    removed review request for @ntepluhina

  • Evan Read
  • Evan Read
  • Evan Read
  • Evan Read
  • Evan Read
  • Evan Read removed review request for @eread

    removed review request for @eread

  • Robert Hunt added 129 commits

    added 129 commits

    • b0ecb3f8...52036352 - 128 commits from branch master
    • c48a64ea - Add custom headers form to audit events streaming UI using feature flag

    Compare with previous version

  • Robert Hunt requested review from @ntepluhina

    requested review from @ntepluhina

  • Robert Hunt requested review from @eread

    requested review from @eread

  • Natalia Tepluhina approved this merge request

    approved this merge request

  • Natalia Tepluhina removed review request for @ntepluhina

    removed review request for @ntepluhina

  • Robert Hunt marked the checklist item frontend maintainer as completed

    marked the checklist item frontend maintainer as completed

  • Robert Hunt added 3 commits

    added 3 commits

    • c48a64ea...0c99f2e1 - 2 commits from branch master
    • 9509f801 - Add custom headers form to audit events streaming UI using feature flag

    Compare with previous version

  • Evan Read
  • Evan Read removed review request for @eread

    removed review request for @eread

  • Evan Read
  • Robert Hunt added 178 commits

    added 178 commits

    • 9509f801...ad5e33f3 - 177 commits from branch master
    • fe759a02 - Add custom headers form to audit events streaming UI using feature flag

    Compare with previous version

  • Robert Hunt requested review from @eread

    requested review from @eread

  • Robert Hunt added 11 commits

    added 11 commits

    • fe759a02...37e904ab - 10 commits from branch master
    • 170aaf06 - Add custom headers form to audit events streaming UI using feature flag

    Compare with previous version

  • Robert Hunt added 28 commits

    added 28 commits

    • 170aaf06...ded865bf - 27 commits from branch master
    • 8177f0d9 - Add custom headers form to audit events streaming UI using feature flag

    Compare with previous version

  • A deleted user added backend label

    added backend label

  • Evan Read
  • Evan Read marked the checklist item documentation review as completed

    marked the checklist item documentation review as completed

  • Evan Read approved this merge request

    approved this merge request

  • Evan Read removed review request for @eread

    removed review request for @eread

  • Robert Hunt added 238 commits

    added 238 commits

    • 8177f0d9...1b3dbe97 - 237 commits from branch master
    • d613e0e4 - Add custom headers form to audit events streaming UI using feature flag

    Compare with previous version

  • Robert Hunt resolved all threads

    resolved all threads

  • Robert Hunt requested review from @ntepluhina

    requested review from @ntepluhina

  • Natalia Tepluhina resolved all threads

    resolved all threads

  • Natalia Tepluhina enabled an automatic merge when the pipeline for 3f71cae1 succeeds

    enabled an automatic merge when the pipeline for 3f71cae1 succeeds

  • mentioned in commit 3d4ac456

  • Evan Read mentioned in merge request !91733 (merged)

    mentioned in merge request !91733 (merged)

  • added workflowstaging label and removed workflowcanary label

  • Please register or sign in to reply
    Loading