Problem/Motivation
We would like to validate the csv mapping used to update the asset references. This will identify if any wedam id or widen asset id is in invalid format e.g null or empty or non alphameric etc and pop up a message accordingly.
This will ensure any asset mapping is not lost due to invalid id and the sync works fine.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | media-acquiadam-3268852-3-validate-csv.patch | 2.74 KB | dipayanpramanik5 |
Issue fork media_acquiadam-3268852
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3268852-option-to-validate
changes, plain diff MR !1
Comments
Comment #2
malaynayak commentedComment #3
dipayanpramanik5 commentedHi
Added a validation for checking valid Widen asset ID is referred to the old webdam asset IDs. If there's any invalid asset ID is mapped with old webdam asset ID, Then Update asset reference form will throw an error and CSV will not be imported. CSV file will be imported only if all the widen asset IDs are mapped with webdam IDS are in valid format.
For validation we checked, widen asset ID must be 36 characters long, contain letter, digits and hyphen only.
Comment #4
malaynayak commentedComment #6
japerryThis was fixed at some point