Skip to content

Porter 3.0 – Transformers#21

Merged
Bilge merged 3 commits intomasterfrom
transform
Jan 29, 2017
Merged

Porter 3.0 – Transformers#21
Bilge merged 3 commits intomasterfrom
transform

Conversation

@Bilge
Copy link
Member

@Bilge Bilge commented Dec 18, 2016

This PR completely decouples filtering and mapping from both Porter and ImportSpecification using the new Transformer interface. Filtering support is still provided with the new FilterTransformer since it is lightweight and often required whilst mapping has been moved to a separate project, MappingTransformer, which can be required as needed.

The Transformer interface represents post-import data transformation operations and can be implemented by any library wishing to plug in to Porter to provide such transformations. For example, this interface could be used for the proposed hydration and/or validation features in future without requiring any modifications to Porter.

  • Added Transformer interface.
  • Added Transformer support to Porter::import and ImportSpecification.
  • Migrated filter code from Porter into FilterTransformer.
  • Removed filters and mappings from Porter and ImportSpecification.
  • Updated tests.

@Bilge Bilge added this to the 3.0.0 milestone Dec 18, 2016
@Bilge Bilge force-pushed the transform branch 3 times, most recently from d5b11bd to 493d364 Compare December 21, 2016 20:02
Bilge added 3 commits January 15, 2017 15:16
Added Transformer interface.
Refactored filter code into FilterTransformer.
Removed filters and mappings from Porter and ImportSpecification.
Updated tests.
Split transformation in Porter into separate method.
@Bilge Bilge merged commit b382023 into master Jan 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant