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

EZP-31681: Proposed changes to ezsystems/ezpublish-kernel/pull/3060 #3067

Conversation

alongosz
Copy link
Member

@alongosz alongosz commented Sep 25, 2020

Question Answer
JIRA issue EZP-31681
Relates to #3060
Target branch ezsystems:EZP-31681

This PR better describes my proposed changes from the review #3060 (review) for #3060.

I've re-used Comparable but moved it to be a part of FieldType, not Value, since the necessary logic lays in the FT impl.
I've also added BC layer for non-core FTs (all core ones automatically use Comparable implemented on Core abstract FT).

TODO:

  • Add unit test for Comparable::valuesEqual
  • Some sort of integration test for Image should be possible, even w/o IO.
  • Test if the solution for the actual issue still works

@alongosz alongosz requested a review from ViniTou September 25, 2020 10:30
} else {
@trigger_error(
\sprintf(
'In eZ Platform 2.5 and 3.x %s should implement %s. ' .
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe instead of that we should think about moving toHash method to \eZ\Publish\SPI\FieldType\Value?

@alongosz
Copy link
Member Author

Closing as it was incorporated into #3060

@alongosz alongosz closed this Oct 21, 2020
@alongosz alongosz deleted the review-7.5/ezp-31681-ft-equality-design branch December 3, 2020 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants