-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds a validation workflow to projects for HEP Valais. * Adds a blueprint for validation email templates. * Adds fixtures for HEP Valais organisation. * Adds a JSON schema for storing validation data. * Creates an extension to process validation when a record is saved. * Adds a Marshmallow schema for validation data. * Adds emails for all actions and languages. * Adds a cached property in resource record to get the index name. * Adds a method to get the string representation of a project object. * Adjusts projects permissions depending on the status. * Enables facet and filter for project validation status. * Adds a mapping for validation data in Elasticsearch. * Removes specific fields for projects in deposit process, to have a generic approach. * Closes #457. Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>
- Loading branch information
Sébastien Délèze
committed
Jun 8, 2021
1 parent
ad20ccc
commit 428f148
Showing
45 changed files
with
1,120 additions
and
200 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,112 @@ | ||
{ | ||
"title": "Validation", | ||
"description": "Schema representing a validation workflow.", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"status": { | ||
"$ref": "#/definitions/status" | ||
}, | ||
"action": { | ||
"$ref": "#/definitions/action" | ||
}, | ||
"user": { | ||
"$ref": "#/definitions/user" | ||
}, | ||
"comment": { | ||
"$ref": "#/definitions/comment" | ||
}, | ||
"logs": { | ||
"title": "Logs", | ||
"description": "List of logs.", | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"title": "Log", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"status": { | ||
"$ref": "#/definitions/status" | ||
}, | ||
"action": { | ||
"$ref": "#/definitions/action" | ||
}, | ||
"user": { | ||
"$ref": "#/definitions/user" | ||
}, | ||
"comment": { | ||
"$ref": "#/definitions/comment" | ||
}, | ||
"date": { | ||
"title": "Date", | ||
"description": "Date when the log is created.", | ||
"type": "string", | ||
"minLength": 1 | ||
} | ||
}, | ||
"required": [ | ||
"status", | ||
"action", | ||
"user", | ||
"date" | ||
] | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"status", | ||
"action", | ||
"user" | ||
], | ||
"definitions": { | ||
"status": { | ||
"title": "Status", | ||
"description": "Current status of the record in the validation process.", | ||
"type": "string", | ||
"default": "in_progress", | ||
"enum": [ | ||
"in_progress", | ||
"to_validate", | ||
"validated", | ||
"rejected", | ||
"ask_for_changes" | ||
] | ||
}, | ||
"action": { | ||
"title": "Action", | ||
"description": "Current action done in the validation process.", | ||
"type": "string", | ||
"default": "save", | ||
"enum": [ | ||
"save", | ||
"publish", | ||
"approve", | ||
"reject", | ||
"ask_for_changes" | ||
] | ||
}, | ||
"user": { | ||
"title": "User", | ||
"description": "User which created the record.", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"$ref": { | ||
"title": "User", | ||
"type": "string", | ||
"pattern": "^https://sonar.ch/api/users/.*?$" | ||
} | ||
}, | ||
"required": [ | ||
"$ref" | ||
] | ||
}, | ||
"comment": { | ||
"title": "Comment", | ||
"description": "Comment associated with the current action.", | ||
"type": "string", | ||
"minLength": 1 | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -975,6 +975,9 @@ | |
"rows": 5 | ||
} | ||
} | ||
}, | ||
"validation": { | ||
"$ref": "validation-v1.0.0.json" | ||
} | ||
}, | ||
"propertiesOrder": [ | ||
|
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.