stable

Clone or download

Read-only

Add a REST route /users/{id}/history to get the history of a user

As of today, only the visit of artifacts are visible in the user's history This is part of story #10257: show artifact view history Change-Id: Ic6718a05cb883cd00c3815d5a8b83d9d5bd269ba

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/RecentlyVisited/RecentlyVisitedDao.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/RecentlyVisited/VisitRetriever.php +25 −0 Go to diff View file
M plugins/tracker/include/trackerPlugin.class.php +16 −0 Go to diff View file
A plugins/tracker/tests/Artifact/RecentlyVisited/VisitRetrieverTest.php +68 −0 Go to diff View file
M src/common/autoload.php +6 −2 Go to diff View file
M src/common/event/Event.class.php +9 −0 Go to diff View file
A src/common/user/History/HistoryEntry.php +81 −0 Go to diff View file
A src/common/user/History/HistoryRetriever.php +68 −0 Go to diff View file
A src/common/user/REST/v1/UserHistoryEntryRepresentation.php +51 −0 Go to diff View file
A src/common/user/REST/v1/UserHistoryRepresentation.php +45 −0 Go to diff View file
M src/common/user/REST/v1/UserResource.php +48 −1 Go to diff View file
M tests/rest/UsersTest.php +15 −0 Go to diff View file
A tests/simpletest/common/User/History/HistoryRetrieverTest.php +59 −0 Go to diff View file
A tests/simpletest/common/User/History/MockedEventManager.php +41 −0 Go to diff View file