Commit Graph

57 Commits

Author SHA1 Message Date
89258476eb
Add method to get a saved filter from the lists endpoint
Some checks failed
continuous-integration/drone/pr Build is failing
2020-09-06 22:11:19 +02:00
42e60141ce
Fix docs minLength 2020-09-06 18:51:03 +02:00
6bdddd462a Favorite lists (#654)
All checks were successful
continuous-integration/drone/push Build is passing
Add tests

Remove the favorites pseudo namespace if there are no lists or tasks favorited

Regenerate swagger docs

Fix favorite lists not being updated because of nonexisting users (the favorite list does not have one)

Make the pseudo favorites list always favorited

Add favorited lists to the favorites pseudo namespace

Add favorite field to list

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#654
2020-09-06 14:20:16 +00:00
e5559137dd Favorite tasks (#653)
All checks were successful
continuous-integration/drone/push Build is passing
Fixed namespace tests

Add test for favorite tasks

Fix favorite tasks not being updated

Fix integration tests

Fix lint

Return a pseudo namespace and list for favorites

Make sure users can only see their favorites

Add condition show tasks from the favorites list

Regenerate swagger docs

Add favorite field to task

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#653
2020-09-05 20:16:02 +00:00
e4539ef232 Use db sessions for task-related things (#621)
All checks were successful
continuous-integration/drone/push Build is passing
Use db sessions for task-related things

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#621
2020-08-01 16:54:38 +00:00
4db06ba9a1 Fix creating lists with non ascii characters (#607)
All checks were successful
continuous-integration/drone/push Build is passing
Fix test name

Fix migrating lists with non utf-8 characters in their name

Fix creating lists with non utf-8 characters

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#607
2020-07-07 07:48:12 +00:00
3b2289c8fa
Fix swagger docs
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-28 16:25:46 +02:00
2820d92ab3
Expose namespace id when querying lists
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-27 23:00:15 +02:00
08205008e7 Migrate all timestamps to real iso dates (#594)
All checks were successful
continuous-integration/drone/push Build is passing
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: vikunja/api#594
2020-06-27 17:04:01 +00: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
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
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
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
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
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
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
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
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
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
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
a0c5e4e985 Update copyright year (#118)
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-09 17:33:22 +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
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
7e4deab8f7 Task collection improvements (#109)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-01 13:38:11 +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
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
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
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
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
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
87873e53c5 Fix rights checks (#70)
All checks were successful
continuous-integration/drone/push Build is passing
2019-04-01 19:48:48 +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
1b84292332 Fix lint errs (#59)
All checks were successful
continuous-integration/drone/push Build is passing
2019-02-18 19:32:41 +00:00
364a172876 Assignees optimizations (#47)
All checks were successful
the build was successful
2019-01-08 19:13:07 +00:00
607dbd6ae8 API Docs improvements (#46)
All checks were successful
the build was successful
2019-01-03 22:22:06 +00:00
0c1d786ade Exlicitly get the pseudonamespace with all shared lists (#32)
All checks were successful
the build was successful
2018-12-04 10:16:42 +00:00
cc6b35e314 Priorites for tasks (#31)
All checks were successful
the build was successful
2018-12-02 00:49:30 +00:00
007d8ec375 Fixed generation of swagger docs (#29)
All checks were successful
the build was successful
2018-12-01 01:59:17 +00:00
ce2cae9430 Move the crudhandler to own repo (#27)
All checks were successful
the build was successful
2018-11-30 23:26:56 +00:00
3f44e3b83e Change License to GPLv3 (#26)
All checks were successful
the build was successful
2018-11-26 20:17:33 +00:00
b73786f7fe Make validation less verbose (#24)
All checks were successful
the build was successful
2018-11-25 21:38:50 +00:00
d51ed8defd make validation less verbose (#23)
Some checks failed
the build failed
2018-11-24 12:44:40 +00:00