I'm developing a LR publishing plugin that talks to a custom-built back-end. Collections on the server are created as needed within the publishServiceProvider.processRenderedPhotos function, which is working fine.
Looking towards supporting collection sets, I don't think it's a good approach to try to manage these on the server at publish-time.
I haven't found any examples on creating collection sets on the server. Is the following function a better place to create the collection sets on the server?
If so, would it work to talk to the server at this point, get the collection set id, and if that fails, to throw an error? I'd hope that the collection set creation would then be aborted within LR.
Any advice is greatly appreciated!
I've gone ahead and handled the collection set creation and update at the server from within updateCollectionSetSettings, likewise for handling collection creation and updating within updateCollectionSettings. Failure at the server is correctly aborting the adding/updating of the collection/set within Lightroom. All is good.