Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Webpublisher: use max next published version number for all items in batch #3961

Conversation

kalisp
Copy link
Member

@kalisp kalisp commented Oct 11, 2022

Brief description

With this PR it is possible to keep same version for all published items via WP (without studio processing).

Description

Artist is uploading .psd and .png, it should look for highest published of workfile (.psd) or image (.png), increase this by 1 and use this version number for BOTH workfile and image instances.

It looks for max version number, from both subsets, eg. if more image than workfile is published , workfile version number will follow image one.

Testing notes:

  1. set Sync next publish version project_settings/webpublisher/publish/CollectPublishedFiles`
    Screenshot 2022-10-11 152401
  2. publish only .psd (maybe couple of times)
  3. publish both .psd and .png >> resulting version for .png should match to .psd (eg. there will be gaps in images versions)

Customer might want to keep all published items to use same version number. This is calculated as max published version of all subsets that are being published.
Now it makes more sense, if sequence of .png is published >> create instance of 'render' family, add 'review' tag and additional families.
Use same version number for all published intances if enabled.
Added documentation.
@kalisp kalisp added sponsored Client endorsed or requested type: feature Larger, user affecting changes and completely new things labels Oct 11, 2022
@kalisp kalisp self-assigned this Oct 11, 2022
@ynbot
Copy link
Contributor

ynbot commented Oct 11, 2022

@kalisp kalisp changed the title Webpublisher: use max next published 1 for all items in batch Webpublisher: use max next published version number for all items in batch Oct 11, 2022
@64qam
Copy link
Member

64qam commented Oct 12, 2022

Looks good. However, publishing a single file in one batch results in the newer version (e.g. uploading a psd v003, results in v004). Then create a new batch with the corresponding png file (also v003) results also in v004. The correct action should be that the png from a new batch should end up with v005. So every new batch must look for the highest version in both workfile family folder and image/render family folder and version up files from wp batch.

@kalisp kalisp merged commit 60a1d7e into develop Oct 12, 2022
@kalisp kalisp deleted the feature/OP-4218_Webpublisher-Use-max-next-published--1-for-all-items-in-batch branch October 12, 2022 17:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
sponsored Client endorsed or requested type: feature Larger, user affecting changes and completely new things
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants