Skip to content

refactor(Cantines): Nouvelle querysets pour mieux documenter les règles concernant les cantines centrales & satellites #5179

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 4 commits into from
Mar 31, 2025

Conversation

raphodn
Copy link
Member

@raphodn raphodn commented Mar 28, 2025

4 nouvelles queryset sur le modèle Canteen

  • is_satellite
  • annotate_with_central_kitchen_id
  • get_satellites(central_producer_siret)
  • annotate_with_satellites_in_db_count

Permet de simplifier le code dans ActionableCanteensListView

@raphodn raphodn force-pushed the raphodn/backend-canteen-filter-queryset branch from d0d1f3f to cfc1634 Compare March 28, 2025 11:01
@raphodn raphodn changed the base branch from raphodn/backend-purchase-filter-queryset to staging March 28, 2025 11:01
@raphodn raphodn changed the title refactor(Cantines): Nouvelle queryset pour récupérer les satellites à partir d'un siret refactor(Cantines): Nouvelle querysets pour filtrer sur les satellites Mar 28, 2025
@raphodn raphodn marked this pull request as ready for review March 28, 2025 11:11
@raphodn raphodn force-pushed the raphodn/backend-canteen-filter-queryset branch from cfc1634 to 4eb77ea Compare March 28, 2025 11:13
@raphodn raphodn changed the title refactor(Cantines): Nouvelle querysets pour filtrer sur les satellites refactor(Cantines): Nouvelle querysets pour mieux documenter les règles concernant les cantines centrales & satellites Mar 28, 2025
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍

@raphodn raphodn merged commit 9d45e4f into staging Mar 31, 2025
8 checks passed
@raphodn raphodn deleted the raphodn/backend-canteen-filter-queryset branch March 31, 2025 12:35
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