Commit Graph

310 Commits

Author SHA1 Message Date
Michal Polacik
369749bb46 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-12-09 14:38:52 +00:00
Julius Härtl
c3f0a1edc4 Fix validation of attachment data
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-03 20:37:47 +01:00
Julius Härtl
daa65b40fb Add integration test for attachment handling on cards
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-10-31 20:18:10 +00:00
Julius Härtl
f26a085b13 Add some tests for parameter validation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-10-31 11:59:50 +00:00
Luka Trovic
9d09916c17 feat: add validators to check values in services
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2022-10-31 11:59:50 +00:00
Julius Härtl
f6dc22c545 Do not install composer dev dependencies for running
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-10-27 09:37:16 +02:00
Marcel Klehr
2237745c09 Fix duedate tests
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2022-10-19 18:56:39 +00:00
Julien Veyssier
82c7145163 fix tests
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-09-07 17:41:51 +02:00
Julius Härtl
2d41ce0ae7 Fix tests running against 25 with adjusted ISimpleFile methods
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-07-25 19:48:27 +02:00
dependabot[bot]
4a744bac5c Update behat/behat requirement in /tests/integration
Updates the requirements on [behat/behat](https://github.com/Behat/Behat) to permit the latest version.
- [Release notes](https://github.com/Behat/Behat/releases)
- [Changelog](https://github.com/Behat/Behat/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Behat/Behat/compare/v3.10.0...v3.11.0)

---
updated-dependencies:
- dependency-name: behat/behat
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-09 02:07:59 +00:00
dependabot[bot]
b037cb0e82 build(deps-dev): Update sabre/dav requirement in /tests/integration
Updates the requirements on [sabre/dav](https://github.com/sabre-io/dav) to permit the latest version.
- [Release notes](https://github.com/sabre-io/dav/releases)
- [Changelog](https://github.com/sabre-io/dav/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sabre-io/dav/compare/4.3.1...4.4.0)

---
updated-dependencies:
- dependency-name: sabre/dav
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-05 07:30:25 +00:00
dependabot[bot]
759fb1bcbc build(deps-dev): Update guzzlehttp/guzzle requirement
Updates the requirements on [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) to permit the latest version.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/master/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/7.4.3...7.4.5)

---
updated-dependencies:
- dependency-name: guzzlehttp/guzzle
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-05 09:19:55 +02:00
Julius Härtl
f03ffd13a0 Fix static analysis by stubbing more circle methods
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-07-05 08:30:40 +02:00
dependabot[bot]
9d4824bb23 build(deps-dev): Update guzzlehttp/guzzle requirement
Updates the requirements on [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) to permit the latest version.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/master/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/7.4.2...7.4.3)

---
updated-dependencies:
- dependency-name: guzzlehttp/guzzle
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-28 02:35:17 +00:00
Julius Härtl
ce7da62a88 Revert lazy use of userId in ConfigService
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-05-13 11:52:21 +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
Julius Härtl
5f5f22ee8c Fix php-cs-fixer failure
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-05-11 21:47:05 +02:00
Julius Härtl
9bd8669cf4 Merge pull request #3682 from nextcloud/bug/increase-file-count-after-sharing
Increase file count after sharing
2022-05-11 16:40:42 +02:00
Julius Härtl
03f400620e Move all caching to helper
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-05-11 16:04:12 +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
Julius Härtl
713dcd5d08 Add missing indices
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-22 12:41:08 +02:00
Raul Ferreira Fuentes
8c1e53a8df Fix test case which relied on mapper->delete() returning a bool value
Signed-off-by: Raul Ferreira Fuentes <raul@nextcloud.com>
2022-04-11 20:04:16 +02:00
Julius Härtl
020429c181 Merge pull request #3670 from nextcloud/bugfix/noid/stack-update-check
Properly check for the stack AND setting board permissions
2022-04-11 16:34:56 +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
86d3de2211 Properly check for the stack AND setting board permissions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-11 12:47:44 +02:00
Raul Ferreira Fuentes
dbc4d10ddf Fix naming scheme
Signed-off-by: Raul Ferreira Fuentes <raul@nextcloud.com>
2022-04-11 11:58:36 +02:00
Julius Härtl
c3a98fa4e3 Merge pull request #3695 from nextcloud/update-master-phpunit-config
Update master php testing versions
2022-04-11 09:53:58 +02:00
Julius Härtl
0ce4279d8f Merge pull request #3689 from nextcloud/bugfix/noid/fix-cron-jobs
Fix cron jobs
2022-04-08 21:47:48 +02:00
dependabot[bot]
93757de86b build(deps-dev): Update symfony/event-dispatcher requirement
Updates the requirements on [symfony/event-dispatcher](https://github.com/symfony/event-dispatcher) to permit the latest version.
- [Release notes](https://github.com/symfony/event-dispatcher/releases)
- [Changelog](https://github.com/symfony/event-dispatcher/blob/5.4/CHANGELOG.md)
- [Commits](https://github.com/symfony/event-dispatcher/compare/v4.4.0...v5.4.3)

---
updated-dependencies:
- dependency-name: symfony/event-dispatcher
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-08 19:33:54 +00:00
Julius Härtl
83f550aaf4 Merge pull request #3699 from nextcloud/dependabot/composer/tests/integration/guzzlehttp/guzzle-7.4.2
build(deps-dev): Update guzzlehttp/guzzle requirement from 6.5.2 to 7.4.2 in /tests/integration
2022-04-08 21:33:26 +02:00
dependabot[bot]
69cf1b797a build(deps-dev): Update sabre/dav requirement in /tests/integration
Updates the requirements on [sabre/dav](https://github.com/sabre-io/dav) to permit the latest version.
- [Release notes](https://github.com/sabre-io/dav/releases)
- [Changelog](https://github.com/sabre-io/dav/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sabre-io/dav/compare/3.2.3...4.3.1)

---
updated-dependencies:
- dependency-name: sabre/dav
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-08 17:49:24 +00:00
dependabot[bot]
821cd5114f build(deps-dev): Update guzzlehttp/guzzle requirement
Updates the requirements on [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) to permit the latest version.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/master/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/6.5.2...7.4.2)

---
updated-dependencies:
- dependency-name: guzzlehttp/guzzle
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-08 17:49:21 +00:00
dependabot[bot]
235116725b build(deps-dev): Update behat/behat requirement in /tests/integration
Updates the requirements on [behat/behat](https://github.com/Behat/Behat) to permit the latest version.
- [Release notes](https://github.com/Behat/Behat/releases)
- [Changelog](https://github.com/Behat/Behat/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Behat/Behat/compare/v3.8.0...v3.10.0)

---
updated-dependencies:
- dependency-name: behat/behat
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-08 15:20:23 +00:00
Joas Schilling
99d720d935 Fix cron jobs
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-08 17:13:17 +02:00
Julius Härtl
ea498d485c Migrate phpunit configuration
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-08 17:06:45 +02:00
Joas Schilling
8d2cfe076f Update master php testing versions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-08 17:06:45 +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
9dd8408c34 Bump phpunit for integration tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-08 15:40:00 +02:00
Raul Ferreira Fuentes
6181d9edf7 Fix NotifierTest to mock the new StackMapper::findStackFromCardId() method correctly.
Signed-off-by: Raul Ferreira Fuentes <raul@nextcloud.com>
2022-04-05 18:07:06 +02:00
Julius Härtl
48db989781 Handle description shortening more gracefully
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-22 08:48:32 +01:00
Julius Härtl
3f29cd97db Cover case where the owner is preserved
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-22 08:23:30 +01:00
Julius Härtl
3a4ec07103 fix: test cases using generator
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-22 08:23:29 +01: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
a032287cb5 cleanup test cases
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
72134e6e95 fix: unit tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-22 08:23:28 +01:00
Luka Trovic
e4551bde15 feat: add integration test for transferring board ownership with data
Signed-off-by: Luka Trovic <luka@nextcloud.com>
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