summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
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🩹 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>
2021-04-08🐛 Share Item: feed_id not nullable, copy feed_idMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08(*) fix: item ModelJimmy Huynh
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08(*) fix: item ModelJimmy Huynh
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08(+) Adding sharing_user names to EVERY articles + pre-condition if ↵Jimmy Huynh
sharedArticle: no title feed (e.g.: from wikiRSS...) Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✨ ItemController: return sharedCount in index reqMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🐛 sharedCount: fix sql statement bug `1` => 1Marco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🎨 Fix function name to sharedCountWENDLING NICOLAS
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✨ Add count for unread itemsWENDLING NICOLAS
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🔥 shareItem: set unread = true for shared articleMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🔥 findAllShared: add table alias in sql statementMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08add function findAllShared in returnAurélien
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✨ Get all shared items with an userWENDLING NICOLAS
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08add root for access shared itemsAurélien
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✨ NewsItem: add share routes + controller funcMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08✨ NewsItem: add share functions (mapper + service)Marco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08🗃 NewsItem: added share fields, feedId not nullMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08fix invalid 'empty' checksPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08add missing type hintsPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08return error if new folder name is missing on updatePaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08use last modified timestamp data instead of removed 'updatedAt' fieldPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08return error if no folder name is providedPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08add json error response without an exceptionPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08remove unused service exceptions & allow equally named foldersPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08fix wrong function definition & remove leftover copyright headersPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08move v2 api responses into existing php traitsPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08change method names to follow nextcloud conventionPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08separate serialization functionsPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08remove unused 'findByName' method of folder mapper/servicePaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08do not return existing folders when an API request error occursPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08add possibility to serialize a reduced version of an entityPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>