Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nested queries with unlimited default limit #22049

Merged
merged 2 commits into from
Apr 15, 2024
Merged

Conversation

paescuj
Copy link
Member

@paescuj paescuj commented Apr 2, 2024

Scope

Fix an issue where nested items would not be returned with default query limit of unlimited (QUERY_LIMIT_DEFAULT=-1).

Potential Risks / Drawbacks

None

Review Notes / Questions

if statement for slicing wasn't accounting for the value of QUERY_LIMIT_DEFAULT of -1


Fixes #22038

Copy link

changeset-bot bot commented Apr 2, 2024

🦋 Changeset detected

Latest commit: 58b71e4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@directus/api Patch
directus Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@paescuj paescuj requested review from a team, br41nslug and DanielBiegler and removed request for a team April 2, 2024 11:32
@br41nslug br41nslug merged commit 6c35f43 into main Apr 15, 2024
4 checks passed
@br41nslug br41nslug deleted the fix-nested-limit branch April 15, 2024 09:52
@github-actions github-actions bot added this to the Next Release milestone Apr 15, 2024
hanneskuettner pushed a commit that referenced this pull request Apr 16, 2024
* Fix nested queries with unlimited default limit

* Add changeset
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QUERY_LIMIT_DEFAULT breaks Flows
2 participants