Skip to content

⚡️(back) restrict documents to restore using only the queryset #674

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

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

lunika
Copy link
Member

@lunika lunika commented Mar 3, 2025

Purpose

To determine the descendant to restore or not, we were looking building a complex exclude clause. This can be simplify focusing only on data we already have without making an extra query to fetch the list of descendant to exclude.

Proposal

  • restrict documents to restore using only the queryset

@lunika lunika added the enhancement improve an existing feature label Mar 3, 2025
@lunika lunika requested a review from sampaccoud March 3, 2025 13:26
@lunika lunika self-assigned this Mar 3, 2025
@lunika lunika requested a review from qbey March 4, 2025 08:34
To determine the descendant to restore or not, we were looking building
a complex exclude clause. This can be simplify focusing only on data we
already have without making an extra query to fetch the list of
descendant to exclude.
@lunika lunika merged commit b9b5f86 into main Mar 4, 2025
18 of 20 checks passed
@lunika lunika deleted the test-restore branch March 4, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improve an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants