massenergize / api

Backend Code for Massenergize Portal. This provides the API to the backend database, and is shared by the various front-end portal projects.
MIT License
5 stars 9 forks source link

✨ Fix Testimonial Auto-Share Sequence During Creation #1179

Closed abdullai-t closed 1 month ago

abdullai-t commented 1 month ago

Summary / Highlights

This PR addresses an issue where testimonials were being shared with communities prematurely during their creation process. The function used to fetch communities for auto-sharing was called before assigning the community to the testimonial.

Details (Give details about what this PR accomplishes, include any screenshots etc)

Testing Steps (Provide details on how your changes can be tested)

Requirements (place an x in each [ ])

Transparency (Project board)
codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 96.36364% with 2 lines in your changes missing coverage. Please review.

Project coverage is 57.20%. Comparing base (408c74f) to head (6061ac3). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/api/store/testimonial.py 66.66% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1179 +/- ## ========================================== + Coverage 57.13% 57.20% +0.06% ========================================== Files 485 486 +1 Lines 35742 35791 +49 ========================================== + Hits 20420 20473 +53 + Misses 15322 15318 -4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.