Skip to content

Commit

Permalink
refactor(datasets): dataset_name changed to short_name #907 #913
Browse files Browse the repository at this point in the history
BREAKING_CHANGE: dataset_name changed to short_name in the backend (renku-core)
  • Loading branch information
vfried committed Apr 22, 2020
1 parent c46b2d3 commit e205edd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/api-client/dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function addDatasetMethods(client) {
method: "POST",
headers: headers,
body: JSON.stringify({
"dataset_name": datasetName,
"short_name": datasetName,
"files": filesList,
"project_id": response.data.result.project_id
})
Expand Down Expand Up @@ -97,7 +97,7 @@ export default function addDatasetMethods(client) {
method: "POST",
headers: headers,
body: JSON.stringify({
"dataset_name": renkuDataset.name,
"short_name": renkuDataset.name,
"description": renkuDataset.description,
"project_id": project_id
})
Expand All @@ -111,7 +111,7 @@ export default function addDatasetMethods(client) {
method: "POST",
headers: headers,
body: JSON.stringify({
"dataset_name": renkuDataset.name,
"short_name": renkuDataset.name,
"files": renkuDataset.files,
"project_id": project_id
})
Expand Down
2 changes: 1 addition & 1 deletion src/project/datasets/new/DatasetNew.present.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function DatasetNew(props) {
props.client.getProjectDatasetsFromKG(props.projectPathWithNamespace)
.then(datasets => {
// eslint-disable-next-line
let new_dataset = datasets.find( ds => ds.name === dataset.data.result.dataset_name);
let new_dataset = datasets.find( ds => ds.name === dataset.data.result.short_name);
if (new_dataset !== undefined) {
setSubmitLoader(false);
props.datasetFormSchema.name.value = props.datasetFormSchema.name.initial;
Expand Down

0 comments on commit e205edd

Please sign in to comment.