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: Fixed Image Value comparison via FT Comparable contract #3060

Merged
merged 19 commits into from
Nov 18, 2020

Conversation

mateuszdebinski
Copy link
Contributor

@mateuszdebinski mateuszdebinski commented Aug 26, 2020

Question Answer
JIRA issue EZP-31681
Bug/Improvement yes
New feature no
Target version 7.5
BC breaks no
Tests pass yes
Doc needed no

TODO:

  • Implement feature / fix a bug.
  • Implement tests.
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

… fieldType's Image whether anything except imageId has changed
@mateuszdebinski mateuszdebinski changed the title [WIP]EZEE-3159: Changed comparing fieldType's hash and additional verification forfieldType's Image whether anything except imageId has changed [WIP]EZEE-31681: Changed comparing fieldType's hash and additional verification forfieldType's Image whether anything except imageId has changed Aug 26, 2020
@mateuszdebinski mateuszdebinski changed the title [WIP]EZEE-31681: Changed comparing fieldType's hash and additional verification forfieldType's Image whether anything except imageId has changed [WIP]EZEE-31681: Changed comparing fieldType's hash and additional verification for fieldType's Image whether anything except imageId has changed Aug 26, 2020
@mateuszdebinski mateuszdebinski changed the title [WIP]EZEE-31681: Changed comparing fieldType's hash and additional verification for fieldType's Image whether anything except imageId has changed EZEE-31681: Changed comparing fieldType's hash and additional verification for fieldType's Image whether anything except imageId has changed Aug 26, 2020
Copy link
Contributor

@ViniTou ViniTou left a comment

Choose a reason for hiding this comment

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

I think, that compareHash or areHashEquals or are haveEqualsValue (or however we gonna name it) should be a method in \eZ\Publish\SPI\FieldType\FieldType and ContentService should be not polluted with knowledge about comparing specifing fieldtypes hashes.

eZ/Publish/Core/Repository/ContentService.php Outdated Show resolved Hide resolved
eZ/Publish/Core/Repository/ContentService.php Outdated Show resolved Hide resolved
eZ/Publish/Core/Repository/ContentService.php Outdated Show resolved Hide resolved
eZ/Publish/Core/Repository/ContentService.php Outdated Show resolved Hide resolved
eZ/Publish/SPI/FieldType/Comparable.php Outdated Show resolved Hide resolved
Copy link
Member

@alongosz alongosz left a comment

Choose a reason for hiding this comment

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

We need to reassess architecture and decide what to do before processing my remarks (see the #3060 (comment) for details).

eZ/Publish/Core/FieldType/Image/Value.php Outdated Show resolved Hide resolved
eZ/Publish/Core/FieldType/Tests/Image/ValueTest.php Outdated Show resolved Hide resolved
eZ/Publish/Core/FieldType/Tests/Image/ValueTest.php Outdated Show resolved Hide resolved
eZ/Publish/Core/FieldType/Tests/Image/ValueTest.php Outdated Show resolved Hide resolved
eZ/Publish/Core/FieldType/Tests/Image/ValueTest.php Outdated Show resolved Hide resolved
eZ/Publish/Core/FieldType/Tests/Image/ValueTest.php Outdated Show resolved Hide resolved
eZ/Publish/Core/Repository/ContentService.php Outdated Show resolved Hide resolved
eZ/Publish/Core/FieldType/Image/Value.php Outdated Show resolved Hide resolved
Copy link
Member

@alongosz alongosz left a comment

Choose a reason for hiding this comment

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

My suggestion from the previous review: #3067
@ViniTou WDYT?

@alongosz alongosz changed the title EZP-31681: Changed comparing fieldType's hash and additional verification for fieldType's Image whether anything except imageId has changed EZP-31681: Fixed Image Value comparison via FT Comparable contract Oct 21, 2020
Copy link
Member

@alongosz alongosz left a comment

Choose a reason for hiding this comment

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

+1 if Travis agrees ;)

Copy link
Member

@micszo micszo left a comment

Choose a reason for hiding this comment

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

QA Approved on eZ Platform EE v2.5.15 with diff.

@micszo micszo removed their assignment Nov 18, 2020
@lserwatka lserwatka merged commit 4b6717c into 7.5 Nov 18, 2020
@lserwatka lserwatka deleted the EZP-31681 branch November 18, 2020 13:35
@alongosz
Copy link
Member

Merged horizontally into ezplatform-kernel:1.1, 1.2, master as ezsystems/ezplatform-kernel@ac9a046, ezsystems/ezplatform-kernel@2bd637e, and ezsystems/ezplatform-kernel@976e52a respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
7 participants