Skip to content

Fix the limit logic for containing refs requests

Vasilii Iakliushin requested to merge 464012_fix_limit_for_containing_refs into master

What does this MR do and why?

Contributes to #464012 (closed)

Problem

We apply a limitation for number of references before excluding tipped references. For example, with limit equal 5 and 3 excluded references the final result will be include only 2 refs, instead of potential 5.

Solution

  1. Increase the requested limit by number of excluded references.

    That will guarantee that we fullfil the requested limit

  2. Apply an upper limit for results

    To exclude additional references in case when the result has more than requested number of refs.

How to set up and validate locally

#464012 (closed)

Edited by Vasilii Iakliushin

Merge request reports