Skip to content

Ensure Milestones Are Displayed With Few Results

Andrew Fontaine requested to merge afontaine/fix-milestones-releases into master

What does this MR do?

In the event there are less than a full page's worth of results, the X-Total header might be missing from the HTTP response. In this case, we can fall back to the length of the list returned by the API.

Screenshots or Screencasts (strongly suggested)

before after
Screen_Recording_2021-09-07_at_14.02.07 Screen_Recording_2021-09-07_at_13.55.37

image

How to setup and validate locally (strongly suggested)

  1. Navigate to http://gdk.test:3000/flightjs/Flight/-/releases/new
  2. Search for a milestone to link to the release

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

For #339081 (closed)

Edited by Andrew Fontaine

Merge request reports