stable

Clone or download

Read-only

story #8940: Add a dropdown for configurable column selection

The change allow user to add, remove, resize and reorder a column based on a artifact link nature. - Changes are persisted in db and in session - The displayed value in cell is not relevant (will come in a next commit) - Columns are duplicated from template (during tracker/project creation) - Do not break existing session (update a table and switch to this commit, it should not complain) - Custom columns cannot be sorted - Custom columns cannot be exported in csv format - XML import/export is not broken (custom columns are ignored) - If a nature is deleted, then the corresponding column is removed Change-Id: I141b8375ed76a2b49e8b1408e6bc15fd52181319

Modified Files

Name
M plugins/tracker/db/install.sql +2 −1 Go to diff View file
A plugins/tracker/db/mysql/updates/2016/201604061535_add_nature_in_table_columns.php +47 −0 Go to diff View file
A plugins/tracker/db/mysql/updates/2016/201604071310_replace_primary_key_in_table_columns.php +43 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NatureDao.php +10 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_ArtifactLink.class.php +3 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +99 −5 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report_Renderer_Table.class.php +196 −120 Go to diff View file
M plugins/tracker/include/Tracker/Report/dao/Tracker_Report_Renderer_Table_ColumnsDao.class.php +16 −18 Go to diff View file
M plugins/tracker/site-content/en_US/tracker.tab +3 −0 Go to diff View file
M plugins/tracker/site-content/fr_FR/tracker.tab +3 −0 Go to diff View file
M plugins/tracker/www/scripts/ReorderColumns.js +4 −4 Go to diff View file
M plugins/tracker/www/scripts/TrackerArtifactLink.js +5 −3 Go to diff View file
M plugins/tracker/www/scripts/TrackerReports.js +80 −70 Go to diff View file
M src/common/autoload.php +4 −2 Go to diff View file
M src/common/templating/presenter/ButtonDropdownsOption.class.php +15 −3 Go to diff View file
M src/common/templating/presenter/ButtonDropdownsOptionDivider.class.php +8 −0 Go to diff View file
A src/common/templating/presenter/ButtonDropdownsOptionSubmenu.class.php +53 −0 Go to diff View file
A src/common/templating/presenter/ButtonDropdownsOptionTitle.class.php +49 −0 Go to diff View file
M src/templates/common/button_dropdowns.mustache +26 −2 Go to diff View file
M src/www/themes/FlamingParrot/css/utils/definitions.less +5 −0 Go to diff View file
M src/www/themes/common/css/style.less +5 −0 Go to diff View file