Commit Graph

967 Commits

Author SHA1 Message Date
a7c8592c3f Add app support info for DAV
All checks were successful
continuous-integration/drone/pr Build is passing
2020-10-19 11:49:26 +00:00
214f2f008e Support absolute iCal timestamps in CalDAV requests (#691)
All checks were successful
continuous-integration/drone/push Build is passing
no need to export from there I think

parse absolute ical timestamps

Co-authored-by: konrad <konrad@kola-entertainments.de>
Co-authored-by: Martin Giger <martin@humanoids.be>
Reviewed-on: vikunja/api#691
Co-Authored-By: freaktechnik <martin@humanoids.be>
Co-Committed-By: freaktechnik <martin@humanoids.be>
2020-10-19 09:11:15 +00:00
004e432e7c
Fix nfpm command in drone
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-19 07:58:24 +02:00
47486af06d Update module spf13/cobra to v1.1.1 (#690)
Some checks failed
continuous-integration/drone/push Build is failing
Update module spf13/cobra to v1.1.1

Reviewed-on: vikunja/api#690
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-18 20:16:25 +00:00
8b9b1984fc
Make sure we have go installed when building os packages (for build step dependencies)
Some checks failed
continuous-integration/drone/push Build is failing
2020-10-18 21:28:33 +02:00
6dd7bcb0fe
Make sure we have git installed when building os packages
Some checks failed
continuous-integration/drone/push Build is failing
2020-10-18 20:29:54 +02:00
b94950d7c2
Fix trigger for pushing release artifacts to drone
Some checks failed
continuous-integration/drone/push Build is failing
2020-10-18 13:59:26 +02:00
618353bf95 Use nfpm to build deb, rpm and apk packages (#689)
Some checks failed
continuous-integration/drone/push Build is failing
Cleanup

Update docs for deb

Add building os packages to drone

Add apk packages

Replace version and binlocation strings in nfpm config

Make nfpm config replacable

Fix nfpm config

Add nfpm config

go mod tidy

Add nfpm mage target

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#689
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-10-18 11:41:27 +00:00
1555081939 fetch tasks for caldav lists (#641)
Some checks failed
continuous-integration/drone/push Build is failing
Fix shadowed error

Panic if a TaskCollection.ReadAll does not return []*models.Task

Fetch tasks for caldav lists

Co-authored-by: kolaente <k@knt.li>
Co-authored-by: konrad <konrad@kola-entertainments.de>
Co-authored-by: Martin Giger <martin@humanoids.be>
Reviewed-on: vikunja/api#641
Co-Authored-By: freaktechnik <martin@humanoids.be>
Co-Committed-By: freaktechnik <martin@humanoids.be>
2020-10-18 10:40:50 +00:00
7fe9e6d3f6 Update module swaggo/swag to v1.6.8 (#680)
All checks were successful
continuous-integration/drone/push Build is passing
Regenerate swagger docs with new swaggo

Update module swaggo/swag to v1.6.8

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#680
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-17 18:03:05 +00:00
cbba0695a8 Update module fzipp/gocyclo to v0.3.0 (#687)
All checks were successful
continuous-integration/drone/push Build is passing
Update module fzipp/gocyclo to v0.3.0

Reviewed-on: vikunja/api#687
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-17 10:26:52 +00:00
921526e086 Update golang.org/x/crypto commit hash to 9e8e0b3 (#685)
All checks were successful
continuous-integration/drone/push Build is passing
Update golang.org/x/crypto commit hash to 9e8e0b3

Co-authored-by: konrad <konrad@kola-entertainments.de>
Reviewed-on: vikunja/api#685
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-17 09:34:23 +00:00
1b21339bf8 Generate config docs from sample config (#684)
All checks were successful
continuous-integration/drone/push Build is passing
Add docs todo to PR template

Clarify docs

Fix parsing of descriptions and multi-level values

Add method to write out the file

Only render default value for non-top-level values

Remove comment headings from yaml comments

Add printing config

Add basic parsing of sample config with comments

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#684
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-10-17 08:07:39 +00:00
e9d6daa1a3 Update module fzipp/gocyclo to v0.2.0 (#686)
Some checks failed
continuous-integration/drone/push Build is failing
Update module fzipp/gocyclo to v0.2.0

Reviewed-on: vikunja/api#686
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-17 08:06:20 +00:00
8b001313f4 Update golang.org/x/crypto commit hash to 84dcc77 (#678)
Some checks failed
continuous-integration/drone/push Build is failing
Update golang.org/x/crypto commit hash to 84dcc77

Reviewed-on: vikunja/api#678
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-16 19:55:20 +00:00
e0c8eca669 Update module prometheus/client_golang to v1.8.0 (#681)
All checks were successful
continuous-integration/drone/push Build is passing
Update module prometheus/client_golang to v1.8.0

Reviewed-on: vikunja/api#681
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-15 20:24:03 +00:00
c629130b3b Update module spf13/cobra to v1.1.0 (#679)
Some checks reported errors
continuous-integration/drone/push Build was killed
Update module spf13/cobra to v1.1.0

Reviewed-on: vikunja/api#679
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-14 19:16:18 +00:00
9252225d7f
Disable gocyclo for migration modules
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kolaente <k@knt.li>
2020-10-13 08:05:55 +02:00
38b5c7fb6c
Add checks if tasks exist in maps before trying to access them
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: kolaente <k@knt.li>
2020-10-12 19:33:17 +02:00
e26df26f78
Fix migrating items with large items from todoist
All checks were successful
continuous-integration/drone/push Build is passing
see #266
2020-10-12 08:08:52 +02:00
158e07e581 Update module go-errors/errors to v1.1.1 (#677)
All checks were successful
continuous-integration/drone/push Build is passing
Update module go-errors/errors to v1.1.1

Reviewed-on: vikunja/api#677
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-11 21:27:42 +00:00
699d3d6060 Add Golangci Lint (#676)
All checks were successful
continuous-integration/drone/push Build is passing
Increase golangci timeout

Fix installing golangci-lint in ci

Remove mage targets replaced by golangci

Run golint in ci

Add goheader linter

Enable & fix more linters

Fix lint issues

Add mage target to automagically fix issues found by golangci

golangci-lint run --fix

Add golangci config

Add golangci mage target

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#676
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-10-11 20:10:03 +00:00
d56a611be7 Key-Value Storages (#674)
All checks were successful
continuous-integration/drone/push Build is passing
Fix lint

Add docs for keyvalue config options

Use keyvalue store to cache unsplash photo results

Cleanup

Use keyvalue store for upload avatar

Use keyvalue store for initials avatar

Fix initializing metrics

Use keyvalue for metrics

Add IncryBy and DecrBy methods to increase or decrease a value

Fix lint

Return custom error if a key does not exist

Init keyvalue storage

Follow the keyvalue storage setting for things like cache and other

Add docs

Add configuration of the storage backend

Add redis keyvalue storage implementation

Add doc comments

Add methods to use storage through the package itself

Add memory implementation for keyvalue store

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#674
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-10-10 16:53:59 +00:00
bf5d8af3f6
Fix docs index links
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-10 12:12:54 +02:00
0769098357 Update golang.org/x/sync commit hash to b3e1573 (#675)
All checks were successful
continuous-integration/drone/push Build is passing
Update golang.org/x/sync commit hash to b3e1573

Reviewed-on: vikunja/api#675
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-10 07:04:40 +00:00
71094d981f Update module spf13/afero to v1.4.1 (#673)
All checks were successful
continuous-integration/drone/push Build is passing
Update module spf13/afero to v1.4.1

Reviewed-on: vikunja/api#673
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-06 12:03:14 +00:00
32d97f1451 Update golang.org/x/crypto commit hash to 7f63de1 (#672)
All checks were successful
continuous-integration/drone/push Build is passing
Update golang.org/x/crypto commit hash to 7f63de1

Reviewed-on: vikunja/api#672
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-02 18:19:39 +00:00
bf9d1c634a Update module mattn/go-sqlite3 to v1.14.4 (#670)
Some checks failed
continuous-integration/drone/push Build is failing
Update module mattn/go-sqlite3 to v1.14.4

Reviewed-on: vikunja/api#670
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-02 15:05:51 +00:00
ebd96d7766 Update golang.org/x/crypto commit hash to c90954c (#671)
Some checks failed
continuous-integration/drone/push Build is failing
Update golang.org/x/crypto commit hash to c90954c

Reviewed-on: vikunja/api#671
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-02 15:05:32 +00:00
089d156259 Update golang.org/x/crypto commit hash to eb9a90e (#669)
All checks were successful
continuous-integration/drone/push Build is passing
Update golang.org/x/crypto commit hash to eb9a90e

Reviewed-on: vikunja/api#669
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-10-01 21:09:37 +00:00
dd589022e4 Update golang.org/x/crypto commit hash to afb6bcd (#668)
Some checks reported errors
continuous-integration/drone/push Build was killed
Update golang.org/x/crypto commit hash to afb6bcd

Reviewed-on: vikunja/api#668
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-09-30 17:18:49 +00:00
b850f65295 Update golang.org/x/sync commit hash to 3042136 (#667)
Some checks failed
continuous-integration/drone/push Build is failing
Update golang.org/x/sync commit hash to 3042136

Reviewed-on: vikunja/api#667
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-09-30 14:44:18 +00:00
b3d09cd2d4
Fix loading list background information for uploaded backgrounds
Some checks reported errors
continuous-integration/drone/push Build was killed
Signed-off-by: kolaente <k@knt.li>
2020-09-28 20:53:17 +02:00
64d125afd9 Testing improvements (#666)
All checks were successful
continuous-integration/drone/push Build is passing
Change method names to avoid doubling db

Assert team test exists

Assert team member test exists

Assert task test exists

Assert task relation test exists

Assert task comment test exists

Better tests for team namespaces

Assert exists in namespace users tests

Assert exists in namespace tests

Assert exists in user list tests

Assert exists in list tests

Better team list tests

Assert label tests exist in db

Assert label task tests exist in db

Assert label task tests exist in db

Assert kanban tests exist in db

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#666
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-09-27 15:45:17 +00:00
dd5d64da3e Update golang.org/x/image commit hash to e162460 (#665)
All checks were successful
continuous-integration/drone/push Build is passing
Update golang.org/x/image commit hash to e162460

Reviewed-on: vikunja/api#665
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-09-27 13:35:07 +00:00
1776eb56fe
Fix upload avatar not working
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kolaente <k@knt.li>
2020-09-27 12:50:52 +02:00
f8c135f22e Update golang.org/x/image commit hash to a67d67e (#664)
All checks were successful
continuous-integration/drone/push Build is passing
Update golang.org/x/image commit hash to a67d67e

Reviewed-on: vikunja/api#664
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-09-27 07:12:14 +00:00
0fb2edf051 Saved filters (#655)
All checks were successful
continuous-integration/drone/push Build is passing
Fix updating saved filters

Fix filter not loadable because of missing param declaration

Add fancy special cases for postgres exists in db

Add special case for postgrs json

Add read one test

Add rights tests

Fix lint

Fixed getting a single saved filter from db

Add tests for the usual crud methods

Add test stubs and TODOs

Add test for converting saved filter ids to list ids and vice versa

Add test fixture for saved filters and fix existing tests

Fix exposed json variables of filters

Fix creating saved filters table for tests

Add getting saved filters as pseudo namespace

Cleanup

Refactor getting all namespaces to use a map for easier handling of pseudo namespaces

Add custom erros for saved filters

Swagger docs

Fix lint

Add routes for saved filters

Add alias for mage build

Add method to get a saved filter from the lists endpoint

Add getting tasks from a saved filter

Add create, update, delete, read one methods

Add rights methods for saved filters

Fix docs minLength

Add saved filters column

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#655
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-09-26 21:02:17 +00:00
a6fdf114d1 Update golang.org/x/image commit hash to 4578eab (#663)
All checks were successful
continuous-integration/drone/push Build is passing
Update golang.org/x/image commit hash to 4578eab

Reviewed-on: vikunja/api#663
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-09-24 09:01:34 +00:00
ca1b33d24d Update github.com/asaskevich/govalidator commit hash to 7a23bdc (#657)
All checks were successful
continuous-integration/drone/push Build is passing
Update github.com/asaskevich/govalidator commit hash to 7a23bdc

Reviewed-on: vikunja/api#657
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-09-23 11:27:58 +00:00
c98b9bbee6 Update golang.org/x/image commit hash to e59bae6 (#659)
All checks were successful
continuous-integration/drone/push Build is passing
Update golang.org/x/image commit hash to e59bae6

Reviewed-on: vikunja/api#659
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-09-23 11:27:43 +00:00
19a0a85c73 Update github.com/jgautheron/goconst commit hash to 8f5268c (#658)
All checks were successful
continuous-integration/drone/push Build is passing
Update github.com/jgautheron/goconst commit hash to 8f5268c

Reviewed-on: vikunja/api#658
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-09-23 10:25:10 +00:00
77122b8f1b Update module iancoleman/strcase to v0.1.2 (#660)
All checks were successful
continuous-integration/drone/push Build is passing
Update module iancoleman/strcase to v0.1.2

Reviewed-on: vikunja/api#660
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-09-23 07:59:24 +00:00
436af467d6 Update module mattn/go-sqlite3 to v1.14.3 (#661)
All checks were successful
continuous-integration/drone/push Build is passing
Update module mattn/go-sqlite3 to v1.14.3

Reviewed-on: vikunja/api#661
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-09-23 07:12:18 +00:00
04130e4ea3 Update module spf13/afero to v1.4.0 (#662)
All checks were successful
continuous-integration/drone/push Build is passing
Update module spf13/afero to v1.4.0

Reviewed-on: vikunja/api#662
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-09-23 05:05:58 +00:00
7e6e44e787
Replace renovate tokens with env
Some checks failed
continuous-integration/drone/push Build is failing
2020-09-22 22:25:23 +02:00
9e7ca8df51
Update renovate token
All checks were successful
continuous-integration/drone/push Build is passing
2020-09-22 21:42:40 +02:00
6bdddd462a Favorite lists (#654)
All checks were successful
continuous-integration/drone/push Build is passing
Add tests

Remove the favorites pseudo namespace if there are no lists or tasks favorited

Regenerate swagger docs

Fix favorite lists not being updated because of nonexisting users (the favorite list does not have one)

Make the pseudo favorites list always favorited

Add favorited lists to the favorites pseudo namespace

Add favorite field to list

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#654
2020-09-06 14:20:16 +00:00
e5559137dd Favorite tasks (#653)
All checks were successful
continuous-integration/drone/push Build is passing
Fixed namespace tests

Add test for favorite tasks

Fix favorite tasks not being updated

Fix integration tests

Fix lint

Return a pseudo namespace and list for favorites

Make sure users can only see their favorites

Add condition show tasks from the favorites list

Regenerate swagger docs

Add favorite field to task

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#653
2020-09-05 20:16:02 +00:00
ecf09e17a8
Only check if a bucket limit is exceeded when moving a task between buckets
All checks were successful
continuous-integration/drone/push Build is passing
2020-09-04 22:01:33 +02:00