Skip to content

Consolidate identity methods into one class#4733

Merged
mitchellhenke merged 2 commits intomasterfrom
mitchellhenke/consolidate-identity-methods
Mar 1, 2021
Merged

Consolidate identity methods into one class#4733
mitchellhenke merged 2 commits intomasterfrom
mitchellhenke/consolidate-identity-methods

Conversation

@mitchellhenke
Copy link
Contributor

Follow up to #4728 to remove the IdentityDecorator

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/consolidate-identity-methods branch from 9d1cdb4 to cf1af66 Compare March 1, 2021 16:31
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

I'm not convinced this class needs to go away, but the changes LGTM

Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bummer IMO, seems weird that we mix decorated and not-decorated objects. Would you want to remove those other decorators as well, or just the identity one?

Copy link
Contributor Author

@mitchellhenke mitchellhenke Mar 1, 2021

Choose a reason for hiding this comment

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

I'd be fine removing the other ones too, but I'm less familiar with them. In this case pretty much every usage of Identity was decorated, and it even overloaded the created_at method.

This part was a bit odd to me at first, but it doesn't feel much weirder than putting two pretty distinct types of objects in an array. As long as they respond to the methods that they need to?

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/consolidate-identity-methods branch from 4d096a0 to 5e9d565 Compare March 1, 2021 17:10
@mitchellhenke mitchellhenke changed the title Consolidate identity methods into one clas Consolidate identity methods into one class Mar 1, 2021
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@mitchellhenke mitchellhenke merged commit 45ac646 into master Mar 1, 2021
@mitchellhenke mitchellhenke deleted the mitchellhenke/consolidate-identity-methods branch March 1, 2021 17:53
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