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

Feature/equality transformer #245

Merged
merged 4 commits into from
May 7, 2024
Merged

Feature/equality transformer #245

merged 4 commits into from
May 7, 2024

Conversation

Chip2916
Copy link
Collaborator

@Chip2916 Chip2916 commented May 2, 2024

Picked up second aspect of this ticket - #204

Added an additional base class for two columns transformers and an associated test script which inherits from TwoColum Init in base tests. Might have missed the mark a little on this one, so have set up as a draft.

@Chip2916 Chip2916 requested a review from limlam96 May 2, 2024 13:35
@limlam96
Copy link
Contributor

limlam96 commented May 3, 2024

Looks good! could you also:

  • update changelog
  • For any relevant transformers that have already been through the test refactor, could you update to inherit from this new base class (leave those that haven't been through the refactor for now as it will likely break lots of tests and cause a headache)

@Chip2916
Copy link
Collaborator Author

Chip2916 commented May 7, 2024

Hey @limlam96 - forgot changelog again!!! Updated now, and added inheritance from new base class to equality checker transformer (don't think date transformers have been refactored to use two cols yet)

@Chip2916 Chip2916 marked this pull request as ready for review May 7, 2024 09:09
@@ -31,7 +31,7 @@ def __init__(
drop_original: bool = False,
**kwargs: dict[str, bool],
) -> None:
super().__init__(columns=columns, **kwargs)
super().__init__(columns=columns, new_col_name=new_col_name, **kwargs)

if not (isinstance(columns, list)):
Copy link
Contributor

Choose a reason for hiding this comment

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

can now delete lines 36:46 :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ooo yes, thanks!

@Chip2916 Chip2916 merged commit d1cadf3 into main May 7, 2024
12 checks passed
@Chip2916 Chip2916 deleted the feature/equality_transformer branch May 7, 2024 14:21
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