Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copying an object with mandatory and unique field is not possible. #4333

Open
andreas-gruenwald opened this issue May 8, 2019 · 3 comments

Comments

Projects
None yet
3 participants
@andreas-gruenwald
Copy link
Contributor

commented May 8, 2019

I see that there are already some issues regarding this, but I am not sure whether this is wanted behavior or not:

I have got a class that contains just one field named "remoteId" (unique, mandatory).
When I create an object, publish it and then copy & paste it, this is not possible
with "unique constraint violation".

Version: v5.7.3
Git Hash: d2acc6e

@fashxp

This comment has been minimized.

Copy link
Member

commented May 8, 2019

what would be your expected behavior?

@BlackbitNeueMedien

This comment has been minimized.

Copy link
Contributor

commented May 8, 2019

Truncate unique fields and unpublish object?

@andreas-gruenwald

This comment has been minimized.

Copy link
Contributor Author

commented May 14, 2019

In my opinion the "best" behavior would be to create the object with an empty remoteId (null), so that the error does not occur.
Optionally, the object can be unpublished on paste.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.