Add support for archiving lists and namespaces (#152)
Add query param to get all lists including archived ones Add query param to get all namespaces including archived ones Fix getting lists by namespace only not archived lists Fix misspell Fix lint Merge branch 'master' into feature/archive-lists-namespaces Add docs for error codes Fix archive error codes Don't let archived lists show up in general lists Fix updating description Fix updating lists with link shares More comments Fix un-archiving lists Move check for archiving a list to canWrite Check Add more tests Add more checks Add checks for namespaces and lists Add namespace edit Add tests Add migrations and filter Add basic tests Add is archived property to lists and namespaces Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/api/pulls/152
This commit is contained in:
parent
4472020ee9
commit
5126330a10
20 changed files with 654 additions and 27 deletions
|
|
@ -6,3 +6,11 @@
|
|||
task_id: 2
|
||||
label_id: 4
|
||||
created: 0
|
||||
- id: 3
|
||||
task_id: 35
|
||||
label_id: 4
|
||||
created: 0
|
||||
- id: 4
|
||||
task_id: 36
|
||||
label_id: 4
|
||||
created: 0
|
||||
|
|
|
|||
|
|
@ -180,3 +180,22 @@
|
|||
namespace_id: 15
|
||||
updated: 0
|
||||
created: 0
|
||||
-
|
||||
id: 21
|
||||
title: Test21 archived through namespace
|
||||
description: Lorem Ipsum
|
||||
identifier: test21
|
||||
owner_id: 1
|
||||
namespace_id: 16
|
||||
updated: 0
|
||||
created: 0
|
||||
-
|
||||
id: 22
|
||||
title: Test22 archived individually
|
||||
description: Lorem Ipsum
|
||||
identifier: test22
|
||||
owner_id: 1
|
||||
namespace_id: 1
|
||||
is_archived: 1
|
||||
updated: 0
|
||||
created: 0
|
||||
|
|
|
|||
|
|
@ -76,3 +76,9 @@
|
|||
owner_id: 13
|
||||
updated: 0
|
||||
created: 0
|
||||
- id: 16
|
||||
name: Archived testnamespace16
|
||||
owner_id: 1
|
||||
is_archived: 1
|
||||
updated: 0
|
||||
created: 0
|
||||
|
|
|
|||
|
|
@ -5,4 +5,12 @@
|
|||
- id: 2
|
||||
task_id: 30
|
||||
user_id: 2
|
||||
created: 0
|
||||
created: 0
|
||||
- id: 3
|
||||
task_id: 35
|
||||
user_id: 2
|
||||
created: 0
|
||||
- id: 4
|
||||
task_id: 36
|
||||
user_id: 2
|
||||
created: 0
|
||||
|
|
|
|||
|
|
@ -82,3 +82,15 @@
|
|||
task_id: 26
|
||||
created: 1582135626
|
||||
updated: 1582135626
|
||||
- id: 15
|
||||
comment: comment 15
|
||||
author_id: 1
|
||||
task_id: 35
|
||||
created: 1582135626
|
||||
updated: 1582135626
|
||||
- id: 16
|
||||
comment: comment 16
|
||||
author_id: 1
|
||||
task_id: 36
|
||||
created: 1582135626
|
||||
updated: 1582135626
|
||||
|
|
|
|||
|
|
@ -10,3 +10,27 @@
|
|||
relation_kind: 'parenttask'
|
||||
created_by_id: 1
|
||||
created: 0
|
||||
- id: 3
|
||||
task_id: 35
|
||||
other_task_id: 1
|
||||
relation_kind: 'related'
|
||||
created_by_id: 1
|
||||
created: 0
|
||||
- id: 4
|
||||
task_id: 35
|
||||
other_task_id: 1
|
||||
relation_kind: 'related'
|
||||
created_by_id: 1
|
||||
created: 0
|
||||
- id: 5
|
||||
task_id: 36
|
||||
other_task_id: 1
|
||||
relation_kind: 'related'
|
||||
created_by_id: 1
|
||||
created: 0
|
||||
- id: 6
|
||||
task_id: 36
|
||||
other_task_id: 1
|
||||
relation_kind: 'related'
|
||||
created_by_id: 1
|
||||
created: 0
|
||||
|
|
|
|||
|
|
@ -251,5 +251,19 @@
|
|||
index: 20
|
||||
created: 1543626724
|
||||
updated: 1543626724
|
||||
- id: 35
|
||||
text: 'task #35'
|
||||
created_by_id: 1
|
||||
list_id: 21
|
||||
index: 1
|
||||
created: 1543626724
|
||||
updated: 1543626724
|
||||
- id: 36
|
||||
text: 'task #36'
|
||||
created_by_id: 1
|
||||
list_id: 22
|
||||
index: 1
|
||||
created: 1543626724
|
||||
updated: 1543626724
|
||||
|
||||
|
||||
|
|
|
|||
Reference in a new issue