Commit Graph

62 Commits

Author SHA1 Message Date
Julian Gaal ce099f12ad update dependencies 2020-02-29 11:27:55 +01:00
konrad e95a6eeb11 Explicitly disable wunderlist migration by default (#141)
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
jtojnar 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
konrad 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
kolaente 1c3b35fa6f
Add more logging to web handler methods 2020-02-08 22:45:38 +01:00
kolaente 1f99238019
Update copyright header 2020-02-07 17:27:45 +01:00
konrad f603b41d99 Better efficency for loading teams (#128)
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
konrad a464d1760c Add logging for invalid model errors (#126)
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
konrad 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
konrad 3081338a37 Use redis INCRBY and DECRBY when updating metrics values (#121)
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
konrad 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
konrad a0c5e4e985 Update copyright year (#118) 2020-01-09 17:33:22 +00:00
konrad 402cef3c15 Add option to disable registration (#117) 2019-12-30 23:27:02 +00:00
kolaente b9f0ba84ab
Add motd config option to docs 2019-12-25 17:27:10 +01:00
konrad d8399e374c Sort Order for tasks (#110) 2019-12-07 14:30:51 +00:00
konrad 7e4deab8f7 Task collection improvements (#109) 2019-12-01 13:38:11 +00:00
konrad 8948a5f219 Improve pagination (#105) 2019-10-23 21:11:40 +00:00
kolaente b81cd6128a
Fixed error when setting max file size on 32-Bit systems 2019-10-18 17:30:25 +02:00
konrad 2169464983 Task Attachments (#104) 2019-10-16 20:52:29 +00:00
konrad 4327a559e5 feature/rate-limit (#91) 2019-07-21 21:27:30 +00:00
konrad 50ca8bd28e Statically compile templates in the final binary (#84) 2019-07-11 19:10:42 +00:00
kolaente f1d21ea52b
Use the auth methods to get IDs to avoid unneeded casts 2019-06-28 10:21:48 +02:00
kolaente fc3c5f2187
Updated the web handler with updated param binder 2019-06-28 09:13:17 +02:00
kolaente 5d3b6573ca
Updated echo to use the latest version 2019-06-28 09:01:50 +02:00
konrad 16825ba7c6 Update echo (#82) 2019-06-22 21:51:58 +00:00
kolaente 6b348fad04
Used one branch for both fixes in caldav-go 2019-05-24 20:01:59 +02:00
kolaente 24f06b2da5
Fixed ical-go package include 2019-05-24 19:45:33 +02:00
kolaente a7bbaf7c5f
Fixed replace directive 2019-05-24 11:57:18 +02:00
konrad 7107d030fc Better caldav support (#73) 2019-05-22 17:48:48 +00:00
konrad 3d7fd9ca20
Updated libraries 2019-05-07 21:42:24 +02:00
kolaente 6bab8fb769
Updated and re-enabled statickcheck 2019-04-23 10:34:06 +02:00
kolaente 10f80c190b
Switched to techknowlogick/xgo 2019-04-22 14:02:18 +02:00
kolaente 99f83542f6
Updated staticcheck 2019-04-22 12:59:42 +02:00
konrad 3872d1d8a7 Integration tests (#71) 2019-04-21 18:18:17 +00:00
konrad be5a17e993 DB Migrations (#67) 2019-03-29 17:54:35 +00:00
kolaente e21471a193
Update web handler (fixed) 2019-03-29 18:29:44 +01:00
konrad 8d78e473f5 Added cli for general usage of Vikunja (#66) 2019-03-24 17:15:44 +00:00
konrad 5525ee0328 Refactored canRead method to get the list before checking the right (#65) 2019-03-24 13:17:36 +00:00
konrad 47352d3ed4 Let rights methods return errors (#64) 2019-03-24 12:35:50 +00:00
konrad 11e7c071ce Updated handler config (#63) 2019-03-24 09:13:40 +00:00
konrad 1b84292332 Fix lint errs (#59) 2019-02-18 19:32:41 +00:00
konrad 2d88fad5b1 Huge improvements for docs (#58) 2019-02-17 19:53:04 +00:00
konrad 9e635ea54e Improve logging handling (#57) 2019-01-25 11:40:54 +00:00
konrad 607dbd6ae8 API Docs improvements (#46) 2019-01-03 22:22:06 +00:00
konrad 6b40df50d3 Add labels to tasks (#45) 2018-12-31 01:18:41 +00:00
konrad 018dd8164c [CI] Add more checks (#43) 2018-12-28 22:15:05 +00:00
konrad 3814b8a504 Add bulk edit for tasks (#42) 2018-12-28 21:49:46 +00:00
konrad 7322bfafb3 Fix swaggerdocs generation to produce actually valid output (#39) 2018-12-21 21:30:43 +00:00
konrad 0edc5fd315
go mod tidy 2018-12-19 22:07:23 +01:00
konrad 97febdb397 Tests can now use config files (#36) 2018-12-18 16:01:46 +00:00