Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Introduce the BaseType / data_provider for subcols #63

Merged
merged 4 commits into from
Sep 26, 2016
Merged

Introduce the BaseType / data_provider for subcols #63

merged 4 commits into from
Sep 26, 2016

Conversation

sstok
Copy link
Contributor

@sstok sstok commented Sep 26, 2016

Q A
Bug Fix? no
New Feature? yes
BC Breaks? no
Deprecations? no
Fixed Tickets

Both ColumnType and CompoundColumnType share a set of common logic, which was duplicated.

The CompoundColumnBuilder now allows to configure a `data_provider` that will be used as a default
for all sub-columns. No more duplicating a data_provider for Actions 😆
This logic was already performed in the Twig DatagridRender, but keeping it in the BaseType
reduces duplicating logic and allows for greater flexibility.

Note that child columns inherit the name of there parent column (which was the main reason for CompoundColumn refactoring,
as they first were not aware of there parent). But not that a child-column doesn’t have direct access to the view of the parent.
@sstok sstok merged commit 1a66103 into rollerworks-graveyard:master Sep 26, 2016
sstok added a commit that referenced this pull request Sep 26, 2016
This PR was merged into the master branch.

Discussion
----------

|Q            |A  |
|---          |---|
|Bug Fix?     |no |
|New Feature? |yes|
|BC Breaks?   |no  |
|Deprecations?|no |
|Fixed Tickets|   |

Commits
-------

d3dbb9a Introduce the BaseType / data_provider for subcols
83f853e Provide the template block_names by BaseType
4a98433 Update the UPGRADE instructions
1a66103 Correct CS
@sstok sstok deleted the feature-base-type branch September 26, 2016 13:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant