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: GraphQL Group filters using deleted associated objects #101

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

caiocarrara
Copy link
Contributor

There was a specific case where using Django built-in lookups for
relationships don't work properly with the soft delete solution we
implemented with django-safedelete. According to the library
maintainers, it's a known limitation[1].

To work around this limitation, a customized filter set were created for
Group schema on GraphQL. This custom filter set implements the
adjustments expected to ignore soft deleted objects when filtering by
relationships (joins).

[1] - makinacorpus/django-safedelete#158

@caiocarrara caiocarrara self-assigned this Jan 25, 2022
There was a specific case where using Django built-in lookups for
relationships doesn't work properly with the soft delete solution we
implemented with `django-safedelete`. According to the library
maintainers, it's a known limitation[1].

To work around this limitation, a customized filter set were created for
Group schema on GraphQL. This custom filter set implements the
adjustments expected to ignore soft deleted objects when filtering by
relationships (joins).

[1] - makinacorpus/django-safedelete#158
@caiocarrara caiocarrara force-pushed the fix/groups-filters-with-deleted-objs branch from 4909756 to 701f3aa Compare January 25, 2022 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants