summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-04-08🔀 Resolving merge: moving shared testsMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🧹 Cleanup test files: added new linesMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🚨 Fix linter in those classes:WENDLING NICOLAS
- ItemController - ItemMapperV2 - ItemServicev2 Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✅ Fix those tests -> ItemControllerTest:WENDLING NICOLAS
- testIndexForFeed - testIndexForFolder - testIndexForShared - testIndexForOther - testIndexSearchFeed - testNewItemsFeed - testNewItemsFolder - testNewItemsShared - testNewItemsOther Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08Fix findFromUser, testFindAllFromUserWithParams, testFindAllFromUserAurélien
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08Fix testFindForUserByGUIDHashAurélien
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✅ Fix FeedControllerTest testsWENDLING NICOLAS
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08Fix testNewestAurélien
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08Fix tests testFindAllInFolderAfterHideRead, testFindAllInFolderAfter, ↵Aurélien
testFindAllInFeedAfterHideRead, testFindAllInFeedAfter Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 Fix testFindAllItemsStarredSearch, testFindAllItemsStarred, ↵Aurélien
testFindAllItemsUnread Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08Fix testFindAllItemsInvalid, testFindAllAfterInvalid, ↵Aurélien
testFindAllAfterStarred, testFindAllAfterUnread Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08fix test findAllFeedAurélien
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08Fix test findAllFeedSearch and findAllFeedHideReadAurélien
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08Fix test findAllFolderIdNull and findAllFolderHideReadAurélien
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08Fix test findAllFolderHideReadInvertOrderAurélien
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08Fix test FindAllFolderSearchIdAurélien
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08fix test readAllAurélien
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✅ ItemMapperTest: add tests for findAllSharedAfterMarco Nassabain
- testFindAllSharedAfter - testFindAllSharedAfterHideRead Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✅ ItemMapperTest: test findAllSharedWithUser funcMarco Nassabain
- testFindAllSharedWithUser - testFindAllSharedWithUserHideRead - testFindAllSharedWithUserSearch Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✅ ItemServiceTest: test share functionsMarco Nassabain
- testFindAllShared - testFindAllNewShared - testSharedCount Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✅ ItemServiceTest: test share functionMarco Nassabain
- testShare - testShareDoesNotExist Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🥅 ItemService: catch NotFoundException + cleanupMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✅ ItemControllerTest: added share tests (WIP)Marco Nassabain
- testIndexForShared - testNewItemShared Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🗃 Change share migration versionMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✅ Fix ItemController share testsMarco Nassabain
- testShare - testShareDoesNotExist Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🔥 Remove old ItemMapper & ItemServiceMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🩹 Remove traces of feed_id being nullableMarco Nassabain
- feed_id is not nullable so we remove default values Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✨ Add findAllSharedAfterMarco Nassabain
- adapted Controller, Service and Mapper (newItems) Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✨ Implementer shared getter + add count in requestMarco Nassabain
- ItemServiceV2: added sharedWithUser - returns unread shared items - ItemController & FeedController - returning shared count Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✨ ItemController (index): add case for shared itemsMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✨ ItemServiceV2: add findAllSharedWithUserWithFiltersMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✨ ItemMapperV2: exclude shared items in functionsMarco Nassabain
updated the following functions to exclude shared_items: - findAllInFeedAfter - findAllInFolderAfter - findAllFeed - findAllFolder Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✨ ItemMapperV2: include shared in functionsMarco Nassabain
updated the following functions to include shared items: - findFromUser - findForUserByGuidHash - readAll - findAllAfter - findAllItems Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✨ ItemMapperV2: include shared in functionsMarco Nassabain
updated the following functions to include shared items: - findAllFromUser - newest Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✨ ItemMapperV2: added findAllSharedWithUser functMarco Nassabain
- return all items shared with a given user Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🚧 ItemService, Controller: added basic sharingMarco Nassabain
- TODO: check if relation already exists Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08💡 Added comments to ItemMapper share fnctsMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✅ Add tests: testFindAllShared, testShare + ...Marco Nassabain
+ testShareDoesNotExist Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08Add tests setSharedBy and setSharedWithAurélien
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✅ Unary test for itemShare from itemService classWENDLING NICOLAS
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✅ Update tests to contain share dataMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🩹 Return starredCount in newItems response paramsMarco Nassabain
- returning sharedCount everywhere where starredCount is returned Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🩹 ItemMapper->deleteUser: include shared itemsMarco Nassabain
- deletes items shared with a user Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🩹 Patch getNewestItemId: include shared articlesMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🩹 Patch readAll: concerns items shared with userMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🐛 Fix readAll: cannot read items we sharedMarco Nassabain
- A shared item is still in our feed, but it's not ours to read Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🐛 Added sharedCount to feedController index resp.Marco Nassabain
- After reloading news app, the shared menu count wouldn't update - The number would only update on click (call ItemController index) - Adding it here fixes the issue Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🚑 Fix bug - other user feeds show for shared itemMarco Nassabain
- findAllFeeds doesn't return feeds of shared articles - Disable feed cache handling for shared items Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✨ Sharing: update ownership in sql (sharedwith)Marco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08Add function for avoid duplicate item (share)Aurélien
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>