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

Webpublisher: replace space by underscore in subset names #3160

Conversation

kalisp
Copy link
Member

@kalisp kalisp commented May 10, 2022

Brief description

Invalid character(s) (as a underscore) triggered error in ValidateNaming plugin.

Description

Plugin which creates instances from color coded layers uses ValidateNaming Settings to clean subset and layer name

Develop version of #3159

Testing notes:

  1. Prepare .pds with names like "Layer 1" or "Layer ;/ 1" with proper color coding by configured values in project_settings/photoshop/publish/CollectColorCodedInstances
  2. Publish via Webpublisher and studio processing
  3. It shouldn't fail

Uses Setting to replace invalid characters automatically.
Creates valid subset name and renames layer.
Uses Setting to replace invalid characters automatically.
Creates valid subset name and renames layer.
Layer name validator was looking into wrong field. Layer name should follow same naming convention as subset name to see relation between subset name and layer name better.

Introduced clean_name property returning layer name without publishing highlight icons.
@kalisp kalisp requested a review from 64qam May 10, 2022 14:02
@kalisp kalisp self-assigned this May 10, 2022
@ynbot
Copy link
Contributor

ynbot commented May 10, 2022

@kalisp kalisp merged commit e92b530 into develop May 11, 2022
@kalisp kalisp deleted the bugfix/develop_OP-3137_Webpublisher-replace-space-by-underscore-in-subset-names branch May 11, 2022 08:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants