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
Decouple the calendar, FAQ and news bundles from the comments bundle #6650
Decouple the calendar, FAQ and news bundles from the comments bundle #6650
Conversation
- english only needed for transifex
- english only needed for transifex
- english only needed for transifex
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.
Great improvement! There is one major problem though. Installing the comments bundle will now define fields on e.g. tl_calendar_events
, even if the calendar bundle is not installed. We should either check for that in the DCA (which is kinda hacky) or dynamically add the fields using a loadDataContainer
callback.
I'll get onto it later this evening :) |
- use loadDataContainer Hook - universal size - notify is now varchar(32) for faq and news - sortOrder is now varchar(32) for faq
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.
Very good! This shows how much duplicate code there was until now. Just a few minor things to fix for me 😎
comments-bundle/src/EventListener/DataContainer/CommentsConditionalFieldsListener.php
Outdated
Show resolved
Hide resolved
comments-bundle/src/EventListener/DataContainer/CommentsConditionalFieldsListener.php
Outdated
Show resolved
Hide resolved
comments-bundle/src/EventListener/DataContainer/CommentsConditionalFieldsListener.php
Outdated
Show resolved
Hide resolved
comments-bundle/src/DependencyInjection/ContaoCommentsExtension.php
Outdated
Show resolved
Hide resolved
- do not use legacy module names anymore - unionize faq, comments and news withing palette manipulators - CS
comments-bundle/src/EventListener/DataContainer/CommentsConditionalFieldsListener.php
Outdated
Show resolved
Hide resolved
comments-bundle/src/EventListener/DataContainer/CommentsConditionalFieldsListener.php
Outdated
Show resolved
Hide resolved
- register listener within services.yaml (and remove listener.yaml) - get ``kernel.bundles`` via argument - properly call methods (object and not class)
…lds' into feature/comments-conditional-fields
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.
🎉
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.
Wohoo, thanks so much for taking the time to finally separate this! Not a feature a user will ever see (other than not having useless fields in the table anymore 🥳 ) but a very valuable cleanup-contribution! ❤️
We'll probably need a test for the new |
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.
Perfect!
comments-bundle/src/EventListener/DataContainer/CommentsConditionalFieldsListener.php
Outdated
Show resolved
Hide resolved
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.
Perfect. Than you very much @zoglo.
Feature
Description
Following things haven't been removed
Related
Disclaimer