stable

Clone or download

Read-only

Refactoring: Clarify contract of labelable elements management

Part of story #10501: Manage project labels Instead of having multiple dedicated events, we can clarify the contract of LabelableDao and return the dao instead. That way, when we manage project labels, we are more confident about the behavior of plugins: instead of trusting the behavior behind three separate events (get, delete, merge) this is now the responsibility of the core to execute respective queries, knowing that the plugins respect the LabelableDao. Change-Id: I556907cbeebb030e66bad8dd756fe91b35b58672

Modified Files

Name
M plugins/pullrequest/include/pullrequestPlugin.class.php +4 −27 Go to diff View file
R src/common/project/Label/DeleteProjectLabelInTransaction.php Go to diff View file
M src/common/Label/LabelableDao.php +19 −0 Go to diff View file
M src/common/autoload.php +3 −2 Go to diff View file
M src/common/project/Label/CollectionOfLabelPresenter.php +1 −21 Go to diff View file
M src/common/project/Label/DeleteController.php +10 −8 Go to diff View file
M src/common/project/Label/EditController.php +12 −11 Go to diff View file
M src/common/project/Label/IndexController.php +17 −14 Go to diff View file
D src/common/project/Label/MergeProjectLabelInTransaction.php +0 −77 Go to diff View file
M src/www/project/admin/labels.php +7 −3 Go to diff View file