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: Custom Pages Routes #1185

Closed abdullai-t closed 1 week ago

abdullai-t commented 2 weeks ago

Summary / Highlights

This pull request introduces a new feature for managing custom pages within a community. It includes the addition of new handlers, services, and store methods to handle the creation, updating, deletion, sharing, information retrieval, and listing of custom pages. Additionally, it introduces a utility function to create unique slugs for these pages and corresponding unit tests.

New feature: Custom Pages Management

Utility Enhancements

Testing

Miscellaneous

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 weeks ago

Codecov Report

Attention: Patch coverage is 92.85714% with 41 lines in your changes missing coverage. Please review.

Project coverage is 58.16%. Comparing base (38a2625) to head (910bc74). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/api/store/custom_pages.py 87.75% 18 Missing :warning:
src/api/services/custom_pages.py 78.12% 14 Missing :warning:
src/_main_/utils/common.py 0.00% 8 Missing :warning:
src/api/tests/common.py 91.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1185 +/- ## ========================================== + Coverage 57.55% 58.16% +0.60% ========================================== Files 491 495 +4 Lines 36027 36586 +559 ========================================== + Hits 20736 21279 +543 - Misses 15291 15307 +16 ```

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