shopsys icon indicating copy to clipboard operation
shopsys copied to clipboard

[framework] getting position for new image is now more robust

Open vitek-rostislav opened this issue 5 months ago • 1 comments

Description, the reason for the PR

The image count might not always be the highest position, e.g. when an image is removed, and positions are not recalculated.

Fixes issues

...

Check the appropriate checkboxes below, please

Summary by CodeRabbit

  • New Features

    • Enhanced image upload functionality to determine the position of new images more effectively.
    • Introduced a method to retrieve the latest image position associated with entities.
  • Documentation

    • Added upgrade notes to inform developers about the renaming of the image position retrieval method.
  • Bug Fixes

    • Improved logic for determining image positions, ensuring more accurate results when uploading new images.

:globe_with_meridians: Live Preview:

  • https://rv-images-position.odin.shopsys.cloud
  • https://cz.rv-images-position.odin.shopsys.cloud

vitek-rostislav avatar Sep 09 '24 13:09 vitek-rostislav