Problem/Motivation

Each configuration has a hash that is created using processing the code of the export. Each time an image styles is reverted, the ids of the effects are not the same, even if they have the same configuration than before.

Proposed resolution

Re write the method prepareBuild() to reset the ids of each image effect. This will generate always the same order for the effects, and create the same hash even if the ids in the database are not equal.

Remaining tasks

Implement the change.
Write a test for the hash check.

User interface changes

None

API changes

None

Comments

dagmar’s picture

Status: Active » Needs review
StatusFileSize
new2.93 KB
new2.16 KB

Here is the test that proves that the hash is different at this moment, and the patch with the fix.

dagmar’s picture

Status: Needs review » Fixed

Committed 1809106.imagestyles-better-hash.1.patch

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.