Commit Graph

57 Commits

Author SHA1 Message Date
56625b0b90
fix: lint 2023-10-10 20:35:43 +02:00
378759e06d
fix(build): don't remove swagger files when running build:clean step 2023-09-12 13:12:30 +02:00
2c0c3ea24e
fix(build): don't require swagger to build 2023-09-06 21:08:09 +02:00
ae766f52c7
fix(build): don't generate swagger files when building 2023-09-06 18:36:08 +02:00
107b0b791f
fix(swagger): add generated swagger docs to repo 2023-09-06 18:01:45 +02:00
985233ac38
fix(build): don't run go mod commands when generating swagger docs 2023-09-06 16:41:39 +02:00
06bc92556e
fix(docs): add empty swagger file so that the package exists 2023-09-06 13:13:51 +02:00
e518fb1191
chore: remove year from copyright headers
Resolves vikunja/api#1483
2023-09-01 08:32:28 +02:00
50b0d3f95c
chore(deps): update golangci 2023-06-05 18:07:12 +02:00
47e42238ef
fix: make sure Vikunja is buildable without swagger docs present 2023-04-06 12:11:31 +02:00
01fb738dc8
fix(build): make sure the docker image can access go tools 2023-04-02 18:55:30 +02:00
efa24cec44
feat: generate swagger docs at build time 2023-04-02 16:52:54 +02:00
4d5ad8f50e
chore(deps): update golangci-lint to 1.52.1 2023-03-24 19:17:45 +01:00
c6769d407e
chore(deps): update golangci-lint to 1.51.2 2023-02-20 15:17:49 +01:00
fdbe110945
chore(deps): upgrade golangci-lint to 1.51.0 2023-02-02 11:16:07 +01:00
0104aa504b
fix(ci): pin nfpm container version and binary location 2022-12-19 15:37:01 +01:00
a6e214b654
feat: use docker buildx to build multiarch images 2022-11-12 14:30:48 +01:00
0d8451ab6e
fix(ci): make sure release zip files have a .zip ending 2022-10-02 16:30:06 +02:00
c5bd09702a chore(deps): update dependency golang to v1.19 (#1228)
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#1228
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
2022-10-01 15:05:12 +00:00
d8f387f796
fix: don't try to compress riscv64 binaries in releases 2022-09-07 16:38:43 +02:00
8f473481ac
fix(mage): handle different types of errors 2022-08-03 17:11:17 +02:00
430057a404
chore: update golangci-lint 2022-08-03 15:20:11 +02:00
26e2d0bdde
fix: increase test timeout 2022-08-02 22:49:48 +02:00
k2s
172a6214d7 fix: VIKUNJA_SERVICE_JWT_SECRET should be VIKUNJA_SERVICE_JWTSECRET (#1184)
Reviewed-on: vikunja/api#1184
Reviewed-by: konrad <k@knt.li>
Co-authored-by: k2s <k2s@noreply.kolaente.de>
Co-committed-by: k2s <k2s@noreply.kolaente.de>
2022-06-12 12:50:43 +00:00
f7a06e4644 Enable a list to be moved across namespaces (#1096)
Co-authored-by: Simon Hilchenbach <simon@hilchenba.ch>
Reviewed-on: vikunja/api#1096
Reviewed-by: konrad <k@knt.li>
Co-authored-by: shilch <simon@hilchenba.ch>
Co-committed-by: shilch <simon@hilchenba.ch>
2022-01-23 12:59:43 +00:00
73a99ebd92
chore(mage): don't set api packages when they are not used 2021-10-02 15:40:56 +02:00
bb086eb9f8
feat: add better error logs for mage commands 2021-09-24 20:03:38 +02:00
77c2b77079
Show config full paths and env variables with config options 2021-08-11 18:20:34 +02:00
d34c85d544
Increase test timeout 2021-08-02 13:13:24 +02:00
647f3cb9f1
Increase test timeout 2021-08-02 13:02:49 +02:00
9dc72c5c98
Use golang's tzdata package to handle time zones 2021-05-07 12:18:21 +02:00
d7f3c653f9
Remove unused tools from tools.go 2021-03-28 17:24:56 +02:00
2178166ece Add crud endpoints for notifications (#801)
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#801
Co-authored-by: konrad <konrad@kola-entertainments.de>
Co-committed-by: konrad <konrad@kola-entertainments.de>
2021-02-21 14:50:34 +00:00
86a9d2e9f3
Explicitly set darwin-10.15 when building binaries 2021-02-18 21:35:45 +01:00
e7875ecb3b Subscriptions and notifications for namespaces, tasks and lists (#786)
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#786
Co-authored-by: konrad <konrad@kola-entertainments.de>
Co-committed-by: konrad <konrad@kola-entertainments.de>
2021-02-14 19:18:14 +00:00
ec7becd426
Check if we're on main and change the version name accordingly if that's the case 2021-02-13 16:32:26 +01:00
02b6dbd07d
Fix unstable version build file names 2021-02-10 19:56:51 +01:00
015ca310e9 Add notifications package for easy sending of notifications (#779)
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#779
Co-authored-by: konrad <konrad@kola-entertainments.de>
Co-committed-by: konrad <konrad@kola-entertainments.de>
2021-02-07 21:05:09 +00:00
0ab9ce9ec4 Add events (#777)
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#777
Co-authored-by: konrad <konrad@kola-entertainments.de>
Co-committed-by: konrad <konrad@kola-entertainments.de>
2021-02-02 22:48:37 +00:00
c4a71016b8
Update copyright year 2021-02-02 20:19:13 +01:00
9baf6d39bd
Change license to AGPLv3 2020-12-23 16:41:52 +01:00
7dc2abb8e5
Make the debian repo structure for buster instead of strech 2020-12-18 23:33:23 +01:00
9f3d898150 Add trello migration (#734)
Fix tests for background images

Generate docs

Fix lint

Do the swag

Add more logging

Remove the default bucket if it was empty

Add launch.json

Make importing backgrounds work

Add comment

Fix getting task attachments

Fix getting trello token

Add trello migration routes and status

Add support for converting checklists

Add test for attachments

Add the actual conversion

Add Trello conversion test

Add migration function stubs

Add basic trello migration structure

Add trello migration config

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#734
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-12-17 13:44:04 +00:00
004e432e7c
Fix nfpm command in drone 2020-10-19 07:58:24 +02:00
618353bf95 Use nfpm to build deb, rpm and apk packages (#689)
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
1b21339bf8 Generate config docs from sample config (#684)
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
699d3d6060 Add Golangci Lint (#676)
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
0fb2edf051 Saved filters (#655)
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
5317a89623
Make sure to copy the permissions as well when moving files 2020-09-04 14:00:54 +02:00
313289d28d
Add rootpath to deb command to not include everything in the deb file 2020-09-04 10:42:32 +02:00