Julius Härtl
d4ea088cd2
perf: Avoid fetching labels and owner details on permission check
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2024-06-25 17:01:30 +02:00
Julius Härtl
ec9e87d0cb
chore: Clean up permission service
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2024-06-21 09:58:11 +02:00
Andy Scherzinger
be11113d32
chore: Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de >
2024-05-07 15:51:49 +02:00
Luka Trovic
f7f5b88917
fix: permission check for cloning board
...
Signed-off-by: Luka Trovic <luka@nextcloud.com >
2024-05-06 19:32:34 +02:00
Julius Härtl
cf89d4d1c8
fix: Avoid optional before required parameter
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2024-04-26 08:05:12 -04:00
Jim Madge
bf6d2f0667
Clarify config file not found exception message
...
Signed-off-by: Jim Madge <jmadge@turing.ac.uk >
2024-03-31 13:42:35 +01:00
Julius Härtl
d7fe39ecb6
fix: Avoid conflicts on deck attachments folder name
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2024-03-26 16:13:20 +01:00
Julius Härtl
1fdc164462
style: Apply php-cs-fixer updates
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2024-02-05 07:14:22 +01:00
Marcel Klehr
a45ede092a
fix(PermissionService#getPermissions): Catch exceptions from getBoard method
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net >
2024-02-02 11:50:17 +01:00
Niedermann IT-Dienstleistungen
cf4d6268ac
fix(done): Mark card as undone when updating card
...
As stated in https://github.com/nextcloud/deck/issues/534#issuecomment-1892061055 updating the done property of a card via the REST API (without calling the /done and /undone endpoints explicitly) does only work "one way".
This commit allows setting null as new value thus allowing to mark cards as undone without an additional HTTP request but within a usual update request.
Refs: #534 #4137 c3b4ed6e1f
Signed-off-by: Stefan Niedermann <info@niedermann.it >
Signed-off-by: Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com >
2024-01-18 12:08:10 +01:00
Julius Härtl
f4791aa4a4
fix: Further limit updating cards
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2024-01-04 15:20:08 +01:00
Julius Härtl
86d2d1a0f3
fix: limit to non-deleted cards
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2024-01-04 15:20:08 +01:00
Julius Härtl
178d1b3d77
fix: Consider a deleted board inaccessible to share recipients
...
Only the owner can delete/undo a board deletion so there is no reason
other users should have any permission on a board marked as deleted
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2024-01-04 15:20:08 +01:00
Mario Jäckle
197d41ba1e
fix: allow null label colors in trello json importer
...
Signed-off-by: Mario Jäckle <github@jacksbox.de >
2023-12-06 17:29:08 +01:00
Julius Härtl
a05d64250f
fix: Only query boards not marked for deletion unless we want to undo
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-11-20 08:22:45 +01:00
Julius Härtl
27d5861456
fix: Allow optional nullable parameters in the API
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-11-08 12:59:35 +01:00
Julius Härtl
c2fd5163b0
fix: Move to storing the date instead of boolean for done state
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-11-08 12:59:35 +01:00
Thanos Kamber
c3b4ed6e1f
Added ability to mark card as done
...
Closes #534
Signed-off-by: Thanos Kamber <thanos.kamber@gmail.com >
2023-11-08 12:59:27 +01:00
Julius Härtl
be86a2e96c
fix: use proper owner source
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-08-12 09:10:59 +02:00
Julius Härtl
20f0e8efa1
fix: Only map owner for user mapping
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-08-11 18:47:38 +02:00
Julius Härtl
66728431b8
chore: Cleanup some outdated fixme comments
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-08-11 18:23:56 +02:00
Julius Härtl
caebc01a9f
fix: Map card assignments through mapping config
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-08-11 18:21:10 +02:00
Julius Härtl
8e720f1147
fix: Add output for individual failures or skipped parts
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-08-11 18:21:09 +02:00
Julius Härtl
86302937a9
tests: assert json diff between import/export
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-08-11 18:21:09 +02:00
Julius Härtl
15118f4154
fix: Do not fail on missing owner details
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-08-11 18:21:09 +02:00
Julius Härtl
282c1e7d41
test: Add reimport test case
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-08-11 18:21:09 +02:00
Julius Härtl
9d6c83030b
draft: todos
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-08-11 18:21:09 +02:00
Julius Härtl
e7d5fbff63
feat: Let occ deck:import default to deck json importer
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-08-11 18:21:09 +02:00
Julius Härtl
cccc4f2f67
docs: Add dedicated documentation section for import/export
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
docs: Update import docs
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-08-11 18:21:06 +02:00
Julius Härtl
56e16b2d3f
feat: Implement logic to import multiple boards
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-08-11 14:44:57 +02:00
Max
507510f60b
WIP: enh(import): import deck json exports
...
Signed-off-by: Max <max@nextcloud.com >
2023-08-11 14:44:57 +02:00
Julius Härtl
724a12c71f
fix: Avoid failing due to uninitialized acces of systemInstance
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-08-11 14:44:57 +02:00
Julius Härtl
63b0c8271b
fix: Adapt regex for trello token to new length and format
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-08-08 10:21:40 +02:00
Julius Härtl
4a9e399cc9
feat: Use user display name cache
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-07-11 15:33:45 +02:00
Max
cfa9c4d1c4
fix: crash when leaving out system parameter
...
The `--system` parameter can be supplied via command line
or selected afterwards.
However if none was provided the command would crash with
`TypeError: Cannot assign null to property $system`.
Handle that gracefully and make the type spec more precise
for the setSystem function.
Signed-off-by: Max <max@nextcloud.com >
2023-06-15 12:53:14 +02:00
Max
0419ebc856
Fix(occ): set user id for permission sevice from board service
...
Fixes #4010 .
Signed-off-by: Max <max@nextcloud.com >
2023-06-14 11:12:58 +02:00
Julius Härtl
0985f24f57
chore: Fix php-cs-fixer errors
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-06-05 22:26:08 +02:00
Julius Härtl
0b2ea0f839
fix: Centralize usage of CardDetails
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-04-03 15:35:51 +02:00
Julius Härtl
62752f8b72
fix: Use passed userid when getting attachment folder
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-02-27 22:56:28 +01:00
Julius Härtl
1beff8945b
fix: Pass user id along to properly check permissions in background jobs
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-02-27 11:25:45 +01:00
chandi Langecker
41d8867bdd
live updates: listen for stack and board changes
...
Signed-off-by: chandi Langecker <git@chandi.it >
2023-02-21 21:53:22 +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
46df19a3a6
fix: Fix tests
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-02-17 09:16:28 +01:00
Julius Härtl
b19b7794bc
perf: Cache full/partial board data differently
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-02-17 09:16:27 +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
afcd226be8
refactor: Unify board enrichment
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-02-17 09:16:27 +01:00
Julius Härtl
4b319d8d23
perf: Avoid extra round trips when checking permissions
...
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
c01e542044
perf: remove duplicate fetching of assignments
...
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