1
0

Kanban bucket limits (#652)

Fix integration tests

Generate swagger docs

Add test for moving a task between buckets

Add check for bucket limit when updating a task

Add fixture to ensure a bucket with a high limit will never exceed the limit

Refactor bucket limit check into seperate function

Add test for creating and fix

Fix unexported field

Add error in case a task was added to a bucket which has its limit already exceeded

Add migration to add new task field

Add limit field to buckets

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/652
This commit is contained in:
konrad
2020-09-04 14:37:56 +00:00
parent 5317a89623
commit 14d706c91e
11 changed files with 166 additions and 10 deletions

View File

@ -6236,6 +6236,10 @@ var doc = `{
"description": "The unique, numeric id of this bucket.",
"type": "integer"
},
"limit": {
"description": "How many tasks can be at the same time on this board max",
"type": "integer"
},
"list_id": {
"description": "The list this bucket belongs to.",
"type": "integer"

View File

@ -6219,6 +6219,10 @@
"description": "The unique, numeric id of this bucket.",
"type": "integer"
},
"limit": {
"description": "How many tasks can be at the same time on this board max",
"type": "integer"
},
"list_id": {
"description": "The list this bucket belongs to.",
"type": "integer"

View File

@ -53,6 +53,9 @@ definitions:
id:
description: The unique, numeric id of this bucket.
type: integer
limit:
description: How many tasks can be at the same time on this board max
type: integer
list_id:
description: The list this bucket belongs to.
type: integer