stable

Clone or download

Read-only

feat: Add project dashboards in recent items

In order to be able to navigate easily to project dashboards, they should be added in SwitchTo modal ยป Recent items. Visits to a project dashboards are removed when the user clear its history (API REST), when the dashboard is removed, or after daily cleanup. No functional changes in project dashboards CRUD (dao had to be converted to EasyDB). Closes request #35468: Add project dashboards in recent items Change-Id: Ia92954fcb5e4c5db85ada1fabe788c55a549fdb0

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +5 โˆ’1 Go to diff View file
M site-content/pt_BR/LC_MESSAGES/tuleap-core.po +4 โˆ’0 Go to diff View file
A src/common/Dashboard/Project/DeleteVisitByDashboardId.php +26 โˆ’0 Go to diff View file
A src/common/Dashboard/Project/DeleteVisitByUserId.php +26 โˆ’0 Go to diff View file
M src/common/Dashboard/Project/ProjectDashboardController.php +16 โˆ’7 Go to diff View file
M src/common/Dashboard/Project/ProjectDashboardDao.php +30 โˆ’85 Go to diff View file
M src/common/Dashboard/Project/ProjectDashboardDuplicator.php +21 โˆ’21 Go to diff View file
M src/common/Dashboard/Project/ProjectDashboardRetriever.php +14 โˆ’0 Go to diff View file
M src/common/Dashboard/Project/ProjectDashboardSaver.php +9 โˆ’13 Go to diff View file
A src/common/Dashboard/Project/ProjectDashboardVisitRetriever.php +98 โˆ’0 Go to diff View file
A src/common/Dashboard/Project/RecentlyVisitedProjectDashboardDao.php +78 โˆ’0 Go to diff View file
M src/common/Project/Home.php +6 โˆ’1 Go to diff View file
M src/common/Project/ProjectCreator.class.php +3 โˆ’1 Go to diff View file
M src/common/Project/ProjectXMLImporter.class.php +3 โˆ’1 Go to diff View file
A src/common/User/History/GetVisitHistory.php +26 โˆ’0 Go to diff View file
M src/common/User/History/HistoryCleaner.php +7 โˆ’9 Go to diff View file
M src/common/User/History/HistoryRetriever.php +6 โˆ’2 Go to diff View file
M src/common/User/REST/v1/UserResource.php +36 โˆ’2 Go to diff View file
M src/common/system_event/include/SystemEvent_ROOT_DAILY.class.php +2 โˆ’0 Go to diff View file
M src/db/mysql/database_structure.sql +10 โˆ’0 Go to diff View file
A src/db/mysql/updates/2023/2023120611315_add_project_dashboards_recently_visited.php +47 โˆ’0 Go to diff View file
A tests/integration/tests/Dashboard/Project/RecentlyVisitedProjectDashboardDaoTest.php +82 โˆ’0 Go to diff View file
A tests/lib/Stubs/User/History/GetVisitHistoryStub.php +54 โˆ’0 Go to diff View file
M tests/unit/common/Dashboard/Project/ProjectDashboardDuplicatorTest.php +3 โˆ’3 Go to diff View file
M tests/unit/common/Dashboard/Project/ProjectDashboardSaverTest.php +42 โˆ’4 Go to diff View file
M tests/unit/common/Dashboard/Project/ProjectDashboardXMLImporterBase.php +2 โˆ’1 Go to diff View file
M tests/unit/common/Dashboard/Project/ProjectDashboardXMLImporterLinesTest.php +17 โˆ’17 Go to diff View file
M tests/unit/common/Dashboard/Project/ProjectDashboardXMLImporterPluginTest.php +1 โˆ’1 Go to diff View file
M tests/unit/common/Dashboard/Project/ProjectDashboardXMLImporterTest.php +2 โˆ’2 Go to diff View file
M tests/unit/common/User/History/HistoryCleanerTest.php +13 โˆ’1 Go to diff View file
M tests/unit/common/User/History/HistoryRetrieverTest.php +21 โˆ’9 Go to diff View file