Julius Härtl
76fd901062
Handle circle deletion event and add cleanup job
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2022-11-11 10:24:02 +01:00
Michal Polacik
8698e2ce3f
Permanently delete deck cards marked as deleted after 5 min in a cron job
...
Limit deleted cards in one cron job run to 500
Converted spaces to tabs
Added missing import for CardMapper class
Added another missing import for CardMapper class
Fixed response object in findToDelete method + fixed 2 misspellings in API.md
Fixed invalid parameter type
Fix DeleteCronTest
Signed-off-by: Marcel Klehr <mklehr@gmx.net >
Fix lint errors
Signed-off-by: Marcel Klehr <mklehr@gmx.net >
2022-11-07 17:26:12 +01:00
Joas Schilling
2c3113334a
Fix issue with duedate format
...
Signed-off-by: Joas Schilling <coding@schilljs.com >
2022-10-19 19:46:09 +02:00
Julius Härtl
e2dc1c2684
Simplify fetching boards during sharing
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2022-08-28 20:51:22 +02:00
Julius Härtl
9171ffc88a
Avoid fetching archived cards for calendars
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2022-08-17 11:33:27 +02:00
Carl Schwan
44481e1c2a
Switch from OC::$server->get to OCP\Server::get
...
And add a bit more typing to some classes + psalm issues
Signed-off-by: Carl Schwan <carl@carlschwan.eu >
2022-05-12 10:55:36 +02:00
Raul Ferreira Fuentes
b86fbb3cd8
Merge pull request #3782 from nextcloud/enh/backend_serialization_models
...
Add CardDetail serialization model
2022-05-06 12:47:33 +02:00
Raul
9fca104059
Pipeline and codestyle fixes
...
Signed-off-by: Raul <raul@nextcloud.com >
2022-05-06 11:29:13 +02:00
Raul
9369a697e3
Add getDueDateTime function to expose the duedate in datetime format.
...
Signed-off-by: Raul <raul@nextcloud.com >
2022-05-06 11:29:13 +02:00
Raul
ebbafbe55d
Add board summary model
...
Signed-off-by: Raul <raul@nextcloud.com >
2022-05-06 11:29:13 +02:00
Raul
6bf9ba397e
Add phpDoc typehints for magic methods
...
Signed-off-by: Raul <raul@nextcloud.com >
2022-05-06 11:29:13 +02:00
Raul
7b7af75802
Update Card serialization (jsonSerialize usages) to use CardDetails model
...
Signed-off-by: Raul <raul@nextcloud.com >
2022-05-06 11:29:13 +02:00
Julius Härtl
a0d967cdc7
Fix entity creation for stack from card id
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2022-05-05 08:25:07 +02:00
Raul
3f754dc662
Update AttachmentMapper finder methods to use $this-getTableName() instead of explicitly naming the table on the FROM parameters.
...
Signed-off-by: Raul <raul@nextcloud.com >
2022-04-14 16:56:22 +02:00
Raul
0c5b1a88a6
Run cs:fix
...
Signed-off-by: Raul <raul@nextcloud.com >
2022-04-13 12:43:00 +02:00
Raul
815b8597d1
Use numeric typehint instead of int to allow for numeric strings to be passed to find methods. Fixes the psalm check.
...
Signed-off-by: Raul <raul@nextcloud.com >
2022-04-13 12:39:39 +02:00
Raul
53e3a7ae7f
Removed redundant phpDoc block from constructors
...
Signed-off-by: Raul <raul@nextcloud.com >
2022-04-13 10:43:14 +02:00
Raul
04974d37d6
Replace rowCount() with explicit count primitive function. This is necessary due to sqlite driver always returning 0 on rowCount (this is documented behaviour: https://www.php.net/manual/en/pdostatement.rowcount.php )
...
Signed-off-by: Raul <raul@nextcloud.com >
2022-04-13 10:38:32 +02:00
Raul Ferreira Fuentes
8399b00a10
Fix Entity class in AclMapper
...
Signed-off-by: Raul Ferreira Fuentes <raul@nextcloud.com >
2022-04-11 19:46:05 +02:00
Raul Ferreira Fuentes
9244adee30
Various small fixes in mapper queries
...
Signed-off-by: Raul Ferreira Fuentes <raul@nextcloud.com >
2022-04-11 18:44:27 +02:00
Raul Ferreira Fuentes
3265a9de7b
Merge branch 'master' into bugfix/deck_mapper/use_qb_mapper
2022-04-11 18:27:52 +02:00
Raul Ferreira Fuentes
ec602f3e15
Update DeckMapper to extend QBMapper instead of deprecated Mapper
...
Signed-off-by: Raul Ferreira Fuentes <raul@nextcloud.com >
2022-04-11 18:24:41 +02:00
Julius Härtl
7c8e762d5d
Merge pull request #3690 from nextcloud/bugfix/optimise_notifier_queries
...
Optimise queries when preparing card related notifications
2022-04-11 13:47:44 +02:00
Julius Härtl
a08f1936ec
Fix test warnings
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2022-04-08 15:40:01 +02:00
Julius Härtl
46f2d448ab
Add typing to jsonSerialize
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2022-04-08 15:39:59 +02:00
Raul Ferreira Fuentes
270b03949c
Run cs-fix
...
Signed-off-by: Raul Ferreira Fuentes <raul@nextcloud.com >
2022-04-05 18:30:56 +02:00
Raul Ferreira Fuentes
575b885a3a
Catch specific exceptions (not the parent IMapperException) in StackMapper::findStackFromCardId()
...
Signed-off-by: Raul Ferreira Fuentes <raul@nextcloud.com >
2022-04-05 17:24:37 +02:00
Raul Ferreira Fuentes
ac5524efdf
Optimise queries when preparing card related notifications
...
Signed-off-by: Raul Ferreira Fuentes <raul@nextcloud.com >
2022-04-05 14:46:37 +02:00
Julius Härtl
c2144373d9
fix: Properly handle limited scope for remapping users
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2022-03-22 08:23:29 +01:00
Julius Härtl
a45e46f80a
Allow transfer of single boards
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2022-03-22 08:23:29 +01:00
Julius Härtl
b774090032
fix: Psalm
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2022-03-22 08:23:28 +01:00
Julius Härtl
72134e6e95
fix: unit tests
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2022-03-22 08:23:28 +01:00
Luka Trovic
4615926e3b
fix: integration tests
...
Signed-off-by: Luka Trovic <luka@nextcloud.com >
2022-03-22 08:23:28 +01:00
Luka Trovic
afbbdf0c1b
fix: unit test & psalm static code analysis issues
...
Signed-off-by: Luka Trovic <luka@nextcloud.com >
2022-03-22 08:23:28 +01:00
Max
b6340e54c3
fix: queries with the new base mapper in BoardMapper
...
Signed-off-by: Max <max@nextcloud.com >
2022-03-22 08:23:28 +01:00
Max
4d3dabb94e
fix: Assignment is the new AssignedUsers
...
Signed-off-by: Max <max@nextcloud.com >
2022-03-22 08:23:27 +01:00
Julius Härtl
e8ada52c37
Make queries work with the new base mapper
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
fix: conflicts
2022-03-22 08:23:27 +01:00
Julius Härtl
fa7fcef470
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 08:23:27 +01:00
Julius Härtl
ba7cadf9d5
Fix card mapper query for transfer
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2022-03-22 08:23:27 +01:00
Sergey Shliakhov
6106066460
Fix coding styles
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
Signed-off-by: Max <max@nextcloud.com >
2022-03-22 08:23:27 +01:00
Sergey Shliakhov
7df4b7c4bf
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 08:23:27 +01:00
Sergey Shliakhov
8b45495214
Check type before transfer card participants ownership
...
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com >
temp
2022-03-22 08:23:26 +01:00
Sergey Shliakhov
b45c454ce2
Fix code style
...
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com >
2022-03-22 08:23:26 +01:00
Sergey Shliakhov
19a2aeb5e5
Update docs
...
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com >
fix: conflicts
2022-03-22 08:23:26 +01:00
Julius Härtl
eaf6defe59
Move any circles API usage to internal service
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2022-01-03 10:23:47 +01:00
Julius Härtl
596834853b
Fix codestyle issues
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2021-12-29 11:43:57 +01:00
Julius Härtl
92acaa0011
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 10:57:24 +01:00
Julius Härtl
4ec57d337b
Keep API results the same as before
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2021-11-24 10:12:28 +01:00
Julius Härtl
901b8f2506
Avoid fetching board details multiple times
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2021-11-24 09:40:30 +01:00
Julius Härtl
80388d1a88
Cache card to board id relation
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2021-11-24 09:40:30 +01:00