Skip to content
Snippets Groups Projects

Add branch switcher UI to the pipeline editor [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Merged Mireya Andres requested to merge branch-switcher-ui into master

What does this MR do?

For #321655 (closed)

This is an iterative step that adds the dropdown UI for the branch switcher in the pipeline editor. Functionality and loading of data from the backend will be added in future MRs.

The backend dependency for this issue is still in development, so this feature uses a client resolver for now and is hidden behind the :pipeline-editor-branch-switcher feature flag.

The breakdown of the implementation for this issue is as follows:

State Progress
you are here :point_right: Add dropdown UI to the pipeline editor
WIP When clicking on a branch, switch to that branch and load the correct data
TODO Special Case: add branch switcher to empty state
TODO Fetch the branch list from GraphQL (when query is available)

Screenshots

State Screenshot
Branch Switcher Branch Switcher
Show list of branches Branch Switcher Dropdown
Failed to fetch branch list Fetch Error

Branch Switcher

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Mireya Andres

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
  • Mireya Andres added 1 commit

    added 1 commit

    • 46cceeca - Add branch switcher UI to pipeline editor

    Compare with previous version

  • Mireya Andres changed the description

    changed the description

  • Mireya Andres requested review from @brytannia and @f_caplette

    requested review from @brytannia and @f_caplette

  • Mireya Andres changed the description

    changed the description

  • Tetiana Chupryna approved this merge request

    approved this merge request

  • Mireya Andres added 218 commits

    added 218 commits

    • 3f950897...17c4304e - 216 commits from branch master
    • 76389a6d - Add branch switcher UI to pipeline editor
    • 52153d69 - Update specs

    Compare with previous version

  • Mireya Andres mentioned in merge request !57941 (merged)

    mentioned in merge request !57941 (merged)

  • Mireya Andres added 1 commit

    added 1 commit

    Compare with previous version

  • Mireya Andres added 1 commit

    added 1 commit

    Compare with previous version

  • Mireya Andres added 698 commits

    added 698 commits

    • 4c7dcf5b...f7bf97d4 - 696 commits from branch master
    • b4d5a664 - Add branch switcher UI to pipeline editor
    • c746bb57 - Clean up specs & show branch switched even when there's only one branch

    Compare with previous version

  • Frédéric Caplette approved this merge request

    approved this merge request

  • requested review from @sarahghp

  • removed review request for @sarahghp

  • Mireya Andres added 680 commits

    added 680 commits

    • c746bb57...b0f920c2 - 676 commits from branch master
    • 92b52377 - Add branch switcher UI to pipeline editor
    • bcc56681 - Clean up specs & show branch switched even when there's only one branch
    • 1f982cca - Code cleanup for branch switcher
    • d7662be1 - Show error message when query fails to fetch branch list

    Compare with previous version

  • Mireya Andres changed the description

    changed the description

  • Mireya Andres added 42 commits

    added 42 commits

    • d7662be1...ae1f26b6 - 38 commits from branch master
    • 36db629e - Add branch switcher UI to pipeline editor
    • 0af863db - Clean up specs & show branch switched even when there's only one branch
    • 3043d4ce - Code cleanup for branch switcher
    • 46a74784 - Show error message when query fails to fetch branch list

    Compare with previous version

  • Mireya Andres added 14 commits

    added 14 commits

    • 46a74784...5dcc79e3 - 10 commits from branch master
    • 971a15cc - Add branch switcher UI to pipeline editor
    • c35bd2ad - Clean up specs & show branch switched even when there's only one branch
    • f5135cde - Code cleanup for branch switcher
    • 5bd82f99 - Show error message when query fails to fetch branch list

    Compare with previous version

  • Tetiana Chupryna removed review request for @brytannia

    removed review request for @brytannia

  • Mireya Andres requested review from @sarahghp

    requested review from @sarahghp

  • resolved all threads

  • Sarah Groff Hennigh-Palermo approved this merge request

    approved this merge request

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading