-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: Ensure correct placeholder retrieval for PageContent instances #8088
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 PR fixes a placeholder inheritance issue by improving how placeholders are retrieved when dealing with PageContent instances. The implementation modifies the content object retrieval logic and includes a regression test. Additionally, some caching decorators are updated from lru_cache to cache, and ruff linting configurations are adjusted. No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
@MacLake You did mention an issue with placeholder inheritance. Would this PR help? |
👋 Hi there! Please remember to MERGE COMMIT pull requests from Do not SQUASH commits to preserve history for the changelog. |
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:
- Please split the cache decorator changes (@lru_cache -> @cache) into a separate PR with proper documentation of the rationale for this change. The placeholder fix should stand on its own.
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.
👋 Hi there! Please remember to MERGE COMMIT pull requests from Do not SQUASH commits to preserve history for the changelog. |
@vinitkumar The changes in |
Description
Fix placeholder inheritance issue by ensuring correct retrieval of placeholders when the toolbar object is a
PageContent
instance.After confirming that the fix works, a regression test needs to be added.
Fixes #8087
Related resources
Checklist
develop-4
Summary by Sourcery
Fix placeholder retrieval for PageContent instances and add a regression test to ensure the fix works. Enhance caching by replacing lru_cache with cache in several functions and update linting rules in pyproject.toml.
Bug Fixes:
Enhancements:
Tests:
Chores: