Commit Graph

25 Commits

Author SHA1 Message Date
699d3d6060 Add Golangci Lint (#676)
All checks were successful
continuous-integration/drone/push Build is passing
Increase golangci timeout

Fix installing golangci-lint in ci

Remove mage targets replaced by golangci

Run golint in ci

Add goheader linter

Enable & fix more linters

Fix lint issues

Add mage target to automagically fix issues found by golangci

golangci-lint run --fix

Add golangci config

Add golangci mage target

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#676
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-10-11 20:10:03 +00:00
bd8c1c3bb7 Return rights when reading a single item (#626)
All checks were successful
continuous-integration/drone/push Build is passing
Fix lint

Update docs

Fix loading all rights (list & namespace)

Add tests

Update web framework

Make tests run again

Update all calls to CanRead methods

Update task attachment & task comment & task rights to return the max right

Update team rights to return the max right

Update namespace rights to return the max right

Update list rights to return the max right

Update link share rights to return the max right

Update label rights to return the max right

Update web dependency

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#626
2020-08-10 12:11:43 +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
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
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
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
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
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
8948a5f219 Improve pagination (#105)
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-23 21:11:40 +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
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
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
konrad
3872d1d8a7 Integration tests (#71)
All checks were successful
continuous-integration/drone/push Build is passing
2019-04-21 18:18:17 +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
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
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
607dbd6ae8 API Docs improvements (#46)
All checks were successful
the build was successful
2019-01-03 22:22:06 +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
d51ed8defd make validation less verbose (#23)
Some checks failed
the build failed
2018-11-24 12:44:40 +00:00
0c544fe355 Added validation for structs (#19)
All checks were successful
the build was successful
2018-11-16 23:17:37 +00:00
301a4eedda New structure (#7)
All checks were successful
the build was successful
2018-10-31 12:42:38 +00:00