-
Notifications
You must be signed in to change notification settings - Fork 172
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
The services API can not consume what it puts out #2196
Comments
Update: Ok, so the problem is not only around entity_reference fields that use autocomplete. Some list fields also break node creation. My current thinking is that we should figure out a way to have a little more control over field validation so we continue to get the benefits that services gets from submitting a form instead of dealing with the entity system directly while being able to remove validations that break the datastore API. I will attempt that by overriding the services callbacks for node create and update (at least for the dataset and resource nodes) and deal with the entity system directly, while bringing some form (widget) field validation selectively into play. |
This ticket is for investigation and creating new tickets to address work. |
If you retrieve a dataset with the API, and then try to save it as a new dataset, the API will not be able to save it. Most of the errors are related to reference fields.
In particular the dataset reference field in a resource is validated by the API with an entity_reference_autocomplete validator which expects the title of a node instead of a node id. Other fields may have the same problem.
The text was updated successfully, but these errors were encountered: