Commit Graph

1038 Commits

Author SHA1 Message Date
konrad 8d1a09b5a2 Use db sessions everywere (#750)
continuous-integration/drone/push Build is failing Details
Fix lint

Fix lint

Fix loading tasks with search

Fix loading lists

Fix loading task

Fix loading lists and namespaces

Fix tests

Fix user commands

Fix upload

Fix migration handlers

Fix all manual root handlers

Fix session in avatar

Fix session in list duplication & routes

Use sessions in migration code

Make sure the openid stuff uses a session

Add alias for db type in db package

Use sessions for file

Use a session for everything in users

Use a session for everything in users

Make sure to use a session everywhere in models

Create new session from db

Add session handling for user list

Add session handling for unsplash

Add session handling for teams and related

Add session handling for tasks and related entities

Add session handling for task reminders

Add session handling for task relations

Add session handling for task comments

Add session handling for task collections

Add session handling for task attachments

Add session handling for task assignees

Add session handling for saved filters

Add session handling for namespace and related types

Add session handling for namespace and related types

Add session handling for list users

Add session handling for list tests

Add session handling to list teams and related entities

Add session handling for link shares and related entities

Add session handling for labels and related entities

Add session handling for kanban and related entities

Add session handling for bulk task and related entities

Add session handling for lists and related entities

Add session configuration for web handler

Update web handler

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#750
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-12-23 15:32:28 +00:00
kolaente fa68e89c04
Add task filters for kanban
continuous-integration/drone/push Build is passing Details
Signed-off-by: kolaente <k@knt.li>
2020-12-22 12:38:05 +01:00
konrad 2d4e2e452c Add task filter for lists and namespaces (#748)
continuous-integration/drone/push Build is passing Details
Add more tests for getting namespaces

Fix namespaces not found

Fix namespaces not found

Make like the default

Update docs & fix docs

Enable searching namespaces by their ids

Enable searching lists by their ids

Enable searching labels by their ids

Enable searching by user ids

Update docs

Add namespace filter

Add task filter for lists

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#748
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-12-21 23:13:15 +00:00
renovate 111efd5fae Update golang.org/x/crypto commit hash to eec23a3 (#749)
continuous-integration/drone/push Build is passing Details
Update golang.org/x/crypto commit hash to eec23a3

Reviewed-on: vikunja/api#749
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-21 19:17:02 +00:00
konrad 03e4bf30c2 Add task filter for labels (#747)
continuous-integration/drone/push Build is passing Details
Update docs

Add task filter for labels

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#747
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-12-20 12:41:36 +00:00
konrad 18325e964d Add task filter for assignees (#746)
continuous-integration/drone/push Build is passing Details
Update docs

Add filter by assignee

Fix string values

Update docs

Update docs

Make "in" task filter actually work

Add "in" filter type

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#746
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-12-19 21:39:11 +00:00
konrad 92bcce3f7c Add task filter for reminders (#745)
continuous-integration/drone/push Build is passing Details
Update swagger docs about reminders

Fix filter concat for reminders

Add task filter for reminders

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#745
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-12-19 15:14:20 +00:00
kolaente 9508d0faee
Fix missing auto increments from b0d4902406 on mysql
continuous-integration/drone/push Build is passing Details
Fixes #744
2020-12-19 15:04:30 +01:00
kolaente 90817b6dae
Add "like" filter comparator
continuous-integration/drone/push Build is passing Details
2020-12-19 13:56:55 +01:00
konrad b2e4fde63a Add email reminders (#743)
continuous-integration/drone/push Build is passing Details
Fix tests

Expose email reminder setting through jwt

Set reminders on by default

Fix lint

Make user email configurable

Expose email reminder setting through /info

Don't try to send any reminders if none were found

More spacing for buttons

Fix db time format

Enable reminders by default

Make emails look more like the frontend

Add config to disable it

Add sending emaisl

Add getting all task users and reminding them

Add getting the next reminder in a cron

Move task reminder to separate file

Add cron

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#743
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-12-18 23:21:17 +00:00
kolaente 7dc2abb8e5
Make the debian repo structure for buster instead of strech
continuous-integration/drone/push Build is passing Details
2020-12-18 23:33:23 +01:00
kolaente 27c44d6d5e
Change avatar endpoint
continuous-integration/drone/push Build is failing Details
2020-12-18 23:11:11 +01:00
renovate 8a6f8922f8 Update module go-redis/redis/v8 to v8.4.4 (#742)
continuous-integration/drone/push Build is passing Details
Update module go-redis/redis/v8 to v8.4.4

Reviewed-on: vikunja/api#742
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-18 16:51:46 +00:00
konrad b0d4902406 Make sure all int64 db fields are using bigint when actually storing the data (#741)
continuous-integration/drone/push Build was killed Details
Fix lint

Fix migration query for postgres

Fix migration statements

Add migration to make all int(11) fields bigint by default

Make all int(11) fields bigint by default

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#741
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-12-18 16:51:22 +00:00
renovate f15a8baee3 Update module ulule/limiter/v3 to v3.8.0 (#699)
continuous-integration/drone/push Build is passing Details
fmt

Upgrade redis client to v8 everywhere

Update module ulule/limiter/v3 to v3.8.0

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#699
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-18 15:21:21 +00:00
konrad 0bd2632d29 Add login via email (#740)
continuous-integration/drone/push Build is passing Details
Add login via email

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#740
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-12-18 13:54:49 +00:00
konrad 8d739b2cf9 Refactor adding more details to tasks (#739)
continuous-integration/drone/push Build is passing Details
Refactor adding more details to tasks

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#739
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-12-18 13:54:36 +00:00
kolaente ccfa019870
Don't create a list identifier by default
continuous-integration/drone/push Build is passing Details
2020-12-18 13:07:34 +01:00
konrad 969e467f48 Add colors for caldav (#738)
continuous-integration/drone/push Build is passing Details
Add colors for caldav

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#738
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-12-18 12:04:27 +00:00
kolaente 5281ca548b
Fix docs about caldav tasks.org
continuous-integration/drone/push Build is failing Details
2020-12-18 12:48:42 +01:00
konrad f5b5204776 Add Microsoft Todo migration (#737)
continuous-integration/drone/push Build is passing Details
Add more logs

Fix lint

Generate docs

Add swagger docs

Add microsoft todo parsing logic

go mod tidy

Add basic test structure

Add more fields to tasks

rename microsoft todo package

Add getting microsoft todo data

Add structs and helper methods

Add microsoft todo config and routes

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#737
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-12-18 11:12:05 +00:00
renovate 25deb24849 Update module prometheus/client_golang to v1.9.0 (#735)
continuous-integration/drone/push Build is passing Details
Update module prometheus/client_golang to v1.9.0

Reviewed-on: vikunja/api#735
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-17 20:06:30 +00:00
renovate d91c2e10b0 Update golang.org/x/crypto commit hash to 9d13527 (#736)
continuous-integration/drone/push Build is passing Details
Update golang.org/x/crypto commit hash to 9d13527

Reviewed-on: vikunja/api#736
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-17 16:29:18 +00:00
konrad 9f3d898150 Add trello migration (#734)
continuous-integration/drone/push Build is passing Details
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
renovate a7c585e086 Update golang.org/x/crypto commit hash to 8b5274c (#733)
continuous-integration/drone/push Build is failing Details
Update golang.org/x/crypto commit hash to 8b5274c

Reviewed-on: vikunja/api#733
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-16 23:48:56 +00:00
konrad 00ed5884b4 Add support for migrating todoist boards (#732)
continuous-integration/drone/push Build is passing Details
Add migrating buckets to converting todoist to vikunja structure

Add buckets migration

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#732
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-12-16 14:19:09 +00:00
kolaente 90ae940a6b
Clarify docs about cors configuration
continuous-integration/drone/push Build is passing Details
2020-12-16 13:23:26 +01:00
kolaente e4de700a10
Simplify updating task reminders 2020-12-16 13:05:58 +01:00
renovate 1e020c9c50 Update golang.org/x/crypto commit hash to 5f87f34 (#729)
continuous-integration/drone/push Build is passing Details
Update golang.org/x/crypto commit hash to 5f87f34

Reviewed-on: vikunja/api#729
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-10 21:18:12 +00:00
renovate d1e7d5116a Update golang.org/x/term commit hash to 2321bbc (#731)
continuous-integration/drone/push Build is passing Details
Update golang.org/x/term commit hash to 2321bbc

Reviewed-on: vikunja/api#731
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-10 15:37:42 +00:00
renovate da064e9429 Update golang.org/x/lint commit hash to 83fdc39 (#728)
continuous-integration/drone/push Build was killed Details
Update golang.org/x/lint commit hash to 83fdc39

Reviewed-on: vikunja/api#728
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-10 15:37:22 +00:00
renovate 67faa26cbc Update golang.org/x/image commit hash to 35266b9 (#727)
continuous-integration/drone/push Build was killed Details
Update golang.org/x/image commit hash to 35266b9

Reviewed-on: vikunja/api#727
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-10 13:13:57 +00:00
renovate b0b6d5926b Update golang.org/x/term commit hash to ee85cb9 (#726)
continuous-integration/drone/push Build is passing Details
Update golang.org/x/term commit hash to ee85cb9

Reviewed-on: vikunja/api#726
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-10 12:05:59 +00:00
renovate 22b626c9e0 Update golang.org/x/sync commit hash to 09787c9 (#725)
continuous-integration/drone/push Build is failing Details
Update golang.org/x/sync commit hash to 09787c9

Reviewed-on: vikunja/api#725
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-10 09:54:29 +00:00
renovate eeb0006531 Update golang.org/x/oauth2 commit hash to 08078c5 (#722)
continuous-integration/drone/push Build was killed Details
Update golang.org/x/oauth2 commit hash to 08078c5

Reviewed-on: vikunja/api#722
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-09 22:10:52 +00:00
renovate 9db56f86ca Update module spf13/afero to v1.5.1 (#730)
continuous-integration/drone/push Build is passing Details
Update module spf13/afero to v1.5.1

Reviewed-on: vikunja/api#730
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-09 18:27:42 +00:00
renovate c71265aafe Update module spf13/afero to v1.5.0 (#724)
continuous-integration/drone/push Build is passing Details
Update module spf13/afero to v1.5.0

Reviewed-on: vikunja/api#724
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-08 17:21:55 +00:00
renovate 24c8792150 Update module getsentry/sentry-go to v0.9.0 (#723)
continuous-integration/drone/push Build is failing Details
Update module getsentry/sentry-go to v0.9.0

Reviewed-on: vikunja/api#723
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-08 14:02:53 +00:00
renovate 2f69c6342a Update module src.techknowlogick.com/xgo to v1.2.0+1.15.6 (#720)
continuous-integration/drone/push Build is passing Details
Update module src.techknowlogick.com/xgo to v1.2.0+1.15.6

Reviewed-on: vikunja/api#720
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-07 15:49:23 +00:00
renovate c99ed212da Update module swaggo/swag to v1.7.0 (#721)
continuous-integration/drone/push Build was killed Details
Update module swaggo/swag to v1.7.0

Reviewed-on: vikunja/api#721
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-07 15:49:08 +00:00
renovate c8af41738c Update golang.org/x/crypto commit hash to be400ae (#719)
continuous-integration/drone/push Build is passing Details
Update golang.org/x/crypto commit hash to be400ae

Reviewed-on: vikunja/api#719
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-03 18:39:55 +00:00
renovate f3801843a4 Update golang.org/x/oauth2 commit hash to 0b49973 (#718)
continuous-integration/drone/push Build is passing Details
Update golang.org/x/oauth2 commit hash to 0b49973

Reviewed-on: vikunja/api#718
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-03 06:47:02 +00:00
renovate 08430f1951 Update golang.org/x/crypto commit hash to c8d3bf9 (#710)
continuous-integration/drone/push Build is passing Details
Change terminal package

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

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#710
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-02 21:33:03 +00:00
renovate 80ce8f80ba Update module lib/pq to v1.9.0 (#717)
continuous-integration/drone/push Build is passing Details
Update module lib/pq to v1.9.0

Reviewed-on: vikunja/api#717
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-12-02 07:04:04 +00:00
konrad 9334b29366 Add testing endpoint to reset db tables (#716)
continuous-integration/drone/push Build is passing Details
Fix lint

Better error messages

Add docs

Add testing endpoint to reset db

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#716
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-11-28 23:08:30 +00:00
renovate 87048818ce Update golang.org/x/oauth2 commit hash to 9fd6049 (#714)
continuous-integration/drone/push Build is failing Details
Update golang.org/x/oauth2 commit hash to 9fd6049

Reviewed-on: vikunja/api#714
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
2020-11-26 20:27:19 +00:00
kolaente d2d610e0f5
Fix /info endpoint 500 error when no openid providers were configured
continuous-integration/drone/push Build is failing Details
2020-11-26 21:26:31 +01:00
kolaente ae6144c042
Fix getting current user when updating avatar or user name
continuous-integration/drone/push Build is passing Details
2020-11-21 22:02:49 +01:00
kolaente d1c65935e6
Add name field to users
continuous-integration/drone/push Build is passing Details
2020-11-21 21:51:55 +01:00
konrad 2b5c9ae7a8 Authentication with OpenID Connect providers (#713)
continuous-integration/drone/push Build is passing Details
Add config docs

Lint

Move provider-related stuff to separate file

Refactor getting auth providers

Fix tests

Fix user tests

Fix openid tests

Add swagger docs

Fix lint

Fix lint issues

Fix checking if the user already exists

Make sure to create a new namespace for new users

Docs

Add tests for openid

Remove unnessecary err check

Consistently return nil users if creating a new user failed

Move sending confirmation email to separate function

Better variable names

Move checks to separate functions

Refactor creating user into seperate file

Fix creating new local users

Test creating new users from different issuers

Generate a random username right away if no preferred username has been given

Add todo

Cache openid providers

Add getting int clientids

Fix migration

Move creating tokens to auth package

Add getting or creating a third party user

Add parsing claims

Add retreiving auth tokens

Add token callback from openid package

Add check for provider key

Add routes

Start adding openid auth handler

Add config for openid auth

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#713
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-11-21 16:38:58 +00:00