Skip to content

Use paginated tree query for retrieving repository files

Jacques Erasmus requested to merge 334140-limit-tree-entries into master

What does this MR do?

Uses the new paginated Tree GraphQL query to display files in the repository browser.

Screenshots or Screencasts (strongly suggested)

No visual changes are expected apart from the query loading returning the correct amount of files:

FF disabled FF enabled
Screenshot_2021-09-01_at_11.00.14 Screenshot_2021-09-01_at_10.52.16

How to setup and validate locally (strongly suggested)

This feature is behind the :paginated_tree_graphql_query feature flag.

  1. run rails c in the project root
  2. run Feature.enable(:paginated_tree_graphql_query) in the rails console
  3. view a repository with files

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #334140 (closed)

Edited by Jacques Erasmus

Merge request reports