umbraco / Umbraco.Deploy.Issues

1 stars 0 forks source link

Deploying of User as Content should be avoided #180

Closed meyntony closed 11 months ago

meyntony commented 11 months ago

We have noticed that if Umbraco content has a property of the datatype UserPicker, the content transferred may have wrong information after a deploy, since Deploy cannot be used to deploy Users between environments, it should ignore this information when its transferred.

Steps to Reproduce:

Expected Result:

Actual Result:

AndyButland commented 11 months ago

We'll have a resolution for this in the next patch releases that should work with most scenarios. Users are maintained separately on each environment, so there's no ID that unambiguously relates two users between two environments.

With the new behaviour we use the username to see if we can find a user that matches in the target environment, and if so, assign that to the user picker field. If one is not found, an empty value is stored.

meyntony commented 11 months ago

Is this the same behavior if the MemberPicker was used too?

AndyButland commented 11 months ago

No, not yet, but we'll consider that too. That one is a little different as it is possible to transfer members between environments, so they can be matched up. But if you click through to the PR you'll see some discussion about things we need to handle there.