Skip to content

Replace Global Filter Object with a Factory Model #1240

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

Closed
wants to merge 2 commits into from
Closed

Replace Global Filter Object with a Factory Model #1240

wants to merge 2 commits into from

Conversation

whoisj
Copy link

@whoisj whoisj commented Dec 1, 2015

Changed Filter to a short lived, per-file entity.

Standardized the exposed virtual entry-points.

Combined Clean and Smudge entry-points.

Moved all long-term constructs into FilterRegister.

Removed the superfluous FilterAttributeEntry.

Refactored to only support single attribute filters.

Added new exception type for easier identification of errors during odb <-> workdir operations.

Fixed up tests to use new model.

Sanity checked and rationalized substitution cipher filter tests.

Standardized the exposed virtual entry-points.

Combined Clean and Smudge entry-points.

Moved all long-term constructs into FilterRegister.

Removed the superfluous FilterAttributeEntry.

Refactored to only support single attribute filters.

Fixed up tests to use new model.

Sanity checked and rationalized substitution cipher filter tests.
@whoisj
Copy link
Author

whoisj commented Dec 2, 2015

/CC @nulltoken

@carlosmn
Copy link
Member

carlosmn commented Mar 7, 2016

It looks like there's overlap with #1260 which we didn't realise when merging that. Is this (or parts of this) still needed?

@whoisj
Copy link
Author

whoisj commented Mar 28, 2016

It looks like there's overlap with #1260 which we didn't realise when merging that. Is this (or parts of this) still needed?

They do overlap when considering the ability to run multiple streams simultaneously, but the semantics presented here are "cleaner" imo. Additionally, this version only keeps the registration itself persistent and invokes a new instance per invocation of the filter.

@whoisj whoisj closed this Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants