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

Porter 3.0 – Transformers #21

Merged
merged 3 commits into from
Jan 29, 2017
Merged

Porter 3.0 – Transformers #21

merged 3 commits into from
Jan 29, 2017

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.

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.

None yet

1 participant