stable

Clone or download

Read-only

Hide selected fieldsets in artifact view

This is part of story #12188 hide fieldsets according to state On a given state, if you manually define a hidden fieldsets post action in the database, then the given fieldesets will be hidden in any case. For now, there is no button to show all fieldsets, and fieldsets are always hidden without taking into account mandatory fields or field dependencies. This is only working in the artifact view. No information about this post action is given through REST. You have to set a feature flag in the local.inc file to have this post action working: $sys_should_use_hidden_fieldsets_post_actions = 1; Change-Id: I257e7f6306eee18ac8a75c50ad9dc189315a8f52

Modified Files

Name
M plugins/tracker/db/install.sql +14 −0 Go to diff View file
A plugins/tracker/db/mysql/updates/2019/201905211642_create_postaction_hidden_fieldsets_tables.php +60 −0 Go to diff View file
M plugins/tracker/db/uninstall.sql +2 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.class.php +9 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Container_Fieldset.class.php +46 −2 Go to diff View file
A plugins/tracker/include/Workflow/PostAction/HiddenFieldsets/HiddenFieldsets.php +140 −0 Go to diff View file
A plugins/tracker/include/Workflow/PostAction/HiddenFieldsets/HiddenFieldsetsDao.php +41 −0 Go to diff View file
A plugins/tracker/include/Workflow/PostAction/HiddenFieldsets/HiddenFieldsetsDetector.php +68 −0 Go to diff View file
A plugins/tracker/include/Workflow/PostAction/HiddenFieldsets/HiddenFieldsetsRetriever.php +69 −0 Go to diff View file
A plugins/tracker/include/Workflow/PostAction/HiddenFieldsets/NoHiddenFieldsetsPostActionException.php +25 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/Workflow/PostAction/HiddenFieldsets/HiddenFieldsetsDetectorTest.php +146 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/Workflow/PostAction/HiddenFieldsets/HiddenFieldsetsRetrieverTest.php +90 −0 Go to diff View file
M plugins/tracker/www/themes/default/css/style.scss +4 −0 Go to diff View file