Commit Graph

392 Commits

Author SHA1 Message Date
fba333866d Add dump command (#592)
All checks were successful
continuous-integration/drone/push Build is passing
Fix files location in dump

Fix gitignore

Add docs

Add dumps to gitignore

Move dump to seperate package

logging

Dump files

Dump version

Dump database

Dump config

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#592
2020-06-19 21:29:02 +00:00
d02d413c5e Sentry integration (#591)
All checks were successful
continuous-integration/drone/push Build is passing
Use sentry echo integration to send errors

Only capture errors not already handled by echo

Add sentry panic handler

Add sentry library

Add sentry init

Add sentry config

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#591
2020-06-19 18:47:15 +00:00
021e3e307b
Remove build date from binary
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-18 19:26:53 +02:00
525a547500
Remove min length for labels, lists, namespaces, tasks and teams
Some checks failed
continuous-integration/drone/push Build is failing
2020-06-17 18:52:23 +02:00
ca4d5000ed
Add list background information when getting all lists
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-16 18:57:08 +02:00
24c1098736
Fix resetting list, label & namespace colors
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-15 11:32:07 +02:00
47d7e713af Repeat tasks after completion (#587)
All checks were successful
continuous-integration/drone/push Build is passing
Fix integration tests

Add updating start and end date from current date

Add updating reminders from current date

Add updating reminders from current date

Add updating due date from current date

Add updating flag

Add tests

Add field to repeat a task after current date

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#587
2020-06-14 11:04:38 +00:00
ab1d58959f Ensure task dates are in the future if a task has a repeating interval (#586)
All checks were successful
continuous-integration/drone/push Build is passing
Ensure task dates are in the future if a task has a repeating interval

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#586
2020-06-13 21:32:31 +00:00
f5e44d9eb3
Reorganize cmd init functions
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-13 19:44:45 +02:00
d9d00ba60c
Fix migration 20200516123847
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-13 19:33:48 +02:00
a15b1bebba
Fix migration 20200425182634
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-13 19:27:12 +02:00
a0ffe89056 List Background upload (#582)
All checks were successful
continuous-integration/drone/push Build is passing
Add filesize check when uploading a new file

Fix error 500 if the uploaded background was not an unsplash one

Add upload background setting to info endpoint

Add config docs

Fix lint

Return list background type if it was uploaded

Add file upload

Add docs

Save uploaded backgrounds as file

Add background upload handler

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#582
2020-06-11 17:31:37 +00:00
32a5dff78d
Fix migration to add position to task
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kolaente <k@knt.li>
2020-06-07 18:28:49 +02:00
d63666cece
Fix getting unsplash thumbnails for non "photo-*" urls
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-31 22:40:27 +02:00
d8a6acda96
Fix proxying unsplash images (security) 2020-05-31 22:36:25 +02:00
03ef48a0ae
Properly ping unsplash when using unsplash images
Some checks failed
continuous-integration/drone/push Build is failing
2020-05-31 22:06:59 +02:00
8f35b9d579
Set unsplash empty collection caching to one hour
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-31 20:50:51 +02:00
ebfa982c72
Fix misspell
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-31 18:12:32 +02:00
2fa4fcc202
Fix caching of initial unsplash results per page
Some checks failed
continuous-integration/drone/push Build is failing
2020-05-31 18:09:46 +02:00
ad67154e26
Add cache for initial unsplash collection
Some checks failed
continuous-integration/drone/push Build is failing
2020-05-31 17:59:39 +02:00
250c45d1b9
Remove migration dependency to models
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-30 17:09:35 +02:00
a525787ab7
Update and fix staticcheck
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-29 22:15:21 +02:00
aae1bc3cab
Load the list when setting a background
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-29 22:12:16 +02:00
42ddee8d6f
Add logging if downloading an image from unsplash fails 2020-05-29 22:11:49 +02:00
5a04f1ecf4
Add option to disable totp for everyone
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-29 17:15:59 +02:00
a0fb8bd32d
Add unsplash image proxy for images and thumbnails
Some checks failed
continuous-integration/drone/push Build is failing
2020-05-29 15:33:46 +02:00
c685250c96 Add test mail command (#571)
Some checks failed
continuous-integration/drone/push Build is failing
Add test mail command

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#571
2020-05-29 13:10:06 +00:00
2ef2c7523d
Also return unsplash info when searching
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-27 22:12:12 +02:00
e5e30d0915 List Backgrounds (#568)
Some checks failed
continuous-integration/drone/push Build is failing
Return the updated list when setting a list background

Add swagger docs for unsplash methods

Add unsplash info to search results

Fix misspell

Fix lint

Add rights check for setting and getting backgrounds

Show unsplash information when loading a single list

Make application id for pingbacks configurable

Remove old backgrounds when setting a new one

Return 404 if the list does not have a background

Implement getting list backgrounds

Implement actually setting a photo from unsplash as list background

go mod tidy

Add migration for background file id

Roughly implement setting a list background from unsplash

Implement saving a background

Add migration for unsplash photo table

Add unsplash search

Fix parsing page param

Fix parsing page param

Fix background config

Add unsplash wrapper library

Add enabled background providers to info endpoint

Add config options for backgrounds

Add unsplash background provider

Add routing handler for backgrounds

Add basic background provider interface

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#568
2020-05-26 20:07:55 +00:00
e9bc3246ce
Add todoist migrator to available migrators in info endpoint if it is enabled
Some checks failed
continuous-integration/drone/push Build is failing
2020-05-24 12:51:38 +02:00
e89e6d47d4 Todoist Migration (#566)
All checks were successful
continuous-integration/drone/push Build is passing
Add swagger docs + fix lint

Add parsing logic + fix fixtures

Fix test init

Add logging to creating labels and debug logs

Add creating labels when migrating

Finish test fixtures

Started adding fixtures for testing

Add method and test structures to convert todoist to vikunja

Add basic structure to migrate everything

Add all structs for todoist api

Add docs for config options

Add routes for todoist migrator

Add api token exchange

Add basic structure for todoist migration

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#566
2020-05-23 20:50:54 +00:00
f0b1de5ec6
Use the db logger instance for logging migration related stuff
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-23 18:33:11 +02:00
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
4472020ee9 Add workaround for timezones on windows (#151)
All checks were successful
continuous-integration/drone/push Build is passing
Add workaround for timezones on windows

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#151
2020-03-09 22:41:08 +00:00
7de26a462f
Add build time to compile flags
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-02 20:24:26 +01:00
cdd068cdb6 Add empty avatar provider (#149)
All checks were successful
continuous-integration/drone/push Build is passing
Fix lint

Add docs for avatar configuration

Add default avatar provider

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#149
2020-03-01 21:10:25 +00:00
584e3af237 Add proxying gravatar requests for user avatars (#148)
All checks were successful
continuous-integration/drone/push Build is passing
Fix getting avatar based on email

Remove avatarUrl from user struct

Fix staticcheck

Add default avatar size

Add config option for caching avatars

go mod vendor

Add swagger docs

Add proxying gravatar requests for user avatars

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#148
2020-03-01 20:30:37 +00:00
1e03c39141 expand relative path ~/.config/vikunja to $HOME/.config/vikunja (#146)
All checks were successful
continuous-integration/drone/push Build is passing
update dependencies

expand relative path ~/.config/vikunja

Authored-by: Julian Gaal <gjulian@uos.de>
Reviewed-on: vikunja/api#146
Reviewed-by: konrad <konrad@kola-entertainments.de>
2020-02-29 19:51:47 +00:00
88bf8f3df0 Fix updating dates when marking a task as done (#145)
All checks were successful
continuous-integration/drone/push Build is passing
Fix lint

Fix reminders not being updated

Fix updating dates when marking a task as done

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#145
2020-02-26 21:09:45 +00:00
c551706b52
Make sure the author is returned when creating a new comment
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-25 21:18:42 +01:00
1f039c4cda Task Comments (#138)
All checks were successful
continuous-integration/drone/push Build is passing
Add swagger docs

Add integration tests

Add tests

Add task comment test fixtures

Add config option to enable/disable task comments

Add custom error if a task comment does not exist

Fix lint

Add getting author when getting a single comment

Fix getting comments/comments author

Add rights check to ReadAll

+ actually get the comment author

Add migration and table definitions

Add routes

Add ReadOne method

Add basic crud rights

Signed-off-by: kolaente <k@knt.li>

Implement basic crudable functions for task comments

Signed-off-by: kolaente <k@knt.li>

Start adding task comments

Signed-off-by: kolaente <k@knt.li>
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#138
2020-02-19 21:57:56 +00:00
5901cf64b4 Fix inserting task structure with related tasks (#142)
All checks were successful
continuous-integration/drone/push Build is passing
Fix typo

Fix creating related tasks

Add better logging

Fix inserting task structure with related tasks

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#142
2020-02-18 22:00:54 +00:00
e95a6eeb11 Explicitly disable wunderlist migration by default (#141)
All checks were successful
continuous-integration/drone/push Build is passing
Fix wunderlist callback link in docs

Explicitly disable wunderlist migration by default

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#141
2020-02-17 17:29:17 +00:00
ce5be947b4 Add postgres support (#135)
All checks were successful
continuous-integration/drone/push Build is passing
Revert fixture fixes for postgres

Use postgres connection string with spaces instead of url

Fix label order

Make postgres tests in ci less verbose

Add sequence update script

Skip resets in postgres

Remove option to skip resets in postgres

Make postgres tests in ci verboseq

Update test fixtures database

Fix file tests on postgres

Add postgres options to sample config

Make sure tests init test fixtures before running the actual tests

Fix issues with IDs too big to fit in an int

Fix duplicate auto incremented IDs

Refactor / Fix team tests

Refactor team member tests

Fix team member create

Fix label test

Fix getting labels

Fix test fixtures for postgresql

Fix connection string params

Disable ssl mode on postgres integration tests

Disable ssl mode on postgres tests

Use sprintf to create the connection string for postgresql

fixup! Add postgres support

Add postgres support

Added generate as a make dependency for make build

Clarify docs on building

Co-authored-by: kolaente <k@knt.li>
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
Reviewed-on: vikunja/api#135
2020-02-16 21:42:04 +00:00
caf91d1904 Update xorm to use the new import path (#133)
All checks were successful
continuous-integration/drone/push Build is passing
Fix ineffassign

Fix getting all labels including the ones not associated to a task

Signed-off-by: kolaente <k@knt.li>

Fix logging sql queries

Signed-off-by: kolaente <k@knt.li>

Start fixing getting all labels

Update xormigrate

Update xorm to use the new import path

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#133
2020-02-14 16:34:25 +00:00
d84a160054
Remove double user field
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-08 22:12:06 +01:00
db2d868eed Return iso dates for everything date related from the api (#130)
All checks were successful
continuous-integration/drone/push Build is passing
Remove traces of unix timestamp

Revert renaming reminder table column

Fix staticcheck

Remove unused table call

Add migration for renaming reminders table

Fix issues with using TimeStamp

Fix lint

Updated all created / updated fields to use TimeStamps

Add comments

Convert all created / updated fields to datetime

Add time util package

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#130
2020-02-08 12:48:49 +00:00
1f99238019
Update copyright header
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-07 17:27:45 +01:00
f603b41d99 Better efficency for loading teams (#128)
All checks were successful
continuous-integration/drone/push Build is passing
Fix staticcheck

Better performance for getting teams on a namespace

Better performance for getting teams on a list

Fix lint

Fix swagger

Signed-off-by: kolaente <k@knt.li>

Make loading a single full team more efficent

Signed-off-by: kolaente <k@knt.li>

Make loading teams more efficent

Signed-off-by: kolaente <k@knt.li>

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#128
2020-01-27 17:28:17 +00:00
2abb858859 Add rate limit by ip for non-authenticated routes (#127)
All checks were successful
continuous-integration/drone/push Build is passing
Add rate limit by ip for non-authenticated routes

Signed-off-by: kolaente <k@knt.li>

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#127
2020-01-26 19:53:47 +00:00
fc65052ba0 Add config options for task attachments (#125)
Some checks reported errors
continuous-integration/drone/push Build was killed
Add config options for task attachments

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#125
2020-01-26 19:10:31 +00:00
b2b1546a8f Add config options for cors handling (#124)
Some checks reported errors
continuous-integration/drone/push Build was killed
Add config options for cors handling

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#124
2020-01-26 19:09:54 +00:00
7e9446ea07 Refactor User and DB handling (#123)
All checks were successful
continuous-integration/drone/push Build is passing
fix copyright date

Add more user tests

More user tests

More user tests

Start refactoring user tests

Docs

Fix lint

Fix db fixtures init in tests

Fix models test

Fix loading fixtures

Fix ineffasign

Fix lint

Fix integration tests

Fix init of test engine creation

Fix user related tests

Better handling of creating test enging

Moved all fixtures to db package

Moved all fixtures to db package

Moved user related stuff to seperate package

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#123
2020-01-26 17:08:06 +00:00
8c33e24e92 Migration Improvements (#122)
All checks were successful
continuous-integration/drone/push Build is passing
Update swagger docs

Update docs

Let the wunderlist migrator use the registerRoutes function

Add migration status table

Add migration status

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#122
2020-01-20 19:48:46 +00:00
3081338a37 Use redis INCRBY and DECRBY when updating metrics values (#121)
All checks were successful
continuous-integration/drone/push Build is passing
Move test coverage processing to a seperate command

Use redis INCRBY and DECRBY when updating metrics values

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#121
2020-01-19 17:26:26 +00:00
9e39399689 Migration (#120)
Go mod tidy

[skip ci] Add modules/migration to docs

[skip ci] update date

fmt

Merge branch 'master' into feature/migration

# Conflicts:
#	pkg/routes/api/v1/info.go

Add docs on how to create a migrator

Add available migrators to /info endpoint

Return a message once everything was migrated successfully

Add swagger docs for wunderlist migration

Docs for migration [skip ci]

Fix due date fixture in migration test

Fix staticcheck

Fix lint

Logging and cleanup

Make the migrator work with real data

Add routes for migration

Fix misspell

Add method to store a full vikunja structure into vikunja

Add getting all data from wunderlist

Add attachment migration from wunderlist

Add done and done at to wunderlist migrator

Add todo

Add wunderlist auth url implementation

Fix lint

Finish wunderlist migration

Added all structs for the wunderlist migratior

Fix owner field being null for user shared namespaces (#119)

Update copyright year (#118)

Add option to disable registration (#117)

Added migrator interface

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#120
2020-01-19 16:52:16 +00:00
1d2cdf0fb8 Fix owner field being null for user shared namespaces (#119)
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-09 19:24:08 +00:00
a0c5e4e985 Update copyright year (#118)
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-09 17:33:22 +00:00
402cef3c15 Add option to disable registration (#117)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-30 23:27:02 +00:00
7cdc997191 Fix new tasks not getting a new task index (#116)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-08 15:10:34 +00:00
720df3cbed Add task identifier (#115)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-07 22:28:45 +00:00
1a47d7d80d Use utf8mb4 instead of plain utf8 (#114)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-07 20:14:13 +00:00
62e550bf35 Add user token renew (#113)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-07 19:52:04 +00:00
10ab8ef4d9
Fix task collection tests
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-07 17:21:37 +01:00
d483fe8beb
Fix passing sort_by and order_by as query path arrays
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-07 16:57:19 +01:00
1555f04bd2
Fix sorting tasks by bool values
Some checks failed
continuous-integration/drone/push Build is failing
There was a bug where it would return all tasks with a true value before the ones with a false value. This is the exact opposite of what the db does, leading to wrongly sorted values
2019-12-07 16:56:18 +01:00
d8399e374c Sort Order for tasks (#110)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-07 14:30:51 +00:00
e890001ee1 Consistent copyright text in file headers (#112)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-04 19:39:56 +00:00
38653b49c7 Add tests for md5 generation (#111)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-04 19:19:38 +00:00
7e4deab8f7 Task collection improvements (#109)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-01 13:38:11 +00:00
d96831fe3a Endpoint to get tasks on a list (#108)
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-29 22:59:20 +00:00
27ba31366c Fix default logging settings (#107)
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-24 18:17:59 +00:00
37efd5cb49
Fixed removing reminders
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-24 16:13:16 +01:00
dcec9511dc
Fixed a bug where deleting an attachment would cause a nil panic
Some checks failed
continuous-integration/drone/push Build is failing
2019-11-19 23:07:48 +01:00
c203d73b33
Fixed a bug where adding assignees or reminders via an update would re-create them and not respect already inserted ones, leaving a lot of garbage
Some checks failed
continuous-integration/drone/push Build is failing
2019-11-03 23:08:26 +01:00
9be5ab248c Add endpoint to get a single task (#106)
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-02 20:33:18 +00:00
8948a5f219 Improve pagination (#105)
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-23 21:11:40 +00:00
82f11c4ec2
Fixed not getting all labels when retrieving a list with all tasks
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-20 17:56:53 +02:00
eb279fdba3
Refactored getting task IDs for labels
Some checks failed
continuous-integration/drone/push Build is failing
2019-10-20 17:55:54 +02:00
854fde1e4c
Fixed panic when using link share and metrics
Some checks failed
continuous-integration/drone/push Build is failing
2019-10-19 22:34:33 +02:00
b81cd6128a
Fixed error when setting max file size on 32-Bit systems
Some checks failed
continuous-integration/drone/push Build is failing
2019-10-18 17:30:25 +02:00
2169464983 Task Attachments (#104)
Some checks failed
continuous-integration/drone/push Build is failing
2019-10-16 20:52:29 +00:00
e2f481a6e5
Fixed migration for task relations
Some checks failed
continuous-integration/drone/push Build is failing
2019-10-13 11:44:56 +02:00
8fe33fd616 Task Relations (#103)
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-25 18:44:41 +00:00
1272255975 Added percent done to tasks (#102)
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-21 10:52:10 +00:00
2f267f3f68 Moved teams_{namespace|list}_* to {namespace|list}_teams_* for better consistency (#101)
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-20 16:39:02 +00:00
694fc62495 Refactored getting all lists for a namespace (#100)
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-20 16:16:31 +00:00
8d5a2685c4 Fixed labels being displayed multiple times if they were associated with more than one task (#99)
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-20 15:52:09 +00:00
71ef86e0df Added more infos to a link share auth (#98)
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-08 19:22:54 +00:00
6140920cb8 Fixed rate limit panic when authenticatin with a link share auth token (#97)
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-08 19:11:42 +00:00
fdd1624121 Small link share fixes (#96)
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-07 13:19:23 +00:00
1d98e4cabe
Fixed metrics on/off setting
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-01 18:39:03 +02:00
43676f045c
Switched default logger to stdout instead of stderr
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-01 18:23:35 +02:00
ba7db545fe
Added extra depth to logging to correctly show the functions calling the logger in logs
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-01 17:56:22 +02:00
8d57923a7d Sharing of lists via public links (#94)
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-31 20:56:41 +00:00
66cdd79666 Refactor ListTask to Task (#92)
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-14 20:19:04 +00:00
be14634e1e GetUser now returns a pointer (#93)
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-14 19:59:31 +00:00
208eb4e68c
Fixed swaggerdocs of description fields
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-21 23:57:19 +02:00
10fbbe1db6
Moved metrics init to seperate methods
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-21 23:44:12 +02:00
4327a559e5 feature/rate-limit (#91)
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-21 21:27:30 +00:00
48826a6ed7 Logger refactoring (#90)
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-20 18:12:10 +00:00
ef0e7c9769 Use longtext instead of varchar(1000) on description fields (#88)
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-18 19:56:34 +00:00
12eaddc8ee Added http endpoint to list all users on a list (#87)
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-18 16:38:21 +00:00
b63928850a Simplify structure by having less files (#86)
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-16 14:15:40 +00:00
e2d9de191d /info endpoint (#85)
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-15 22:54:38 +00:00
50ca8bd28e Statically compile templates in the final binary (#84)
Some checks failed
continuous-integration/drone/push Build is failing
2019-07-11 19:10:42 +00:00
1f1a079fd3 Better config handling with constants (#83)
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-06 20:12:26 +00:00
f1d21ea52b
Use the auth methods to get IDs to avoid unneeded casts
All checks were successful
continuous-integration/drone/push Build is passing
2019-06-28 10:21:48 +02:00
4e8c2a7bf6
Fixed avatar url when logging in
All checks were successful
continuous-integration/drone/push Build is passing
2019-06-06 12:28:08 +02:00
9bc09ebbe5
Fixed user sharing not working
All checks were successful
continuous-integration/drone/push Build is passing
2019-06-04 19:45:09 +02:00
7acf318b28 Fixed duedate spelling issue (#79)
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-31 08:10:56 +00:00
f638fae4fd Add the md5-hashed user email to user objects for use with gravatar (#78)
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-31 07:24:59 +00:00
85d08e5697 Fixed check if the user really exists before updating/deleting its rights (#77)
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-25 10:16:55 +00:00
50d1f29125 Use the username instead of a user when adding a user to a team or giving it rights (#76)
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-25 09:47:16 +00:00
24ce940885 Put reminders in an extra table (#75)
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-25 07:33:57 +00:00
802a13cffd Added settings for max open/idle connections and max connection lifetime (#74)
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-25 05:49:52 +00:00
24f06b2da5
Fixed ical-go package include 2019-05-24 19:45:33 +02:00
7107d030fc Better caldav support (#73)
Some checks failed
continuous-integration/drone/push Build is failing
2019-05-22 17:48:48 +00:00
de24fcc2f8
Fixed metrics endpoint not working
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-12 16:49:16 +02:00
3d7fd9ca20
Updated libraries
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-07 21:42:24 +02:00
2b160b73c3 Fix tests (#72)
All checks were successful
continuous-integration/drone/push Build is passing
2019-04-30 18:36:39 +00:00
24704bd4ed
Added color field to tasks
Some checks failed
continuous-integration/drone/push Build is failing
2019-04-30 11:26:37 +02:00
d404716342
Fixed integration tests 2019-04-24 22:58:20 +02:00
7e38937efc
Fixed lint
Some checks failed
continuous-integration/drone/push Build is failing
2019-04-23 21:58:42 +02:00
ed671baf8f
Fixed listID not being returned in tasks
Some checks failed
continuous-integration/drone/push Build is failing
2019-04-23 21:53:37 +02:00
6bab8fb769
Updated and re-enabled statickcheck 2019-04-23 10:34:06 +02:00
konrad
3872d1d8a7 Integration tests (#71)
All checks were successful
continuous-integration/drone/push Build is passing
2019-04-21 18:18:17 +00:00
93dbaea303
Fixed priority not updating when set to 0
All checks were successful
continuous-integration/drone/push Build is passing
2019-04-05 12:40:40 +02:00
2d9d27f63c
Fixed getting lists by namespace
All checks were successful
continuous-integration/drone/push Build is passing
2019-04-02 10:53:16 +02:00
87873e53c5 Fix rights checks (#70)
All checks were successful
continuous-integration/drone/push Build is passing
2019-04-01 19:48:48 +00:00
19faee0102 Hide a users email everywhere (#69)
All checks were successful
continuous-integration/drone/push Build is passing
2019-04-01 18:19:55 +00:00
be5a17e993 DB Migrations (#67)
All checks were successful
continuous-integration/drone/push Build is passing
2019-03-29 17:54:35 +00:00
8d78e473f5 Added cli for general usage of Vikunja (#66)
All checks were successful
continuous-integration/drone/push Build is passing
2019-03-24 17:15:44 +00:00
5525ee0328 Refactored canRead method to get the list before checking the right (#65)
All checks were successful
continuous-integration/drone/push Build is passing
2019-03-24 13:17:36 +00:00
47352d3ed4 Let rights methods return errors (#64)
All checks were successful
continuous-integration/drone/push Build is passing
2019-03-24 12:35:50 +00:00
11e7c071ce Updated handler config (#63)
All checks were successful
continuous-integration/drone/push Build is passing
2019-03-24 09:13:40 +00:00
1dc14d5ddf
Fixed labels not being queried correctly on tasks
All checks were successful
continuous-integration/drone/push Build is passing
2019-03-22 22:03:41 +01:00
c42e22f352
Fixed bulk update label tasks
All checks were successful
continuous-integration/drone/push Build is passing
2019-03-21 19:26:04 +01:00
72e64f7203
Fixed swagger docs for bulk label tasks
All checks were successful
continuous-integration/drone/push Build is passing
2019-03-21 18:42:21 +01:00
25999d9b69
Fixed swagger docs for task labels
All checks were successful
continuous-integration/drone/push Build is passing
2019-03-21 07:40:56 +01:00
eb4d38b5b8 Fixed rights check on lists and namespaces (#62)
Some checks reported errors
continuous-integration/drone/push Build was killed
2019-03-08 21:31:37 +00:00
65f428fe78
Updated swagger docs
All checks were successful
continuous-integration/drone/push Build is passing
2019-03-08 15:41:46 +01:00
1b84292332 Fix lint errs (#59)
All checks were successful
continuous-integration/drone/push Build is passing
2019-02-18 19:32:41 +00:00
15ef6deabc Use query params to sort tasks instead of url params (#61)
All checks were successful
continuous-integration/drone/push Build is passing
2019-02-18 18:06:15 +00:00
2d88fad5b1 Huge improvements for docs (#58)
All checks were successful
continuous-integration/drone/push Build is passing
2019-02-17 19:53:04 +00:00
5e7c9b9eb9
Added possible fix for logging when nothing is set
All checks were successful
continuous-integration/drone/push Build is passing
2019-01-25 21:09:24 +01:00
9e635ea54e Improve logging handling (#57)
All checks were successful
continuous-integration/drone/push Build is passing
2019-01-25 11:40:54 +00:00
75431e1ca5 Rights performance improvements for lists and namespaces (#54)
Some checks failed
continuous-integration/drone/push Build is failing
2019-01-21 22:08:04 +00:00
08cbd18bc5 Added more config paths (#55)
All checks were successful
continuous-integration/drone/push Build is passing
2019-01-20 17:13:21 +00:00
19218b28a2 Refactor {List|Namespace}{User|Team} to not expose unneded values via json (#52)
Some checks are pending
continuous-integration/drone/push Build is passing
2019-01-14 22:32:56 +00:00
17fefae8bb Simplify list rights check (#50)
Some checks are pending
continuous-integration/drone/push Build is passing
2019-01-14 21:49:50 +00:00