Commit Graph

616 Commits

Author SHA1 Message Date
5901cf64b4 Fix inserting task structure with related tasks (#142)
All checks were successful
continuous-integration/drone/push Build is passing
Fix typo

Fix creating related tasks

Add better logging

Fix inserting task structure with related tasks

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#142
2020-02-18 22:00:54 +00:00
f87bb6d8ef
Update theme
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-18 18:47:19 +01:00
021a715aff
Fix frontend url for wunderlist migration in docs
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-17 19:52:26 +01:00
e95a6eeb11 Explicitly disable wunderlist migration by default (#141)
All checks were successful
continuous-integration/drone/push Build is passing
Fix wunderlist callback link in docs

Explicitly disable wunderlist migration by default

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#141
2020-02-17 17:29:17 +00:00
f46e9cb64e Fixed typo in docker-compose example (#140)
Some checks reported errors
continuous-integration/drone/push Build was killed
Reviewed-on: vikunja/api#140
Reviewed-by: konrad <konrad@kola-entertainments.de>
2020-02-17 16:47:55 +00:00
ce5be947b4 Add postgres support (#135)
All checks were successful
continuous-integration/drone/push Build is passing
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
7e42724439
Added generate as a make dependency for make build
All checks were successful
continuous-integration/drone/push Build is passing
Clarify docs on building

Signed-off-by: kolaente <k@knt.li>
2020-02-15 11:35:24 +01:00
caf91d1904 Update xorm to use the new import path (#133)
All checks were successful
continuous-integration/drone/push Build is passing
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
014ec2be69 Use relative url in .gitmodules (#132)
All checks were successful
continuous-integration/drone/push Build is passing
Use relative url in .gitmodules

Co-authored-by: Simon Hilchenbach <simon@hilchenba.ch>
Reviewed-on: vikunja/api#132
Reviewed-by: konrad <konrad@kola-entertainments.de>
2020-02-13 21:18:49 +00:00
5d96c62a47
Fix time zone settings not working in Docker
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-08 23:18:41 +01:00
1c3b35fa6f
Add more logging to web handler methods
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-08 22:45:38 +01:00
d84a160054
Remove double user field
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-08 22:12:06 +01: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
f603b41d99 Better efficency for loading teams (#128)
All checks were successful
continuous-integration/drone/push Build is passing
Fix staticcheck

Better performance for getting teams on a namespace

Better performance for getting teams on a list

Fix lint

Fix swagger

Signed-off-by: kolaente <k@knt.li>

Make loading a single full team more efficent

Signed-off-by: kolaente <k@knt.li>

Make loading teams more efficent

Signed-off-by: kolaente <k@knt.li>

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#128
2020-01-27 17:28:17 +00:00
2abb858859 Add rate limit by ip for non-authenticated routes (#127)
All checks were successful
continuous-integration/drone/push Build is passing
Add rate limit by ip for non-authenticated routes

Signed-off-by: kolaente <k@knt.li>

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#127
2020-01-26 19:53:47 +00:00
a464d1760c Add logging for invalid model errors (#126)
Some checks reported errors
continuous-integration/drone/push Build was killed
Add logging for invalid model errors

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#126
2020-01-26 19:40:23 +00:00
fc65052ba0 Add config options for task attachments (#125)
Some checks reported errors
continuous-integration/drone/push Build was killed
Add config options for task attachments

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#125
2020-01-26 19:10:31 +00:00
b2b1546a8f Add config options for cors handling (#124)
Some checks reported errors
continuous-integration/drone/push Build was killed
Add config options for cors handling

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#124
2020-01-26 19:09:54 +00: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
8c33e24e92 Migration Improvements (#122)
All checks were successful
continuous-integration/drone/push Build is passing
Update swagger docs

Update docs

Let the wunderlist migrator use the registerRoutes function

Add migration status table

Add migration status

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#122
2020-01-20 19:48:46 +00:00
0654ead831
Update version link in README
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-19 22:27:19 +01:00
2b80025cc0
Update changelog for v0.10
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-01-19 22:25:38 +01:00
3081338a37 Use redis INCRBY and DECRBY when updating metrics values (#121)
All checks were successful
continuous-integration/drone/push Build is passing
Move test coverage processing to a seperate command

Use redis INCRBY and DECRBY when updating metrics values

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#121
2020-01-19 17:26:26 +00:00
9e39399689 Migration (#120)
Go mod tidy

[skip ci] Add modules/migration to docs

[skip ci] update date

fmt

Merge branch 'master' into feature/migration

# Conflicts:
#	pkg/routes/api/v1/info.go

Add docs on how to create a migrator

Add available migrators to /info endpoint

Return a message once everything was migrated successfully

Add swagger docs for wunderlist migration

Docs for migration [skip ci]

Fix due date fixture in migration test

Fix staticcheck

Fix lint

Logging and cleanup

Make the migrator work with real data

Add routes for migration

Fix misspell

Add method to store a full vikunja structure into vikunja

Add getting all data from wunderlist

Add attachment migration from wunderlist

Add done and done at to wunderlist migrator

Add todo

Add wunderlist auth url implementation

Fix lint

Finish wunderlist migration

Added all structs for the wunderlist migratior

Fix owner field being null for user shared namespaces (#119)

Update copyright year (#118)

Add option to disable registration (#117)

Added migrator interface

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#120
2020-01-19 16:52:16 +00:00
1d2cdf0fb8 Fix owner field being null for user shared namespaces (#119)
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-09 19:24:08 +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
402cef3c15 Add option to disable registration (#117)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-30 23:27:02 +00:00
b9f0ba84ab
Add motd config option to docs
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-25 17:27:10 +01:00
7cdc997191 Fix new tasks not getting a new task index (#116)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-08 15:10:34 +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
1a47d7d80d Use utf8mb4 instead of plain utf8 (#114)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-07 20:14:13 +00:00
62e550bf35 Add user token renew (#113)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-07 19:52:04 +00:00
10ab8ef4d9
Fix task collection tests
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-07 17:21:37 +01:00
d483fe8beb
Fix passing sort_by and order_by as query path arrays
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-07 16:57:19 +01:00
1555f04bd2
Fix sorting tasks by bool values
Some checks failed
continuous-integration/drone/push Build is failing
There was a bug where it would return all tasks with a true value before the ones with a false value. This is the exact opposite of what the db does, leading to wrongly sorted values
2019-12-07 16:56:18 +01:00
d8399e374c Sort Order for tasks (#110)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-07 14:30:51 +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
38653b49c7 Add tests for md5 generation (#111)
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-04 19:19:38 +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
d96831fe3a Endpoint to get tasks on a list (#108)
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-29 22:59:20 +00:00
4c55b4455c
update theme
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-25 19:12:42 +01:00
b6308f783b
Add files volume to docker compose docs
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-25 19:08:24 +01:00
843c1e5193
Update docs with a traefik configuration 2019-11-25 19:07:11 +01:00
6045f4a426
Prepare changelog & readme for 0.9 release
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-24 19:38:23 +01:00
7be14239a3
[skip ci] Add changelog in repo 2019-11-24 19:33:16 +01:00
27ba31366c Fix default logging settings (#107)
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-24 18:17:59 +00:00
9dc419e854
Add file volume to the docker image
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-24 18:36:43 +01:00
37efd5cb49
Fixed removing reminders
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-24 16:13:16 +01:00
dcec9511dc
Fixed a bug where deleting an attachment would cause a nil panic
Some checks failed
continuous-integration/drone/push Build is failing
2019-11-19 23:07:48 +01:00