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

Align default transformers between SDV and RDT #1506

Merged
merged 5 commits into from
Jul 20, 2023

Conversation

R-Palazzo
Copy link
Contributor

@R-Palazzo R-Palazzo commented Jul 17, 2023

Resolve #1484
Made a change in tasks.py to include .dev version of libraries and made the minimum version GitHub action pass.

@R-Palazzo R-Palazzo requested a review from a team as a code owner July 17, 2023 12:12
@R-Palazzo R-Palazzo removed the request for review from a team July 17, 2023 12:12
@codecov-commenter
Copy link

codecov-commenter commented Jul 17, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (64c5d9a) 96.28% compared to head (9a01726) 96.28%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1506   +/-   ##
=======================================
  Coverage   96.28%   96.28%           
=======================================
  Files          49       49           
  Lines        3931     3932    +1     
=======================================
+ Hits         3785     3786    +1     
  Misses        146      146           
Impacted Files Coverage Δ
sdv/data_processing/data_processor.py 96.14% <100.00%> (+0.01%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -90,6 +97,9 @@ def test___init__(self, update_transformer_mock, mock_rdt):
assert data_processor._hyper_transformer == mock_rdt.HyperTransformer.return_value
update_transformer_mock.assert_called_with(True, False)

mock_default_transformers.assert_called_once()
Copy link
Contributor

Choose a reason for hiding this comment

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

you should mock the return value and make sure the id default is properly added and that the text one is deleted

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes done in d84def8

Copy link
Contributor

@amontanez24 amontanez24 left a comment

Choose a reason for hiding this comment

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

Couple small comments but LGTM! 🎉

Comment on lines 122 to 124
assert 'text' not in data_processor._transformers_by_sdtype
assert 'id' in data_processor._transformers_by_sdtype
assert data_processor._transformers_by_sdtype == expected_default_transformers
Copy link
Contributor

Choose a reason for hiding this comment

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

the last assert is probably all you need

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, done in 9a01726

if version:
version = re.sub(r'>=?', '==', version)
version = re.sub(r"""['",]""", '', version)
requirement += version
versions.append(requirement)

elif (line.startswith('install_requires = [') or
line.startswith('pomegranate_requires = [')):
elif (line.startswith('install_requires = [')):
Copy link
Contributor

Choose a reason for hiding this comment

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

can you leave a comment in the description of the PR explaining why we made this change and the one on line 74? If we're going to merge this in this PR it would be good to understand why

Copy link
Member

@pvk-developer pvk-developer left a comment

Choose a reason for hiding this comment

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

LGTM!

@R-Palazzo R-Palazzo merged commit 64afb7a into master Jul 20, 2023
28 checks passed
@R-Palazzo R-Palazzo deleted the issue-1484-default-transformers branch July 20, 2023 15:00
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.

Align default transformers between SDV and RDT
4 participants