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

feat/add featured summary and banner section #1170

Closed archx3 closed 2 months ago

archx3 commented 2 months ago

Summary / Highlights

This pull request includes two new features aimed at improving the Campaign model. The first commit introduces a MEDIUM_STR_LEN constant set to 500, and updates the featured_summary field in the Campaign model to utilize this new constant, allowing for longer text entries. The second commit adds support for a banner_section in campaign updates to handle related media and sections. Additionally, the featured_summary field is included in the campaign models. These updates enhance the campaign functionality by allowing more detailed and media-rich entries.

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 2 months ago

Codecov Report

Attention: Patch coverage is 92.30769% with 3 lines in your changes missing coverage. Please review.

Project coverage is 56.95%. Comparing base (5bd4589) to head (6fce156). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/api/handlers/campaign.py 92.30% 2 Missing :warning:
src/api/store/campaign.py 66.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1170 +/- ## ======================================= Coverage 56.95% 56.95% ======================================= Files 476 477 +1 Lines 35232 35243 +11 ======================================= + Hits 20067 20074 +7 - Misses 15165 15169 +4 ```

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