Skip to content

Resolve "Unable to expand multiple downstream pipelines." bug

What does this MR do?

  • The first is that we no longer reset the downstream or upstream pipelines when you expand a new one which prevents the graph from collapsing. This also involved removing an unused argument from a couple of function
  • The second is that when you would expand an upstream pipeline, it would open all of them at once, which I fixed in app/assets/javascripts/pipelines/stores/pipeline_store.js by only opening one.
  • We used to reset the pipeline store every time we clicked on a downstream, which is why you couldn't expand the downstream of a downstream (the store was empty, so we couldn't build the graph). However, I had initially completely removed it BUT we need it so that when you are expanding a sibling of a downstream, you reset the graph, otherwise the UI tries to stack both of them on top of each other.
  • You can see 2 commits in the history, the first one is the bug fix, the second take care of the sibling downstreams
  • Lastly, I will make an MR in 12.10 to migrate the karma spec to jest.

Screenshots

Before

Screen_Shot_2020-03-26_at_3.29.48_PM

After

Screen_Shot_2020-03-26_at_3.31.17_PM

Videos

Before Downstream-current-UX

After Downstream-after-fix

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

Relates to: #119017 (closed)

Edited by Frédéric Caplette

Merge request reports