Fix Link header for Tree API requests
What does this MR do and why?
Contributes to #468798 (closed)
Problem
When user requests exact number of available elements, then the app
returns a Link
header with a link to a non-existing page.
Solution
Verify the next cursor value and don't respond with Link header when the next cursor is missing.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Edited by Vasilii Iakliushin