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

Leftovers of PipeineOperations -> PipelineBackend renaming #162

Merged
merged 8 commits into from
Jan 22, 2022
Merged

Conversation

dvadym
Copy link
Collaborator

@dvadym dvadym commented Jan 21, 2022

This PR mostly renames ops -> backend, which wasn't renamed on PR

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@dvadym dvadym requested a review from miracvbasaran January 21, 2022 14:04
Copy link
Contributor

@miracvbasaran miracvbasaran left a 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?


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`."""
Copy link
Contributor

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. :)

Copy link
Collaborator Author

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 :)

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")
Copy link
Contributor

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!


def test_one_suffix_multiple_same_stage_name(self):
ops = BeamBackend("UNIQUE_OPS_SUFFIX")
backend = BeamBackend("UNIQUE_backend_SUFFIX")
Copy link
Contributor

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)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Collaborator Author

@dvadym dvadym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for review!


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`."""
Copy link
Collaborator Author

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 :)

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")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!


def test_one_suffix_multiple_same_stage_name(self):
ops = BeamBackend("UNIQUE_OPS_SUFFIX")
backend = BeamBackend("UNIQUE_backend_SUFFIX")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dvadym
Copy link
Collaborator Author

dvadym commented Jan 22, 2022

Looks good overall. Have you looked into if there are any other usages of "ops" in the project that needs to be replaced?

I've checked. ops is not used anymore in the project

@dvadym dvadym merged commit 1da549f into main Jan 22, 2022
@delete-merged-branch delete-merged-branch bot deleted the ops_renaming branch January 22, 2022 19:48
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