-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #422 from IQSS/feat/406-add-edit-dataset-metadata-…
…form Feat/406 add edit dataset metadata form
- Loading branch information
Showing
86 changed files
with
6,853 additions
and
5,581 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,9 @@ | ||
{ | ||
"pageTitle": "Create Dataset", | ||
"metadataTip": { | ||
"title": "Metadata Tip", | ||
"content": "After adding the dataset, click the Edit Dataset button to add more metadata." | ||
}, | ||
"hostCollection": { | ||
"label": "Host Collection", | ||
"description": "The collection which contains this data.", | ||
"helpText": "Changing the host collection will clear any fields you may have entered data into.", | ||
"buttonLabel": "Edit Host Collection" | ||
}, | ||
"requiredFields": "Asterisks indicate required fields", | ||
"validationAlert": { | ||
"title": "Validation Error", | ||
"content": "Required fields were missed or there was a validation error. Please scroll down to see details." | ||
}, | ||
"datasetForm": { | ||
"field": { | ||
"required": "{{displayName}} is required", | ||
"invalid": { | ||
"url": "{{displayName}} is not a valid URL", | ||
"email": "{{displayName}} is not a valid email", | ||
"int": "{{displayName}} is not a valid integer", | ||
"float": "{{displayName}} is not a valid float", | ||
"date": "{{displayName}} is not a valid date. Please use the format {{dateFormat}}" | ||
} | ||
}, | ||
"status": { | ||
"submitting": "Submitting...", | ||
"success": "Form submitted successfully!", | ||
"failed": "Error: Submission failed." | ||
}, | ||
"addRowButton": "Add", | ||
"deleteRowButton": "Delete" | ||
}, | ||
"datasetFormStates": { | ||
"submitting": "Form Submitting", | ||
"submissionSuccess": "Form submission successful" | ||
}, | ||
"saveButton": "Save Dataset", | ||
"cancelButton": "Cancel" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"metadataTip": { | ||
"title": "Metadata Tip", | ||
"content": "After adding the dataset, click the Edit Dataset button to add more metadata." | ||
}, | ||
"validationAlert": { | ||
"title": "Validation Error", | ||
"content": "Required fields were missed or there was a validation error. Please scroll down to see details." | ||
}, | ||
"requiredFields": "Asterisks indicate required fields", | ||
"mayBecomeRequired": "One or more of these fields may become required if you add to one or more of these optional fields.", | ||
"field": { | ||
"required": "{{displayName}} is required", | ||
"invalid": { | ||
"url": "{{displayName}} is not a valid URL", | ||
"email": "{{displayName}} is not a valid email", | ||
"int": "{{displayName}} is not a valid integer", | ||
"float": "{{displayName}} is not a valid float", | ||
"date": "{{displayName}} is not a valid date. Please use the format {{dateFormat}}" | ||
} | ||
}, | ||
"status": { | ||
"submitting": "Submitting...", | ||
"success": "Form submitted successfully!", | ||
"failed": "Error: Submission failed." | ||
}, | ||
"states": { | ||
"submitting": "Form Submitting", | ||
"submissionSuccess": "Form submission successful" | ||
}, | ||
"addRowButton": "Add", | ||
"deleteRowButton": "Delete", | ||
"saveButton": { | ||
"createMode": "Save Dataset", | ||
"editMode": "Save Changes" | ||
}, | ||
"cancelButton": "Cancel" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"breadcrumbActionItem": "Edit Dataset Metadata", | ||
"infoAlert": { | ||
"heading": "Edit Dataset Metadata", | ||
"text": "Add more metadata about this dataset to help others easily find it." | ||
}, | ||
"hostCollection": { | ||
"label": "Host Collection", | ||
"description": "The collection which contains this data." | ||
}, | ||
"metadata": "Metadata" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { DatasetRepository } from '../repositories/DatasetRepository' | ||
import { DatasetDTO } from './DTOs/DatasetDTO' | ||
|
||
export function updateDatasetMetadata( | ||
datasetRepository: DatasetRepository, | ||
datasetId: string | number, | ||
updatedDataset: DatasetDTO | ||
): Promise<void> { | ||
return datasetRepository.updateMetadata(datasetId, updatedDataset).catch((error: Error) => { | ||
throw new Error(error.message) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.