Commit Graph

26 Commits

Author SHA1 Message Date
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
db2d868eed Return iso dates for everything date related from the api (#130)
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 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
9be5ab248c Add endpoint to get a single task (#106) 2019-11-02 20:33:18 +00:00
8948a5f219 Improve pagination (#105) 2019-10-23 21:11:40 +00:00
8d5a2685c4 Fixed labels being displayed multiple times if they were associated with more than one task (#99) 2019-09-20 15:52:09 +00:00
66cdd79666 Refactor ListTask to Task (#92) 2019-08-14 20:19:04 +00:00
be14634e1e GetUser now returns a pointer (#93) 2019-08-14 19:59:31 +00:00
f1d21ea52b
Use the auth methods to get IDs to avoid unneeded casts 2019-06-28 10:21:48 +02:00
7107d030fc Better caldav support (#73) 2019-05-22 17:48:48 +00:00
87873e53c5 Fix rights checks (#70) 2019-04-01 19:48:48 +00:00
be5a17e993 DB Migrations (#67) 2019-03-29 17:54:35 +00:00
47352d3ed4 Let rights methods return errors (#64) 2019-03-24 12:35:50 +00:00
1dc14d5ddf
Fixed labels not being queried correctly on tasks 2019-03-22 22:03:41 +01:00
c42e22f352
Fixed bulk update label tasks 2019-03-21 19:26:04 +01:00
72e64f7203
Fixed swagger docs for bulk label tasks 2019-03-21 18:42:21 +01:00
25999d9b69
Fixed swagger docs for task labels 2019-03-21 07:40:56 +01:00
1b84292332 Fix lint errs (#59) 2019-02-18 19:32:41 +00:00
19218b28a2 Refactor {List|Namespace}{User|Team} to not expose unneded values via json (#52) 2019-01-14 22:32:56 +00:00
318920fe29 Improve label handling (#48) 2019-01-09 23:08:12 +00:00
607dbd6ae8 API Docs improvements (#46) 2019-01-03 22:22:06 +00:00
6b40df50d3 Add labels to tasks (#45) 2018-12-31 01:18:41 +00:00