-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement Admin-Only Ontology Update Endpoint with Transaction …
…Handling - Created a new Plumber API endpoint `/api/admin/update_ontology` for updating ontology sets. - Restricted access to the endpoint to users with the 'Administrator' role only. - Implemented aggregation and updating of various ontology data sets including mode_of_inheritance_list, non_alt_loci_set, and ndd_entity_view. - Utilized `process_combine_ontology` and `identify_critical_ontology_changes` functions to compute new disease ontology sets and identify critical changes. - Updated ndd_entity table with identified critical changes. - Wrapped database update operations within a transaction using `dbBegin`, `dbCommit`, and `dbRollback` for error handling and maintaining data integrity. - Ensured that if any error occurs during the process, the transaction is rolled back to prevent partial updates. - Added detailed comments and documentation inline with the existing codebase style. - Provided meaningful success and error responses for client requests.
- Loading branch information
Showing
3 changed files
with
163 additions
and
5 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
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