Skip to content

Fix pipeline count on merge request tab

Lee Tickett requested to merge fix-pipeline-count-on-mr-tab into master

What does this MR do?

Currently when accessing a merge request with more than 15 pipelines (the max per page) the pipelines tab contains the correct count on page load... but when navigating to the pipelines tab it is updated incorrectly to 15.

This MR fixes that behaviour by using the http header x-total value.

/cc @mcelicalderonG @DylanGriffith

Screenshots or Screencasts (strongly suggested)

Before

pc-broken

After

pc-fixed

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • 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 Lee Tickett

Merge request reports