Commit Graph

190 Commits

Author SHA1 Message Date
Julius Härtl
7786c86f47 fix: Properly handle limited scope for remapping users
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-22 14:22:39 +01:00
Julius Härtl
525a14c428 Allow transfer of single boards
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-22 14:22:39 +01:00
Julius Härtl
48ec97386c fix: Psalm
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-22 14:22:33 +01:00
Julius Härtl
26c76fbb46 fix: unit tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-22 14:15:15 +01:00
Luka Trovic
981fc8e16f fix: integration tests
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2022-03-22 14:15:15 +01:00
Luka Trovic
b7f3c2d140 fix: unit test & psalm static code analysis issues
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2022-03-22 14:15:15 +01:00
Max
b01d472745 fix: queries with the new base mapper in BoardMapper
Signed-off-by: Max <max@nextcloud.com>
2022-03-22 14:15:15 +01:00
Max
05dbf67531 fix: Assignment is the new AssignedUsers
Signed-off-by: Max <max@nextcloud.com>
2022-03-22 14:15:14 +01:00
Julius Härtl
a8c22482f6 Make queries work with the new base mapper
Signed-off-by: Julius Härtl <jus@bitgrid.net>

fix: conflicts
2022-03-22 14:15:14 +01:00
Julius Härtl
c0886cfc7a Just cleanup old ACL rules, there are none for the board owner so nothing to cleanup or persist there
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-22 14:15:14 +01:00
Julius Härtl
da745f9306 Fix card mapper query for transfer
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-22 14:15:14 +01:00
Sergey Shliakhov
16413735d2 Fix coding styles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Max <max@nextcloud.com>
2022-03-22 14:15:14 +01:00
Sergey Shliakhov
e70e7128c0 Transfer deck ownership even if target user already participant of a board
https://github.com/nextcloud/deck/pull/1955#issuecomment-640392715
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
2022-03-22 14:15:14 +01:00
Sergey Shliakhov
36a9d2e95c Check type before transfer card participants ownership
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>

temp
2022-03-22 14:15:14 +01:00
Sergey Shliakhov
d52697823d Fix code style
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
2022-03-22 14:15:13 +01:00
Sergey Shliakhov
fc9fa5dc25 Update docs
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>

fix: conflicts
2022-03-22 14:15:11 +01:00
Julius Härtl
92efa7f5ec Move any circles API usage to internal service
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-01-11 08:27:16 +00:00
Julius Härtl
9a7bcafa6c Properly handle setters now that there is a default value of null with unset acl/labels
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-11-30 12:24:00 +00:00
Julius Härtl
a8d41797ef Keep API results the same as before
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-11-24 14:06:49 +00:00
Julius Härtl
bc9fe51036 Avoid fetching board details multiple times
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-11-24 14:06:49 +00:00
Julius Härtl
d16799948f Cache card to board id relation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-11-24 14:06:49 +00:00
Julien Veyssier
a2205db748 switch to QBMapper in BoardMapper
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2021-11-24 08:41:08 +00:00
Julien Veyssier
dd0a22ba04 use term in DB query instead of filtering in php
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2021-10-04 18:33:53 +02:00
Julien Veyssier
7425d00ba5 harmonize since and before search params
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2021-10-04 18:33:53 +02:00
Julien Veyssier
ca04efb736 apply date search filter in SQL queries instead of computing it in php
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2021-10-04 18:33:53 +02:00
Julius Härtl
ae2aa8caff Reduce duplicate queries when fetching user boards an permissions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-07-05 19:53:43 +02:00
Julius Härtl
3e032b133d Add compatibility for circles on 22
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-06-25 11:23:38 +02:00
Julius Härtl
b657967cac Fix ParamNameMismatch occurences
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-06-10 08:01:27 +02:00
Jakob Röhrl
f23f8b38f1 change func name
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
2021-05-18 12:08:05 +02:00
Jakob Röhrl
eaf061c4b7 show on shared boards unassigned cards to all users
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
2021-05-17 14:30:36 +02:00
Julius Härtl
fbcad7f73b Catch any error during circle detail fetching
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-05-03 08:15:45 +02:00
Julius Härtl
5fbeb839df Allow searching for filters without a query to match all that have a given filter set
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-30 11:01:22 +02:00
Julius Härtl
bbf0394df2 Show comment counter and highlight if unread comments are available
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-28 17:14:48 +02:00
Julius Härtl
abacc9a83c Cast column when comparing comment object_id with the card id
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-16 11:00:55 +02:00
Julius Härtl
990659b8f0 Workaround sqlite query issues
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-13 17:07:57 +02:00
Julius Härtl
840c143b92 Implement advanced search queries
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-13 14:13:03 +02:00
Julius Härtl
381e5e356f Only extract additional attributes from query when not using the entity mapping for the result
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-08 10:50:21 +01:00
Julius Härtl
6d8a03840e Properly pass the user to fetch circles when calling through occ
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-02-23 14:31:00 +01:00
Julius Härtl
e92d34bfcb Implement share provider for deck
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-04 12:10:52 +01:00
Julius Härtl
7a53076b9b Filter out deleted stacks from results
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-29 15:22:05 +01:00
Julius Härtl
4e92faa517 Do not error on deprecated methods for now
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-28 14:48:52 +01:00
Julius Härtl
7cc9cf26ef Update php codestyle
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-28 13:05:54 +01:00
Julius Härtl
2d10186557 Merge pull request #2521 from nextcloud/bugfix/noid/db 2020-11-13 16:07:23 +01:00
Julius Härtl
c5f722da30 Check table consistency in migration that might cause issues during upgrades from very old versions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-13 15:49:00 +01:00
Julius Härtl
2de43a6725 Properly handle if the related board cannot be found in mappers
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-13 15:45:31 +01:00
Julius Härtl
d935e0984f Add proper type to boolean parameter
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-13 11:48:38 +01:00
Julius Härtl
8c1774c6c1 Merge pull request #2517 from nextcloud/bugfix/2482
Filter out duplicate cards in overview
2020-11-11 08:23:06 +01:00
Julius Härtl
12ed9ae4ac Merge pull request #2245 from nextcloud/enh/etag-api 2020-11-10 21:58:30 +01:00
Julius Härtl
a46d31caf2 Expose etag through JSON responses for child elements
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-10 18:04:20 +01:00
Julius Härtl
8b7a30ce4f Expose ETag on single object get methods
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-10 16:01:20 +01:00