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

IBX-902: Refactored GroupedFields as a separate service #46

Merged
merged 4 commits into from
Sep 13, 2021

Conversation

damianz5
Copy link
Contributor

@damianz5 damianz5 commented Sep 3, 2021

Question Answer
Tickets https://issues.ibexa.co/browse/IBX-902
Bug fix? no
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

Refactored GroupedFields as a separate service.

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@damianz5 damianz5 force-pushed the IBX-902-cotf-field-tabs branch 5 times, most recently from 3aaef07 to e3adb48 Compare September 6, 2021 09:17
@damianz5 damianz5 changed the title IBX-902: When creating content on the fly doesn't have categories tabs IBX-902: Refactored GroupedFields as a separate service Sep 6, 2021
@damianz5 damianz5 marked this pull request as ready for review September 6, 2021 09:18
composer.json Outdated Show resolved Hide resolved
Comment on lines +120 to +122
'grouped_fields' => $this->groupedContentFormFieldsProvider->getGroupedFields(
$form->get('fieldsData')->all()
),
Copy link

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.

@damianz5 damianz5 requested review from Steveb-p and a team September 6, 2021 13:56
Copy link

@Steveb-p Steveb-p left a 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 👍

@mnocon mnocon mentioned this pull request Sep 8, 2021
@sonarcloud
Copy link

sonarcloud bot commented Sep 8, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link

@tomaszszopinski tomaszszopinski left a 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.

@Nattfarinn Nattfarinn merged commit 9beed02 into 1.3 Sep 13, 2021
@Nattfarinn Nattfarinn deleted the IBX-902-cotf-field-tabs branch September 13, 2021 06:53
@Nattfarinn
Copy link
Member

@damianz5 Please merge up to master and do fast-forward merge to ibexa org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
8 participants