-
Notifications
You must be signed in to change notification settings - Fork 6
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
IBX-902: Refactored GroupedFields as a separate service #46
Conversation
3aaef07
to
e3adb48
Compare
src/contracts/Content/Form/Provider/GroupedContentFormFieldsProviderInterface.php
Outdated
Show resolved
Hide resolved
src/lib/Content/Form/Provider/GroupedContentFormFieldsProvider.php
Outdated
Show resolved
Hide resolved
src/lib/Content/Form/Provider/GroupedContentFormFieldsProvider.php
Outdated
Show resolved
Hide resolved
'grouped_fields' => $this->groupedContentFormFieldsProvider->getGroupedFields( | ||
$form->get('fieldsData')->all() | ||
), |
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.
TBH while it's a change to initial implementation, I believe that probably AbstractType::buildView()
from the Form component should have been used instead for grouping data for the form. After all, how fields are grouped should be part of the form itself, not part of a view.
Just a note though. Optional.
tests/lib/Content/Form/Provider/GroupedContentFormFieldsProviderTest.php
Outdated
Show resolved
Hide resolved
tests/lib/Content/Form/Provider/GroupedContentFormFieldsProviderTest.php
Outdated
Show resolved
Hide resolved
tests/lib/Content/Form/Provider/GroupedContentFormFieldsProviderTest.php
Outdated
Show resolved
Hide resolved
tests/lib/Content/Form/Provider/GroupedContentFormFieldsProviderTest.php
Show resolved
Hide resolved
tests/lib/Content/Form/Provider/GroupedContentFormFieldsProviderTest.php
Outdated
Show resolved
Hide resolved
src/contracts/Content/Form/Provider/GroupedContentFormFieldsProviderInterface.php
Outdated
Show resolved
Hide resolved
src/lib/Content/Form/Provider/GroupedContentFormFieldsProvider.php
Outdated
Show resolved
Hide resolved
370f667
to
a694752
Compare
src/lib/Content/Form/Provider/GroupedContentFormFieldsProvider.php
Outdated
Show resolved
Hide resolved
d2f50a1
to
0d10794
Compare
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.
One final nitpick, but otherwise 👍
tests/lib/Content/Form/Provider/GroupedContentFormFieldsProviderTest.php
Outdated
Show resolved
Hide resolved
0d10794
to
ad13bc9
Compare
ad13bc9
to
a4831a7
Compare
Kudos, SonarCloud Quality Gate passed!
|
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.
QA approved on Ibexa DXP 3.3.x-dev with diff.
@damianz5 Please merge up to |
Refactored GroupedFields as a separate service.
Checklist:
$ composer fix-cs
)