aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/SystemTag
Commit message (Collapse)AuthorAgeFilesLines
* fix(systemtags): emit assign and unassign bulk tagging eventsfix/tags-eventsJohn Molakvoæ (skjnldsv)12 days1-0/+13
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fix(systemtags): Dispatch events when bulk assigning system tagsRoland Scheidel2025-03-231-0/+20
| | | | Signed-off-by: Roland Scheidel <kontakt@scheidel.at>
* fix(systemtags): prevent tag edition if restrictedskjnldsv2025-03-061-1/+13
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(systemtags): add setting to block non admin to create system tagsBenjamin Gaussorgues2025-01-222-4/+31
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix: Trim tags on adding or editingbugfix/trim-tagsKostiantyn Miakshyn2025-01-201-0/+2
| | | | Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
* feat(systemtags): add color support backendskjnldsv2024-12-062-51/+14
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(systemtags): translations and etag method casingskjnldsv2024-10-291-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(systemtags): add cypress tests and fix a few logic issuesskjnldsv2024-10-291-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(systemtags): add etag support and handle proppatchskjnldsv2024-10-293-1/+66
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(core): add index to systemtag objecttypeskjnldsv2024-10-291-0/+15
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(db): Apply query prepared statementsdbQueriesExecStmt2Git'Fellow2024-10-171-3/+3
| | | | | | | | | | | | | | | | Fix: psalm fix: bad file fix: bug chore: add batch chore: add batch chore: add batch fix: psalm
* feat: make systemtags public visiblefeat/systemtags-publicJohn Molakvoæ (skjnldsv)2024-10-111-2/+16
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-192-5/+5
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: removed unused variable and check if tag ids are empty before starting ↵yemkareems2024-06-191-1/+6
| | | | | | the inserts Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: filtering tags based on existing tags and doing a transaction around ↵yemkareems2024-06-191-11/+14
| | | | | | the select and insert Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: do a select in systemtag_object_mapping to see if tag exists already in ↵yemkareems2024-06-191-6/+20
| | | | | | db. if it does not exist alone insert the same or else do nothing Signed-off-by: yemkareems <yemkareems@gmail.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-245-109/+14
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Refactors lib/private/SystemTag.Faraz Samapoor2023-11-075-65/+32
| | | | | | Mainly using PHP8's constructor property promotion. Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Merge pull request #39571 from ↵Joas Schilling2023-07-273-47/+13
|\ | | | | | | | | nextcloud/bugfix/noid/move-lib-to-IEventDispatcher Move lib/ events to IEventDispatcher where possible
| * fix: Move SystemTags events to IEventDispatcherJoas Schilling2023-07-273-47/+13
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix(SystemTagManager): Use truncated tagName in getTag and updateTagMarcel Klehr2023-07-271-4/+8
|/ | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix: include invisible tags for adminsArthur Schiwon2023-06-211-2/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* use efficient tag retrieval on DAV report requestArthur Schiwon2023-06-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - uses DAV search approach against valid files joined by systemtag selector - reduced table join for tag/systemtag search - supports pagination - no changes to the output formats or similar Example request body: <?xml version="1.0"?> <oc:filter-files xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns" xmlns:ocs="http://open-collaboration-services.org/ns"> <d:prop> <d:getcontentlength/> <d:getcontenttype/> <d:getetag/> <d:getlastmodified/> <d:resourcetype/> <nc:face-detections/> <nc:file-metadata-size/> <nc:has-preview/> <nc:realpath/> <oc:favorite/> <oc:fileid/> <oc:permissions/> <nc:nbItems/> </d:prop> <oc:filter-rules> <oc:systemtag>32</oc:systemtag> </oc:filter-rules> <d:limit> <d:nresults>50</d:nresults> <nc:firstresult>0</nc:firstresult> </d:limit> </oc:filter-files> Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* refactor: remove where specification from SELECT getterArthur Schiwon2023-05-101-4/+8
| | | | | | | | - search constraints are now fully in control of SystemTagsInFilesDetector::detectAssignedSystemTagsIn(), avoids duplication of a WHERE statement Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* refactor: remove SystemTag logic from Folder into QuerySearchHelperArthur Schiwon2023-05-091-0/+68
| | | | | | | - adds OC\SystemTag\SystemTagsInFilesDetector where the search logic is moved to Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add chunking in SystemTagObjectMapper::getTagIdsForObjectsCôme Chilliet2023-03-131-7/+9
| | | | | | This avoids crashing on Oracle with more than 1000 objects Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(SystemTagManager): Truncate overlong tag namesMarcel Klehr2023-02-241-3/+5
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* composer run cs:fixCôme Chilliet2023-01-202-2/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-044-4/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add commands to manage tags via OCCJohannes Leuker2021-05-251-0/+15
| | | | | | list, add, delete, edit Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* The objectid is a stringRoeland Jago Douma2021-01-281-1/+1
| | | | | | | This allows the query to use the index. Else it has to resort on scanning all the rows. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-164-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use matching parameter names form interfaces and implementationsMorris Jobke2020-08-191-4/+4
| | | | | | Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-102-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-2/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-081-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-054-4/+14
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-222-3/+4
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Only trigger the events with tags that where actually assignedJoas Schilling2019-08-211-1/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use the defined func()->count() instead of manual countingJoas Schilling2018-11-081-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make SystemTag strictRoeland Jago Douma2018-02-214-57/+53
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-062-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* More phpstorm inspection fixesRoeland Jago Douma2017-07-242-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* don't store empty groupidsJörn Friedrich Dreyer2017-03-191-0/+3
| | | | | | gives an exception on oracle and shouldn't be added in the first place Signed-off-by: Morris Jobke <hey@morrisjobke.de>