Commit Graph

246 Commits

Author SHA1 Message Date
150c3f032c
Prevent crashing when trying to register with an empty payload
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-21 20:54:46 +02:00
e4f150bbe3 Restore command (#593)
Some checks failed
continuous-integration/drone/push Build is failing
Add waiting for changes to config file

Add max size for config files

Restore files

Restore database file

Expose migrate to

Move init stuff to seperate package

Add restoring config file

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#593
2020-06-21 15:30:48 +00:00
db0126968a
Improve memory usage of dump by not loading all files in memory prior to adding them to the zip
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-20 11:48:45 +02:00
c12bac0c96
Return errors when dumping
Some checks failed
continuous-integration/drone/push Build is failing
2020-06-20 11:37:51 +02:00
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