-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Leftovers of PipeineOperations -> PipelineBackend renaming #162
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. Have you looked into if there are any other usages of "ops" in the project that needs to be replaced?
pipeline_dp/dp_engine.py
Outdated
|
||
return col | ||
|
||
def _drop_not_public_partitions(self, col, public_partitions, | ||
data_extractors: DataExtractors): | ||
"""Drops partitions in `col` which are not in `public_partitions`.""" | ||
col = self._ops.map( | ||
"""Drbackend partitions in `col` which are not in `public_partitions`.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Drops". Find-and-replace can be tricky sometimes. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I should have used whole words replacement :)
tests/pipeline_backend_test.py
Outdated
result = self.ops.filter_by_key(col, key_to_keep, | ||
"filte_by_key") | ||
result = self.backend.filter_by_key(col, key_to_keep, | ||
"filte_by_key") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: "filter_by_key". Also in the rest of this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
tests/pipeline_backend_test.py
Outdated
|
||
def test_one_suffix_multiple_same_stage_name(self): | ||
ops = BeamBackend("UNIQUE_OPS_SUFFIX") | ||
backend = BeamBackend("UNIQUE_backend_SUFFIX") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be in capital letters? (Also in the rest of this file)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for review!
pipeline_dp/dp_engine.py
Outdated
|
||
return col | ||
|
||
def _drop_not_public_partitions(self, col, public_partitions, | ||
data_extractors: DataExtractors): | ||
"""Drops partitions in `col` which are not in `public_partitions`.""" | ||
col = self._ops.map( | ||
"""Drbackend partitions in `col` which are not in `public_partitions`.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I should have used whole words replacement :)
tests/pipeline_backend_test.py
Outdated
result = self.ops.filter_by_key(col, key_to_keep, | ||
"filte_by_key") | ||
result = self.backend.filter_by_key(col, key_to_keep, | ||
"filte_by_key") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
tests/pipeline_backend_test.py
Outdated
|
||
def test_one_suffix_multiple_same_stage_name(self): | ||
ops = BeamBackend("UNIQUE_OPS_SUFFIX") | ||
backend = BeamBackend("UNIQUE_backend_SUFFIX") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I've checked. ops is not used anymore in the project |
This PR mostly renames ops -> backend, which wasn't renamed on PR