You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All extending classes of VersionedModelController define a /create endpoint that persists an entity when called with POST. Correct response 201 Created is returned. Customarily, this should be accompanied by the Location header with the URI pointing to the created item.
To Reproduce
Steps to reproduce the behavior OR commands run:
Call e.g. PUT /api/dataset/create with a valid DS content.
Inspect the response.
Expected behaviour
Location header to be generally present with all entity-creating calls.
Additional context
An example of this is implemented in PropertyDefinitionController.createDatasetProperty : [1]
The text was updated successfully, but these errors were encountered:
…st; Issue #1611 mentioned.
missing essentiality is fallbacked to Optional when missing (this would be expected by the definition) - reflected in the API test, too
#1569
- dataset properties pilot implementation
- PropertyDefinitionController uses VersionedModelController methods where possible - just aliased to gain as much consistency as possible
- properties marked with `putIntoInfoFile` are written into _INFO file
- invalid dataset properties block spark-jobs execution
- Java Optional -> Scala Option implicit redone (impl def -> impl class wrapper)
- PD create now returns Location header + reflected in the API test; Issue #1611 mentioned.
- missing essentiality is fallbacked to Optional when missing (this would be expected by the definition) - reflected in the API test, too
- unit tests, integTests added
#1569 Review updates:
- dataset retrieval with properties validation at-once at /api/dataset/{datasetName}/{datasetVersion}?validateProperties=true|false
- CommonExecutionSuite - common execution integ test - making sure common job exec fails on invalid dataset properties from DAO
- Std execution - dataset properties prefix for info file writing is now configurable (config key is "control.info.dataset.properties.prefix", default value: "")
- hasValidNameChars regex fix (@Zejnilovic's mini request)
- in case of json mapping exception being caused by PropertyTypeValidationException, react with most specific errorMessage to the REST API client
Describe the bug
All extending classes of
VersionedModelController
define a/create
endpoint that persists an entity when called with POST. Correct response201 Created
is returned. Customarily, this should be accompanied by the Location header with the URI pointing to the created item.To Reproduce
Steps to reproduce the behavior OR commands run:
PUT /api/dataset/create
with a valid DS content.Expected behaviour
Location header to be generally present with all entity-creating calls.
Additional context
An example of this is implemented in
PropertyDefinitionController.createDatasetProperty
: [1]The text was updated successfully, but these errors were encountered: