- Status New
- Percent Complete
- Task Type Bug Report
- Category Backend/Core
- Assigned To No-one
- Operating System All
- Severity Medium
- Priority Very Low
- Reported Version 1.0 devel (github master)
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#1960 - foreign key relations between versions and tasks
It seem that when deleting a version entry in a project, that tasks that have this version assigned are still connected to this deleted version. For example FS#1222 (on 2015-03-09).
There are several options to solve such things:
- Deny deletion of version as long as tasks assigned to this project version.
- Either by doing a testing SQL query to check this case coded in PHP. Take care to keep this centralized, must also be respected by an eventually later added Flyspray API (XMLRPC or whatever).
- add SQL foreign key constraints with ON DELETE RESTRICT
- Pro: some business logic can be directly enforced by SQL.
- Cons: higher requirements for hosting, if using mysql innodb tables must be available on the hosting
- Move the tasks of this version to a default fallback version before deleting the version tag.
- Either doing one transaction doing : 1. move the tasks to its fallback version, 2. delete the version
- add SQL foreing key constraint with ON DELETE SET $fallbackversionid. Some pros & cons like on the the denying option.
The same for other assignments for tasks.
This issue is similiar to the massop issue: (https://github.com/Flyspray/flyspray/issues/130)
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
About a possible realisation with foreign key constraints
Little Update:
xmlschema03 may support this by using the "platform" parameter for explicit setting the engine innodb for Mysql.
introducing foreign key constraints would be a quite huge refactoring of the Flyspray code, so not FS1.1 or FS1.2.
Update 2020-02-17: ADOdb 5.20.16 does not yet offer the functionality of the opt platform feature defined by xmlschema03.