[ehb54/ultrascan3] 2c266f: Confirm Delete Project; refuse while experiments a...
Branch: refs/heads/ehb54-issue-1143 Home: https://github.com/ehb54/ultrascan3 Commit: 2c266f1f9283a8b5a3d3bfad104d0dd20b10d239 https://github.com/ehb54/ultrascan3/commit/2c266f1f9283a8b5a3d3bfad104d0dd20... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-10-13 (Tue, 13 Oct 2026) Changed paths: M doc/manual/source/us_project.rst M gui/us_project_gui.cpp M gui/us_project_gui.h M test/utils/test_us_project.cpp M utils/ius_db2.h M utils/us_project.cpp M utils/us_project.h Log Message: ----------- Confirm Delete Project; refuse while experiments are linked Delete Project deleted the selected project immediately, with no confirmation. In the database, the delete set projectID to NULL in every experiment linked to the project, without any message. - US_Project::linkedExperiments() lists the run IDs of the linked experiments through the new get_project_experiments procedure. It uses statusQuery() first, which returns DBERROR on a database that predates the procedure. - US_ProjectGui::deleteProject() refuses to delete a project that has linked experiments and lists them. If the check cannot be run, it refuses and says the database procedures may need updating. Every delete, from disk or database, now asks for confirmation. - US_Project::deleteFromDB() returns its status and keeps the project when the delete fails or is refused (PROJECT_IN_USE, 556). - Unit tests for both, and the manual page. ius_db2.h is realigned by clang-format after the new enum value. Fixes ehb54/ultrascan-tickets#1143 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> To unsubscribe from these emails, change your notification settings at https://github.com/ehb54/ultrascan3/settings/notifications
participants (1)
-
emre brookes