Commit Graph

27 Commits

Author SHA1 Message Date
d28f005552 Update xorm to v1 (#323)
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
1f039c4cda Task Comments (#138)
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
ce5be947b4 Add postgres support (#135)
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)
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 2020-02-08 22:12:06 +01:00
1f99238019
Update copyright header 2020-02-07 17:27:45 +01:00
7e9446ea07 Refactor User and DB handling (#123)
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) 2020-01-09 17:33:22 +00:00
e890001ee1 Consistent copyright text in file headers (#112) 2019-12-04 19:39:56 +00:00
8948a5f219 Improve pagination (#105) 2019-10-23 21:11:40 +00:00
2169464983 Task Attachments (#104) 2019-10-16 20:52:29 +00:00
8fe33fd616 Task Relations (#103) 2019-09-25 18:44:41 +00:00
8d57923a7d Sharing of lists via public links (#94) 2019-08-31 20:56:41 +00:00
66cdd79666 Refactor ListTask to Task (#92) 2019-08-14 20:19:04 +00:00
48826a6ed7 Logger refactoring (#90) 2019-07-20 18:12:10 +00:00
1f1a079fd3 Better config handling with constants (#83) 2019-07-06 20:12:26 +00:00
24ce940885 Put reminders in an extra table (#75) 2019-05-25 07:33:57 +00:00
be5a17e993 DB Migrations (#67) 2019-03-29 17:54:35 +00:00
1b84292332 Fix lint errs (#59) 2019-02-18 19:32:41 +00:00
9e635ea54e Improve logging handling (#57) 2019-01-25 11:40:54 +00:00
6b40df50d3 Add labels to tasks (#45) 2018-12-31 01:18:41 +00:00
d39007baa0 Task assignees (#44) 2018-12-29 14:29:50 +00:00
7b439cc568
Properly init tables for redis 2018-12-14 17:45:31 +01:00
e047673c6b Add prometheus endpoint for getting metrics (#33) 2018-12-12 22:50:35 +00:00
3f44e3b83e Change License to GPLv3 (#26) 2018-11-26 20:17:33 +00:00
d232836423 Added pagination (#16) 2018-11-09 10:30:17 +00:00
301a4eedda New structure (#7) 2018-10-31 12:42:38 +00:00