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

Expose missing Sources in APIv2 (refs #4079) #4080

Merged
merged 1 commit into from
Apr 19, 2024
Merged

Conversation

Chatewgne
Copy link
Contributor

@Chatewgne Chatewgne commented Apr 19, 2024

Description

Related Issue

#4079

Checklist

  • I have followed the guidelines in our Contributing document
  • My code respects the Definition of done available in the Development section of the documentation
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes
  • I added an entry in the changelog file
  • My commits are all using prefix convention (emoji + tag name) and references associated issues
  • I added a label to the PR corresponding to the perimeter of my contribution
  • The title of my PR mentionned the issue associated

Copy link

cypress bot commented Apr 19, 2024

Passing run #8785 ↗︎

0 24 0 0 Flakiness 0

Details:

Merge 94017f5 into b4af419...
Project: Geotrek-admin Commit: aea4251060 ℹ️
Status: Passed Duration: 02:10 💡
Started: Apr 19, 2024 2:16 PM Ended: Apr 19, 2024 2:18 PM

Review all test suite changes for PR #4080 ↗︎

Copy link

codecov bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.39%. Comparing base (b4af419) to head (94017f5).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4080   +/-   ##
=======================================
  Coverage   98.39%   98.39%           
=======================================
  Files         284      284           
  Lines       20781    20796   +15     
=======================================
+ Hits        20447    20462   +15     
  Misses        334      334           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Chatewgne Chatewgne merged commit 69fe7ca into master Apr 19, 2024
16 checks passed
@Chatewgne Chatewgne deleted the fix_apiv2_sources branch April 19, 2024 15:33
@babastienne babastienne changed the title 🐛 [BUG] Expose missing Sources in APIv2 (refs #4079) Expose missing Sources in APIv2 (refs #4079) May 6, 2024
set_5 = qs.none()
if 'geotrek.outdoor' in settings.INSTALLED_APPS:
set_5 = self.filter_queryset_related_objects_published_by_portal(qs, request, 'sites')
return (set_1 | set_2 | set_3 | set_4 | set_5).distinct()
Copy link
Member

Choose a reason for hiding this comment

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

I suggest to test if set distinct could be done in python to avoid temporary union memery leak in pgsql

(return set(set_1.values_list() + ....))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants