Skip to content

Cache newly committed branches in branch switcher

Mireya Andres requested to merge pipeline-editor/cache-new-branches into master

What does this MR do?

For #331105 (closed). Dependent on !62871 (merged).

When the user creates a new branch through a commit in the pipeline editor, that new branch will be added to the apollo cache so that it will show up in the branch switcher.

The branch switcher has two queries: one for searching all branches, and one of searching branches with a searchPattern. The latter already uses a network-only fetch policy since it would be difficult to update the cache for each search query where the new branch fits the searchPattern.

This feature sits behind a feature flag , to enable it run:

echo "Feature.enable(:pipeline_editor_branch_switcher)" | rails c

Screenshots

Cache New Branch

Persist Changes When Switching Branches

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by David O'Regan

Merge request reports