1
0
Commit Graph

412 Commits

Author SHA1 Message Date
7141050f8b Make sure the metrics map accesses only happen explicitly 2020-07-02 21:16:39 +02:00
f57b7e989f Fix updating the index when moving a task 2020-07-01 16:54:18 +02:00
556ccd68c1 Set the list identifier when creating a new task 2020-07-01 11:17:18 +02:00
1181039249 Duplicate Lists (#603)
Fix buckets not being duplicated correctly

Fix list id param not working

Add api endpoint

Add swagger docs

Add comment about test

Make duplicating actually work

Add copying link shares

Add copying list backgrounds

Add copying task relations

Add copying task comments

Add copying assignees

Add copying task task label relations

Add copying task attachments

Add duplicating tasks

Add basic struct and methods

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/603
2020-06-30 20:53:14 +00:00
9750a23dbe Make the db timezone migration mysql compatible 2020-06-30 11:29:47 +02:00
1c93aab7e0 Fix not loading timezones on all operating systems 2020-06-30 09:55:46 +02:00
3b2289c8fa Fix swagger docs 2020-06-28 16:25:46 +02:00
2820d92ab3 Expose namespace id when querying lists 2020-06-27 23:00:15 +02:00
08205008e7 Migrate all timestamps to real iso dates (#594)
Fix query param name

Add option to include null results when filtering

Always set db time to gmt

Fix null filter

Fix timezone setting for todoist parsing

Fix timezone setting for wunderlist parsing

Fix import

Fix caldav reminder parsing

Use timezone from config

Add error and test for invalid filter values

Fix integration tests

Remove task collection date hack

Fix task filter

Fix lint

Fix tests and fixtures for date timezone stuff

Properly set timezone

Change fixtures time zone to gmt

Set db timezone

Set created and updated timestamps for all fixtures

Fix lint

Fix test fixtures

Fix misspell

Fix test fixtures

Partially fix tests

Remove timeutil package

Remove adding _unix suffix hack

Remove _unix suffix

Move all timeutil.TimeStamp to time.Time

Remove all Unix suffixes in field names

Add better error messages when running migrations

Make sure to not migrate 0 unix timestamps to 1970 iso dates

Add migration script for sqlite

Add converting sqlite values

Convert 0 unix timestamps to null in postgres

Convert 0 to null in timestamps

Automatically rename _unix suffix

Add all tables and columns for migration

Fix sql migration query for mysql

Fail with an error if trying to use an unsupported dbms

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/594
2020-06-27 17:04:01 +00:00
e17cac854a Fix removing existing sqlite files 2020-06-27 16:34:53 +02:00
974d028e51 Fix sqlite db not working when creating a new one 2020-06-26 19:45:19 +02:00
be11362533 Fix searching for unsplash pictures with words that contain a space 2020-06-26 00:37:10 +02:00
912abb3a10 Fix namespace title not being updated 2020-06-26 00:03:28 +02:00
0add1dce01 Add go version to version command 2020-06-25 15:59:06 +02:00
c8605d6b3d Enable upload backgrounds by default 2020-06-23 22:53:23 +02:00
caee123f9d Add better errors if the sqlite db file is not writable 2020-06-23 11:21:42 +02:00
150c3f032c Prevent crashing when trying to register with an empty payload 2020-06-21 20:54:46 +02:00
e4f150bbe3 Restore command (#593)
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: https://kolaente.dev/vikunja/api/pulls/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 2020-06-20 11:48:45 +02:00
c12bac0c96 Return errors when dumping 2020-06-20 11:37:51 +02:00
fba333866d Add dump command (#592)
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: https://kolaente.dev/vikunja/api/pulls/592
2020-06-19 21:29:02 +00:00
d02d413c5e Sentry integration (#591)
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: https://kolaente.dev/vikunja/api/pulls/591
2020-06-19 18:47:15 +00:00
021e3e307b Remove build date from binary 2020-06-18 19:26:53 +02:00
525a547500 Remove min length for labels, lists, namespaces, tasks and teams 2020-06-17 18:52:23 +02:00
ca4d5000ed Add list background information when getting all lists 2020-06-16 18:57:08 +02:00
24c1098736 Fix resetting list, label & namespace colors 2020-06-15 11:32:07 +02:00
47d7e713af Repeat tasks after completion (#587)
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: https://kolaente.dev/vikunja/api/pulls/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)
Ensure task dates are in the future if a task has a repeating interval

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/586
2020-06-13 21:32:31 +00:00
f5e44d9eb3 Reorganize cmd init functions 2020-06-13 19:44:45 +02:00
d9d00ba60c Fix migration 20200516123847 2020-06-13 19:33:48 +02:00
a15b1bebba Fix migration 20200425182634 2020-06-13 19:27:12 +02:00
a0ffe89056 List Background upload (#582)
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: https://kolaente.dev/vikunja/api/pulls/582
2020-06-11 17:31:37 +00:00
32a5dff78d Fix migration to add position to task
Signed-off-by: kolaente <k@knt.li>
2020-06-07 18:28:49 +02:00
d63666cece Fix getting unsplash thumbnails for non "photo-*" urls 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 2020-05-31 22:06:59 +02:00
8f35b9d579 Set unsplash empty collection caching to one hour 2020-05-31 20:50:51 +02:00
ebfa982c72 Fix misspell 2020-05-31 18:12:32 +02:00
2fa4fcc202 Fix caching of initial unsplash results per page 2020-05-31 18:09:46 +02:00
ad67154e26 Add cache for initial unsplash collection 2020-05-31 17:59:39 +02:00
250c45d1b9 Remove migration dependency to models 2020-05-30 17:09:35 +02:00
a525787ab7 Update and fix staticcheck 2020-05-29 22:15:21 +02:00
aae1bc3cab Load the list when setting a background 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 2020-05-29 17:15:59 +02:00
a0fb8bd32d Add unsplash image proxy for images and thumbnails 2020-05-29 15:33:46 +02:00
c685250c96 Add test mail command (#571)
Add test mail command

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/571
2020-05-29 13:10:06 +00:00
2ef2c7523d Also return unsplash info when searching 2020-05-27 22:12:12 +02:00
e5e30d0915 List Backgrounds (#568)
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: https://kolaente.dev/vikunja/api/pulls/568
2020-05-26 20:07:55 +00:00
e9bc3246ce Add todoist migrator to available migrators in info endpoint if it is enabled 2020-05-24 12:51:38 +02:00