Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Publish service callback imposeSortOrderOnPublishedCollection implementation needs fixed

Participant ,
Feb 17, 2022 Feb 17, 2022

Copy link to clipboard

Copied

Unless I'm misunderstanding something, the publish service callback 

imposeSortOrderOnPublishedCollection() isn't called when images are rearranged in a publish collection. This callback is only invoked if something else triggers a republish, i.e., marking an image to be republished or changing metadata of an image. Then the imposeSortOrderOnPublishedCollection() callback is invoked after the changed image is processRenderedPhotos() callback finishes. This issue is aggravated because the LR UI shows the images in the new sort order but there is no indication this change needs to be published causing a disconnect between LR and the publish service.
 
If there is some SDK call or listener that I should be using to monitor the sort changes, I'm not aware of it nor can I find it in the SDK docs.
 
It would be nice to trigger a user dialog or some other notification a little while after the images have been rearranged asking if the changes should be pushed to the publish service.
TOPICS
SDK

Views

616
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 17, 2022 Feb 17, 2022

Copy link to clipboard

Copied

There's no way for a plugin to access the custom order of a collection, much less get notified when the order changes :-< You could publish a feature request:

https://community.adobe.com/t5/lightroom-classic/ct-p/ct-lightroom-classic?page=1&sort=latest_replie... 

 

Though Adobe has made very few changes to the SDK over the past many years.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 17, 2022 Feb 17, 2022

Copy link to clipboard

Copied

The publish service callback imposeSortOrderOnPublishedCollection() is how the plugin is notified the sort order has changed (assuming the publish service set 'supportsCustomSortOrder' to true. My issue isn't that the plugin isn't being notified of the sort order change. My issue is when/how the plugin is notified. The imposeSortOrderonPublishedCollection() callback isn't called unless there is something else to publish/republish. One of the parameters passed to that callback is:

"3. remoteIdSequence(array of string or number) The IDs for each published photo that was stored via  exportRendition:recordPublishedPhotoId" 

 

So the order presented to the user and the order on the publish service can diverge without any notification to the user.

I wanted to confirm I wasn't missing something before posting as a feature request

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 17, 2022 Feb 17, 2022

Copy link to clipboard

Copied

Understood, I was responding to your question, "If there is some SDK call or listener that I should be using to monitor the sort changes, I'm not aware of it nor can I find it in the SDK docs."

 

You're not missing anything, unfortunately.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 17, 2022 Feb 17, 2022

Copy link to clipboard

Copied

LATEST

Got it! Sorry I misunderstood you.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines