pwg.images.setRank takes only one photo as an argument, which means the external application has to send a separate request for every photo in a gallery. With a high-latency connection and a large number of photos in the gallery, this causes a noticeable delay.
Please modify the call (or create a new call) to accept multiple photo IDs an array of image_id/rank pairs - this way all photos in a gallery can be re-ordered with just a single call.
pwg.images.setRank takes only one photo as an argument, which means the external application has to send a separate request for every photo in a gallery. With a high-latency connection and a large number of photos in the gallery, this causes a noticeable delay.
Please modify the call (or create a new call) to accept multiple photo IDs an array of image_id/rank pairs - this way all photos in a gallery can be re-ordered with just a single call.
<!-- github-sync-id:105035559 -->
@vvinogradsky in Piwigo 2.8 you will be able to send the full list of image_ids for a given category_id. Just give them in the appropriate order. If you provide image_id as a list, rank won't be used.
@vvinogradsky in Piwigo 2.8 you will be able to send the full list of image_ids for a given category_id. Just give them in the appropriate order. If you provide image_id as a list, rank won't be used.
<!-- github-comment-id:176227975 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
pwg.images.setRank takes only one photo as an argument, which means the external application has to send a separate request for every photo in a gallery. With a high-latency connection and a large number of photos in the gallery, this causes a noticeable delay.
Please modify the call (or create a new call) to accept multiple photo IDs an array of image_id/rank pairs - this way all photos in a gallery can be re-ordered with just a single call.
@vvinogradsky in Piwigo 2.8 you will be able to send the full list of image_ids for a given category_id. Just give them in the appropriate order. If you provide image_id as a list, rank won't be used.