Open ddemeyer opened 8 months ago
Put more thought into it...
Add-Member
cmdletMostly concerned that this would complicate the code that much that switching to future public OpenApi without little-to-none breaking changes might become harder instead of easier - what is -ValueType Label worth on OpenApi, nothing really, it is implicit.
One of the UX improvements in Tridion Docs 15.1/Alf1 release is the availability of a User's Display Name throughout user interfaces. Technically this means that the public API had to be extended in a non-breaking way to support delivering these values. The choice was made to add a new
valuetype
attribute on the the<ishfields>
metadata containers in API 2.5 calledLabel
.FAUTHOR
orFTRANSLATOR
, you can now also request the non-unique Label (the user's display name)FMASTERREF
(root DITA Map on a Publication Version) orFISHRESOURCES
(library DITA Topics on a Publication Version), you can now also request the non-unique title (the object'sFTITLE
field)For ISHRemote it means that the following things need to be reviewed
Set-IshMetadataField
should probably throw as no write operation is allowed as Dave De Meyer is not a unique identifier (while value ddemeyer or element VUSERDDEMEYER is guaranteed to be unique).Set-IshMetadataFilterField
should probably throw as filtering is not implemented on a lookup field (like FISHUSERDISPLAYNAME and FTITLE).Set-IshRequestedMetadataField
should workSet-IshRequiredCurrentMetadataField
should probably throw as value checks is not implemented on a lookup field (like FISHUSERDISPLAYNAME and FTITLE).Get-IshMetadataField
should work$ishSession.DefaultRequestedMetadata
should be verified to potentially addLabel
by default, but this only for 15.1/Alf. What happens if you useLabel
on 15.0 and lower instances - throw?$ishSession.StrictMetadataPreference
variations could explicitly or silently removeLabel
usage depending on the target instance server version