Actions
Issue #4394
closedContent serializer validate should ensure a saveable object
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
This may be up for discussion:
In the current state, the content serializer family can validate content objects containing artifacts, but when valid, the user is supposed to pop off the `_artifact{,s}` field and create the `ContentArtifact` entities on his own.
I think, if the serializer said, an object is valid, a subsequent `save` without further parameters should just work.
In my approach, i tried to follow the example in [0]. This has the nice side-effect, that the plugin writer is not anymore concerned with handling the `ContentArtifacts` at all.
Related issues
Actions
Save ContentArtifacts in ContentSerializer
Required PR: https://github.com/pulp/pulpcore-plugin/pull/65 Required PR: https://github.com/pulp/pulp_file/pull/166
re #4394 https://pulp.plan.io/issues/4394