-
Notifications
You must be signed in to change notification settings - Fork 31
fix: inline editing crashed for plugin template tags #260
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
Conversation
Reviewer's Guide by SourceryThis pull request disables inline editing for Sequence diagram for inline editing checksequenceDiagram
participant User
participant TemplateTag
participant Request
participant CMSPlugin
User->>TemplateTag: Renders template tag
TemplateTag->>Request: Checks if inline editing is active
Request-->>TemplateTag: Returns inline editing status (True)
TemplateTag->>CMSPlugin: Checks if instance is a CMSPlugin
CMSPlugin-->>TemplateTag: Returns instance type (CMSPlugin)
TemplateTag->>CMSPlugin: Checks if CMSPlugin instance has a primary key (pk)
alt pk is present
TemplateTag->>TemplateTag: Renders inline field
else pk is not present
TemplateTag->>TemplateTag: Renders without inline field
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #260 +/- ##
=======================================
Coverage 88.41% 88.41%
=======================================
Files 123 123
Lines 3245 3245
Branches 259 259
=======================================
Hits 2869 2869
Misses 266 266
Partials 110 110 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @fsbraun - I've reviewed your changes - here's some feedback:
Overall Comments:
- The commit message could be improved to explain why DummyPlugins don't have a pk.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
{% plugin %}template tags cannot offer inline editing and hence need to disable it.Summary by Sourcery
Bug Fixes: