Skip to content
Snippets Groups Projects

Fix Flaky Offset and Limit for namespace_spec traversal_scope_examples

All threads resolved!

What does this MR do and why?

Fixes flaky examples that use .offset and .limit within traversal_scope_examples as originally reported here:

By adding an .order clause to order by a known value (ex: path), we will guarantee the order of the query results so that the offset can be applied correctly and match the expected results.

How to set up and validate locally

  • In your local GDK from the gitlab directory, run bin/rspec spec/models/namespace_spec.rb

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Valerie Burton

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading