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

Cache API v2 and optimizations #3306

Merged
merged 44 commits into from
Nov 22, 2022
Merged

Conversation

submarcos
Copy link
Member

@submarcos submarcos commented Oct 18, 2022

  • Cache API v2 detail endpoints
  • Invalidate cache if attachment added / updated / deleted
  • Cache zoning details
  • Purge cache with admin / command
  • Add default date_update / date_insert at DB level
  • Optimize themes endpoint
  • Optimize Sensitive areas endpoints

@submarcos submarcos changed the title Cache API v2 and oiptimizations Cache API v2 and optimizations Oct 18, 2022
@camillemonchicourt
Copy link
Member

Il faut ajouter la valeur par défaut now() sur toutes les tables où les champs date_insert et date_update ont été ajoutés, comme fait sur 9efbfff#diff-249d066390dcfc9a5f3ad53e7ff63decb6185db50aa0102e97d01b344a070c06 ?

@submarcos
Copy link
Member Author

oui, pas d'inquietude, c'est en "DRAFT", pour l'instant je regarde le déroulé des tests avec mes modifs, c'est dans ma TODO list

@submarcos submarcos force-pushed the optimize_zoning_intersections branch 2 times, most recently from 4c20fc5 to 8fed2cc Compare November 10, 2022 14:04
@cypress
Copy link

cypress bot commented Nov 10, 2022



Test summary

24 0 0 0


Run details

Project Geotrek-admin
Status Passed
Commit 05e2be6 ℹ️
Started Nov 22, 2022 8:58 AM
Ended Nov 22, 2022 9:03 AM
Duration 04:37 💡
OS Linux Ubuntu - 20.04
Browser Electron 94

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@codecov
Copy link

codecov bot commented Nov 15, 2022

Codecov Report

Base: 98.14% // Head: 98.15% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (ed520ae) compared to base (7ae6ea0).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3306      +/-   ##
==========================================
+ Coverage   98.14%   98.15%   +0.01%     
==========================================
  Files         274      277       +3     
  Lines       19968    20053      +85     
==========================================
+ Hits        19598    19684      +86     
+ Misses        370      369       -1     
Impacted Files Coverage Δ
geotrek/api/v2/functions.py 100.00% <ø> (ø)
geotrek/api/v2/utils.py 93.33% <ø> (-2.97%) ⬇️
geotrek/api/mobile/serializers/trekking.py 100.00% <100.00%> (ø)
geotrek/api/mobile/views/trekking.py 100.00% <100.00%> (ø)
geotrek/api/v2/cache.py 100.00% <100.00%> (ø)
geotrek/api/v2/decorators.py 100.00% <100.00%> (ø)
geotrek/api/v2/filters.py 100.00% <100.00%> (ø)
geotrek/api/v2/pagination.py 100.00% <100.00%> (ø)
geotrek/api/v2/serializers.py 99.88% <100.00%> (-0.01%) ⬇️
geotrek/api/v2/views/authent.py 100.00% <100.00%> (ø)
... and 34 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@submarcos submarcos force-pushed the optimize_zoning_intersections branch from 1d7e9e4 to 6ce173b Compare November 18, 2022 15:37
@submarcos submarcos marked this pull request as ready for review November 18, 2022 16:06
@submarcos submarcos requested a review from a team November 21, 2022 15:54
@submarcos submarcos merged commit 4449573 into master Nov 22, 2022
@submarcos submarcos deleted the optimize_zoning_intersections branch November 22, 2022 09:25
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.

3 participants