Commit Graph

244 Commits

Author SHA1 Message Date
Git'Fellow
da93c1a4c6 Ensure boardId is an integer
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2023-06-09 07:43:25 +00:00
Julius Härtl
fbb410667a fix: Always return sorted index array to make sure a json array is the result
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-03-01 17:28:13 +01:00
Julius Härtl
a198a4eef4 fix: Avoid mutating the due date when calculating days
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-27 23:13:06 +01:00
chandi Langecker
322ee92573 live updates for boards
Signed-off-by: chandi Langecker <git@chandi.it>
2023-02-21 21:53:20 +01:00
Julius Härtl
b4de6a8f96 fix: Chunk in-queries to 1000 items
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-17 09:16:43 +01:00
Julius Härtl
29d21e05e8 chore: Remove some unused methods
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-17 09:16:27 +01:00
Julius Härtl
8ec8a91cab perf: Group queries for fetching overview cards
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-17 09:16:27 +01:00
Julius Härtl
96d1e14390 perf: Cache stacks per request
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-17 09:16:27 +01:00
Julius Härtl
af21282468 style: php-cs-fixer
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-17 09:16:26 +01:00
Julius Härtl
ba3cab1036 perf: Combine fetching acls for boards
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-17 09:16:26 +01:00
Julius Härtl
81c0d96357 perf: Make fetching user details lazy
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-17 09:16:26 +01:00
Julius Härtl
23813b7a03 perf: Add mapper methods to get multiple labels/assignments for cards
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-17 09:16:26 +01:00
Julius Härtl
2ffecd81d4 chore: Fix typings and update psalm baseline
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-15 13:29:26 +01:00
Raul
7575bd0bf7 Fix due status calculation
Signed-off-by: Raul <raul@nextcloud.com>
2023-02-15 13:18:11 +01:00
Raul
308bf80de0 Add Card::getDaysUntilDue() function
Signed-off-by: Raul <raul@nextcloud.com>
2023-02-15 13:18:11 +01:00
Raul
4388d898ae Include board summary in card details
Signed-off-by: Raul <raul@nextcloud.com>
2023-02-15 13:18:11 +01:00
Raul
3a730cf38f Add phpDoc typehints for magic methods
Signed-off-by: Raul <raul@nextcloud.com>
2023-02-15 13:18:11 +01:00
Joas Schilling
96e9571ae4 Update signature of Entity::markFieldUpdated
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-01-23 11:11:41 +01:00
Julius Härtl
d892979efa chore(psalm): Fix annotations to make psalm happy
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-01-03 15:22:31 +01:00
chandi Langecker
541ee13780 sessions: ignore self-emitted update events
Signed-off-by: chandi Langecker <git@chandi.it>
2023-01-03 12:45:11 +01:00
chandi Langecker
0ea384d1e5 session cleanup via background job
Signed-off-by: chandi Langecker <git@chandi.it>
2023-01-03 12:45:11 +01:00
chandi Langecker
af134959ce optimize sql queries / indexing
Signed-off-by: chandi Langecker <git@chandi.it>
2023-01-03 12:43:59 +01:00
chandi Langecker
6bfb54e2b3 use strict types in new php classes
Signed-off-by: chandi Langecker <git@chandi.it>
2023-01-03 12:43:59 +01:00
chandi Langecker
fcfbcc63b4 basic notify_push usage with session handling (rebased)
Signed-off-by: chandi Langecker <git@chandi.it>
2023-01-03 12:43:56 +01:00
Julius Härtl
c739d543c2 chore: Fix new psalm errors
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-30 14:08:31 +01:00
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