Closed abdullai-t closed 1 week ago
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.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
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
Handlers:
CustomPagesHandler
class with methods to handle routes for creating, updating, deleting, sharing, retrieving info, listing, and publishing custom pages. (src/api/handlers/custom_pages.py
)Services:
CustomPagesService
class to serve as the service layer for custom pages, providing methods to interact with the store layer. (src/api/services/custom_pages.py
)Store:
CustomPagesStore
class with methods to interact with the database for custom pages. (src/api/store/custom_pages.py
)Utility Enhancements
create_unique_slug
function to generate unique slugs for custom pages. (src/api/utils/api_utils.py
) [1] [2]Testing
create_unique_slug
function to ensure it generates unique and correctly formatted slugs. (src/api/tests/unit/utils/test_create_unique_slug.py
)Miscellaneous
URL Routing:
CustomPagesHandler
in the URL routing configuration. (src/api/urls.py
) [1] [2]Utility Function Update:
parse_list
function to handle lists of dictionaries. (src/_main_/utils/common.py
)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)