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

Add MemorialViewSet and Remove MemorialModelAdmin #1075

Merged
merged 2 commits into from
Jun 1, 2024

Conversation

brylie
Copy link
Member

@brylie brylie commented Jun 1, 2024

This pull request adds the MemorialViewSet class and removes the MemorialModelAdmin class. The MemorialViewSet class is responsible for handling the API endpoints and Wagtail UI elements related to memorials, while the MemorialModelAdmin class is no longer needed. This change improves the organization and functionality of the codebase.

Copy link

sonarcloud bot commented Jun 1, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @brylie - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

from .models import Memorial


class MemorialViewSet(PageListingViewSet):
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: Definition of MemorialViewSet

Consider adding a docstring to the 'MemorialViewSet' class to provide a brief description of its purpose and functionality.

Suggested change
class MemorialViewSet(PageListingViewSet):
class MemorialViewSet(PageListingViewSet):
"""
A viewset for viewing and editing Memorial instances.
"""

@brylie brylie merged commit 1d444e8 into main Jun 1, 2024
6 checks passed
@brylie brylie deleted the generic-viewsets-part-three branch June 1, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant