Commit Graph

210 Commits

Author SHA1 Message Date
98ef052967
Don't return all tasks when a user has no lists 2020-05-19 17:22:10 +02:00
8a01b20e1e
Fix setting a list identifier to empty
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-16 13:13:11 +02:00
5a86f44fc3
Generate a random list identifier based on the list title
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-16 12:58:37 +02:00
fe43173b6c Ensure consistent naming of title fields (#528)
All checks were successful
continuous-integration/drone/push Build is passing
Remove task text and namespace name in migration

Fix lint

Add migration for namespace title

Fix renaming namespace name to title

Rename namespace name field to title

Drop text column at the end of the migration

Add migration for task text to title

Rename task text to title

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#528
2020-05-16 10:17:44 +00:00
587ce92dc9 Improve getting all namespaces performance (#526)
All checks were successful
continuous-integration/drone/push Build is passing
Improve getting all namespaces performance

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#526
2020-05-15 15:10:22 +00:00
8758fb6ac5 Fix case-insensitive task search for postgresql (#524)
All checks were successful
continuous-integration/drone/push Build is passing
"Fix" gocyclo

Fix case-insensitive task search for postgresql

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#524
2020-05-15 14:12:20 +00:00
92e5e2db6a
Make the _unix suffix optional when sorting tasks
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-15 16:07:36 +02:00
333444b4e1
Improve metrics performance
Some checks failed
continuous-integration/drone/push Build is failing
2020-05-15 14:42:32 +02:00
4137d4aed2
Fix creating new things with a link share auth
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-12 15:51:48 +02:00
55cd40d175
Fix team rights not updating for namespace rights
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-11 18:39:30 +02:00
8ac158cdb4 Task Filter Fixes (#495)
All checks were successful
continuous-integration/drone/push Build is passing
Fix gocyclo

Fix misspell

Error codes docs

Filter fixes

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#495
2020-05-09 15:48:56 +00:00
18f6e31b54
Fix parsing array style comparators by query param
Some checks failed
continuous-integration/drone/push Build is failing
2020-05-09 15:08:58 +02:00
7e1d0a81bf
Change totp secret datatype from varchar to text
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-05-09 14:45:57 +02:00
563fe16bd4
Add checking and logging when trying to put a task into a nonexisting bucket
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-07 10:20:10 +02:00
fd3ccd6130 Fix total label count when getting all labels (#477)
All checks were successful
continuous-integration/drone/push Build is passing
Fix total label count when getting all labels

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#477
2020-05-03 21:28:36 +00:00
a97ce76f1f
Fix bucket ID being reset with no need to do so
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-03 22:25:48 +02:00
83cf6e191c
Fix not moving its bucket when moving a task between lists
Some checks failed
continuous-integration/drone/push Build is failing
2020-05-03 21:33:59 +02:00
f0ac6e89be
Remove setting task bucket to 0
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-03 21:24:28 +02:00
fa28ddc2f7
Fix pagination count for task collection
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-27 19:28:19 +02:00
56dbb564ea
Fix link share creation & creating admin link shares without admin rights
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-27 12:51:09 +02:00
5606f987fa
Add creating a new first bucket when creating a new list
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-26 15:51:59 +02:00
f0cb3b5e36
Fix removing the last bucket
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-26 00:57:47 +02:00
231dc3913f Add real buckets for tasks which don't have one (#446)
All checks were successful
continuous-integration/drone/push Build is passing
Add docs for error code

Add moving new tasks into the default bucket when none was provided

Add moving tasks in default bucket when deleting one

Fix tests again

Add test for removing a bucket

Fix tests

Prevent removing the last bucket

Remove the empty pseudo bucket

Add migration to create a new bucket for each list (and put all tasks in it

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#446
2020-04-25 20:32:02 +00:00
e433289832 Task Position (#412)
All checks were successful
continuous-integration/drone/push Build is passing
Fix misspell

Fix sorting tasks with null values

Fix sorting by priority for postgres

Merge branch 'master' into feature/position

Add community link

Update golang.org/x/crypto commit hash to 44a6062 (#429)

Update golang.org/x/crypto commit hash to 44a6062

Reviewed-on: vikunja/api#429

Update module lib/pq to v1.4.0 (#428)

Update module lib/pq to v1.4.0

Reviewed-on: vikunja/api#428

Fix updating position

Add ordering tasks in buckets by position

Make task sort by string

Merge branch 'master' into feature/position

Update golang.org/x/crypto commit hash to 3c4aac8 (#419)

Update golang.org/x/crypto commit hash to 3c4aac8

Reviewed-on: vikunja/api#419

Merge branch 'master' into feature/position

Fix moving tasks back into the empty (ID: 0) bucket

Add adding a default position when creating new tasks

Update golang.org/x/crypto commit hash to a76a400 (#411)

Update golang.org/x/crypto commit hash to a76a400

Reviewed-on: vikunja/api#411

Remove unused code

Fix tests

Add migration for position attribute

Add position attribute

Co-authored-by: kolaente <k@knt.li>
Co-authored-by: renovate <renovatebot@kolaente.de>
Reviewed-on: vikunja/api#412
2020-04-24 15:23:03 +00:00
68ab6d2e75
Fix moving tasks back into the empty (ID: 0) bucket
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-20 23:08:38 +02:00
59037e4eee
Fix moving tasks in buckets
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-20 18:08:20 +02:00
ecdecdd94e Kanban (#393)
All checks were successful
continuous-integration/drone/push Build is passing
Fix tests

Add error docs

Add swagger docs for bucket endpoints

Add integration tests

Fix tests

Fix err shadow

Make sure a bucket and a task belong to the same list when adding or updating a task

Add tests

Add getting users of a bucket

Fix log level when testing

Fix lint

Add migration for buckets

Cleanup/Comments/Reorganization

Add Kanban bucket handling

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#393
2020-04-19 07:27:28 +00:00
28ec44c91f Add moving tasks between lists (#389)
All checks were successful
continuous-integration/drone/push Build is passing
Fix misspell

Add moving tasks between lists

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#389
2020-04-18 12:35:37 +00:00
895d9613b5
Add endpoint to disable totp auth
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-18 01:38:49 +02:00
87d0c9088d
Add endpoint to get the current users totp status
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-18 00:22:59 +02:00
24904585a2 Add 2fa for authentification (#383)
All checks were successful
continuous-integration/drone/push Build is passing
Fix user tests

Add swagger docs

Fix lint

Add totp check when logging in

Make totp enrollment work

Add migration for totp table

go mod vendor

Add routes for totp routes

Add route handler for totp routes

Add basic implementation to enroll a user in totp

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#383
2020-04-17 19:25:35 +00:00
1dca8e96a7
Add changing email for users
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-17 16:01:45 +02:00
5832991c4d
Fix tests after renaming json fields to snake_case
Some checks failed
continuous-integration/drone/push Build is failing
2020-04-13 23:27:55 +02:00
81990f3f80
Update xorm redis cacher to use the xorm logger instead of a special seperate one
Some checks failed
continuous-integration/drone/push Build is failing
2020-04-13 23:18:33 +02:00
b8d7c97eb7
Add gosec static analysis
Some checks failed
continuous-integration/drone/push Build is failing
2020-04-13 22:30:09 +02:00
fb8ac92abf
Change all json fields to snake_case
Some checks failed
continuous-integration/drone/push Build is failing
2020-04-12 22:48:46 +02:00
0bfb3a4709
Add configuration options for log level
Some checks failed
continuous-integration/drone/push Build is failing
2020-04-12 22:32:21 +02:00
d28f005552 Update xorm to v1 (#323)
Some checks failed
continuous-integration/drone/push Build is failing
Fix limit for databases other than sqlite

go mod tidy && go mod vendor

Remove unneeded break statements

Make everything work with the new xorm version

Fix xorm logging

Fix lint

Fix redis init

Fix using id field

Fix database init for testing

Change default database log level

Add xorm logger

Use const for postgres

go mod tidy

Merge branch 'master' into update/xorm

# Conflicts:
#	go.mod
#	go.sum
#	vendor/modules.txt

go mod vendor

Fix loading fixtures for postgres

Go mod vendor1

Update xorm to version 1

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#323
2020-04-12 17:29:24 +00:00
0ba121fdfb Task filters (#243)
All checks were successful
continuous-integration/drone/push Build is passing
Fix not returning errors

Fix integration tests

Add more tests

Make task filtering actually work

Change tests

Fix using filter conditions

Fix test

Remove unused fields

Fix static check

Remove start and end date fields on task collection

Fix misspell

add filter logic when getting tasks

Add parsing filter query parameters into task filters

Start adding support for filters

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#243
2020-04-11 14:20:33 +00:00
e7706a20dd
Fix call to println
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kolaente <k@knt.li>
2020-04-02 21:38:16 +02:00
6d1018e647
Fix searching for config in home directories
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: kolaente <k@knt.li>
2020-04-02 21:13:42 +02:00
11246b948f
Fix getting the authenticated user with caldav
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kolaente <k@knt.li>
2020-04-01 22:51:57 +02:00
7b619bd084 Colors for lists and namespaces (#155)
All checks were successful
continuous-integration/drone/push Build is passing
Add Hex Color properties migration

Add Hex Color properties

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#155
2020-03-22 21:09:32 +00:00
35f05cbbec
Show lists as archived if their namespace is archived
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kolaente <k@knt.li>
2020-03-22 21:39:57 +01:00
0a1887d6e7
Fix archiving namespaces
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kolaente <k@knt.li>
2020-03-22 19:02:53 +01:00
c6d22bb1f8
Fix updating lists with an identifier
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kolaente <k@knt.li>
2020-03-22 18:45:10 +01:00
6132863f4a
Fix getting archived lists and namespaces
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kolaente <k@knt.li>
2020-03-22 18:24:54 +01:00
26ffd2fd22
Fix getting one namespace
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kolaente <k@knt.li>
2020-03-21 13:55:42 +01:00
51c74de1de expand relative path ~/.config/vikunja to $HOME/.config/vikunja **WINDOWS** (#147)
All checks were successful
continuous-integration/drone/push Build is passing
apply correct formatting

add quotes to make the yaml gods happy

log path of config file used by viper

resolve merge conflicts: windows compatible $HOME path

Prepare changelog & readme for 0.11 release

expand relative path ~/.config/vikunja to $HOME/.config/vikunja (#146)

update dependencies

expand relative path ~/.config/vikunja

Co-authored-by: Julian <juliangaal@protonmail.com>
Co-authored-by: konrad <konrad@kola-entertainments.de>

Co-authored-by: Julian Gaal <gjulian@uos.de>
Reviewed-on: vikunja/api#147
Reviewed-by: konrad <konrad@kola-entertainments.de>
2020-03-20 21:21:44 +00:00
5126330a10 Add support for archiving lists and namespaces (#152)
All checks were successful
continuous-integration/drone/push Build is passing
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: vikunja/api#152
2020-03-15 21:50:39 +00:00