kolaente
aed560339b
fix(todoist): properly import all done tasks
2022-10-01 19:29:05 +02:00
kolaente
c076f73a87
fix: make sure user searches are always case-insensitive
...
See vikunja/frontend#2196 (comment)
Resolves https://github.com/go-vikunja/frontend/issues/29
2022-10-01 17:39:08 +02:00
konrad
53419180be
feat: upgrade xorm ( #1197 )
...
Reviewed-on: vikunja/api#1197
2022-10-01 15:10:00 +00:00
renovate
c5bd09702a
chore(deps): update dependency golang to v1.19 ( #1228 )
...
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#1228
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
2022-10-01 15:05:12 +00:00
kolaente
fcb205a842
fix: use connection string for postgres
2022-10-01 16:57:06 +02:00
kolaente
b1fd13bbcb
feat: upgrade xorm
2022-10-01 16:25:29 +02:00
kolaente
878d19beb8
fix: make sure pseudo namespaces and lists always have the current user as owner
2022-10-01 15:19:46 +02:00
kolaente
96ed1e33e3
fix: don't allow setting a list namespace to 0
...
See https://github.com/go-vikunja/app/issues/13
2022-10-01 15:02:17 +02:00
kolaente
45defebcf4
fix: tasks with the same assignee as doer should not appear twice in overdue task mails
2022-09-30 18:35:40 +02:00
Luca Bernstein
3adfeb3b34
fix(namespaces): add list subscriptions ( #1254 )
...
Add list subscriptions to namespaces call to enable frontend to show subscription state correctly.
Resolves https://github.com/go-vikunja/frontend/issues/75
Reviewed-on: vikunja/api#1254
Reviewed-by: konrad <k@knt.li>
Co-authored-by: Luca Bernstein <luca@lucabernstein.com>
Co-committed-by: Luca Bernstein <luca@lucabernstein.com>
2022-09-29 09:49:24 +00:00
Luca Bernstein
54b7f7127c
fix(caldav): no failed login emails for tokens ( #1252 )
...
Prevent Vikunja from sending mail notifications for failed login attempts if CalDav token is used.
Before, as the provided password value was tested against the user password regardless of whether it was a CalDav token, it triggered a failed login attempt email every three times.
Reviewed-on: vikunja/api#1252
Reviewed-by: konrad <k@knt.li>
Co-authored-by: Luca Bernstein <luca@lucabernstein.com>
Co-committed-by: Luca Bernstein <luca@lucabernstein.com>
2022-09-27 15:12:37 +00:00
Luca Bernstein
25609db567
fix(mail): pass mail server timeout ( #1253 )
...
Fix error log for mailserver closing logic, as default timeout of 15 seconds of mail client package used triggers before our logic leading to error on close.
Resolves https://github.com/go-vikunja/api/issues/48
Reviewed-on: vikunja/api#1253
Reviewed-by: konrad <k@knt.li>
Co-authored-by: Luca Bernstein <luca@lucabernstein.com>
Co-committed-by: Luca Bernstein <luca@lucabernstein.com>
2022-09-26 16:09:39 +00:00
Arie
090c67138a
fix: preserve dates for repeating tasks ( #47 )
...
Reviewed-At: https://github.com/go-vikunja/api/pull/47
2022-09-16 17:20:08 +02:00
kolaente
aaeffe925e
fix(caldav): make sure duration and due date follow rfc5545
...
Related discussion: https://community.vikunja.io/t/error-with-davx-synchronization/810
2022-09-07 15:39:40 +02:00
kolaente
c19479757a
fix: properly log extra message
2022-09-01 14:19:00 +02:00
kolaente
beb4d07cf9
fix: don't override saved filters
2022-08-17 17:03:01 +02:00
kolaente
10ded56f66
fix: don't fail a migration if there is no filter saved
2022-08-17 12:27:03 +02:00
kolaente
0c8bed4054
fix: lint
2022-08-16 21:27:32 +00:00
kolaente
9ddd7f4889
fix: only list all users when allowed
2022-08-16 21:27:32 +00:00
kolaente
3047ccfd4a
feat: add migration to change user ids to usernames in saved filters
2022-08-16 21:27:32 +00:00
kolaente
7f28865903
feat: search by assignee username instead of id
2022-08-16 21:27:32 +00:00
kolaente
8bf0f8bb57
fix: make sure generating blur hashes for bmp, tiff and webp images works
2022-08-15 23:37:05 +02:00
kolaente
3ccc6365a6
fix: prevent moving a list into a pseudo namespace
2022-08-15 23:25:39 +02:00
kolaente
d47edac376
feat(mail): don't try to authenticate when no username and password was provided
2022-08-03 13:41:42 +02:00
kolaente
77fafd5dc3
fix: lint
2022-08-02 15:07:08 +02:00
kolaente
3688bbde20
fix: don't return email addresses from user search results
2022-08-02 15:02:15 +02:00
kolaente
c51ee94ad1
fix: return all users on a list when no search param was provided
2022-08-02 15:02:00 +02:00
kolaente
8f27e7e619
fix: properly decode params in url
...
Resolves vikunja/api#1224
2022-08-02 14:50:03 +02:00
kolaente
382a7884be
fix: make sure to use user discoverability settings when searching list users
...
Resolves vikunja/frontend#2196
2022-08-02 13:26:42 +02:00
kolaente
1feb62cc45
fix: lint
2022-07-31 15:50:38 +02:00
kolaente
dd461746a6
fix: add validation for negative repeat after values
...
Partial fix for vikunja/frontend#2179
2022-07-21 15:00:28 +02:00
kolaente
0f555b7ec7
fix: reset id sequence when importing a dump from postgres
2022-07-21 14:54:52 +02:00
kolaente
79b31673e2
fix: return 9:00 as default time for reminders if none was set
...
Resolves vikunja/api#1211
2022-07-19 16:38:48 +02:00
kolaente
6e15d46a93
fix(restore): use the correct initial migration
...
Related to vikunja/api#1199
2022-07-13 23:44:21 +02:00
kolaente
54348c5891
fix(restore): make sure to reset sequences after importing a dump when using postgres
...
Related to vikunja/api#1199
2022-07-13 23:43:53 +02:00
kolaente
596d2bf676
fix(restore): properly decode notifications json data
...
Related to vikunja/api#1199
2022-07-13 23:43:20 +02:00
kolaente
ac92499b7d
fix(caldav): make sure description is parsed correctly when multiline
...
Resolves https://github.com/go-vikunja/api/issues/35
2022-07-13 22:47:25 +02:00
kolaente
b1892eaf63
fix(mail): set server name in tls config so that sending mail works with skipTlsVerify set to false
2022-07-13 19:57:44 +02:00
kolaente
c906fc2b07
fix(mail): don't try to authenticate against the mail server when no credentials are provided
...
Related to https://github.com/go-vikunja/api/issues/34
2022-07-12 15:46:28 +02:00
kolaente
4bb77b5539
fix(mail): don't set a username by default
2022-07-12 11:49:23 +02:00
kolaente
5743a4afe5
fix: properly set tls config for mailer
2022-07-11 16:10:28 +02:00
kolaente
62325de9cd
feat: use actual uuids for tasks
2022-07-11 14:54:33 +02:00
kolaente
5cc4927b9e
fix: add missing error check
2022-07-07 23:23:15 +02:00
kolaente
2b074c60a7
fix(caldav): properly parse durations when returning VTODOs
...
Resolves https://github.com/go-vikunja/frontend/issues/55
2022-07-07 23:20:37 +02:00
kolaente
f5a4c136fb
fix: cycles in tasks array when memory caching was enabled
...
Resolves #1119
2022-07-07 18:34:49 +02:00
kolaente
230478aae9
fix: remove credential escaping for postgres connections to allow for passwords with special characters
...
Resolves https://github.com/go-vikunja/api/issues/22
2022-07-07 18:04:16 +02:00
kolaente
73c4c399e5
feat: use embed fs directly to embed the logo in mails
2022-07-07 15:54:38 +02:00
kolaente
25ffa1bc2e
fix: prevent logging openid provider errors twice
2022-07-07 15:47:37 +02:00
kolaente
4429ba2da1
fix(caldav): make sure the caldav tokens of non-local accounts are properly checked
2022-07-04 18:08:46 +02:00
kolaente
d0e09d69d0
fix: tests
2022-06-30 14:21:17 +00:00
kolaente
f30a9d1038
chore(docs): add new mailer option to docs
2022-06-30 14:21:17 +00:00
kolaente
c62e26b6fe
fix: revert renaming Attachments to Embeds everywhere
2022-06-30 14:21:17 +00:00
kolaente
f4f8450d16
feat: embed the vikunja logo as inline attachment
2022-06-30 14:21:17 +00:00
kolaente
30e0e98f77
feat: migrate away from gomail
2022-06-30 14:21:17 +00:00
kolaente
01271c4c01
feat: allow only the authors of task comments to edit them
2022-06-16 17:38:27 +02:00
kolaente
d837f8a624
fix: add missing migration
2022-06-16 16:56:35 +02:00
kolaente
8869adfc27
feat: add setting to change overdue tasks reminder email time
2022-06-16 16:20:26 +02:00
kolaente
7eb3b96a44
feat: send overdue tasks email notification at 9:00 in the user's time zone
2022-06-12 21:24:28 +02:00
kolaente
2f25b48869
feat: restrict max avatar size
...
resolves #1171
2022-06-12 18:29:12 +02:00
konrad
e52c45d5aa
fix: sort tasks logically and consistent across dbms ( #1177 )
...
This PR changes the behavoir of sorting tasks. Before, tasks were sorted with null values first. Now, null values are always sorted last which is usually what you want.
Partial fix for https://github.com/go-vikunja/frontend/issues/54
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#1177
2022-05-30 20:53:58 +00:00
grahammiln
acaa85083f
feat: ability to serve static files ( #1174 )
...
Added the configuration key, `service.staticpath`, to serve files from the configuration path on root (/).
Serving static files allows the api service to also serve the frontend content. This is a simple option for deploying Vikunja without needing any other servers or proxies.
Running a complete instance becomes:
VIKUNJA_SERVICE_STATICPATH=/path/to/frontend ./vikunja
Where `/path/to/frontend` is a copy of Vikunja's frontend static files.
## Implementation
Providing a path, via the configuration or environment, adds a static file middleware to serve the path's contents from root (/).
By default, the configuration path is empty and Vikunja's existing behaviour is unchanged.
Co-authored-by: Graham Miln <graham.miln@dssw.co.uk>
Reviewed-on: vikunja/api#1174
Reviewed-by: konrad <k@knt.li>
Co-authored-by: grahammiln <grahammiln@noreply.kolaente.de>
Co-committed-by: grahammiln <grahammiln@noreply.kolaente.de>
2022-05-23 20:49:28 +00:00
kolaente
f5ebada913
fix: set derived default values only after reading config from file or env
2022-05-23 22:12:15 +02:00
renovate
3ab0ac9f27
fix(deps): update module github.com/swaggo/swag to v1.8.2 ( #1167 )
...
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#1167
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
2022-05-15 19:57:00 +00:00
kolaente
9845fcc170
fix: add more methods to figure out the current binary location
2022-05-08 21:54:26 +02:00
tuxthepenguin
4960a498ff
Add client-cert parameters of the Go pq driver to the Vikunja config ( #1161 )
...
Co-authored-by: tuxthepenguin <tux@saturnv.uphus-internal.de>
Reviewed-on: vikunja/api#1161
Reviewed-by: konrad <k@knt.li>
Co-authored-by: tuxthepenguin <tuxthepenguin@noreply.kolaente.de>
Co-committed-by: tuxthepenguin <tuxthepenguin@noreply.kolaente.de>
2022-04-23 15:46:00 +00:00
konrad
e4b50e84a4
feat: add caldav tokens ( #1065 )
...
# Description
This PR adds API routes to create and manage caldav tokens. These tokens can be used instead of a user password - required for users who are using external auth providers and don't have a password.
Fixes #842
Frontend: vikunja/frontend#1186
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#1065
2022-03-30 18:25:56 +00:00
kolaente
de97fcbd12
fix: lint
2022-03-30 16:36:07 +00:00
kolaente
d3bdafb717
fix: decoding images for blurHash generation
2022-03-30 16:36:07 +00:00
kolaente
6b51fae093
fix: return BlurHash in unsplash search results
2022-03-30 16:36:07 +00:00
kolaente
ba2bdff391
chore: generate swagger docs
2022-03-30 16:36:07 +00:00
kolaente
7fa0865188
fix: lint
2022-03-30 16:36:07 +00:00
kolaente
6df865876d
feat: return BlurHash for unsplash search results
2022-03-30 16:36:07 +00:00
kolaente
2ec7d7a8a8
feat: save BlurHash from unsplash when selecting a photo from unsplash
2022-03-30 16:36:07 +00:00
kolaente
f83b09af59
feat: generate a BlurHash when uploading a new image
2022-03-30 16:36:07 +00:00
kolaente
362706b38d
feat: add migration to create BlurHash strings for all list backgrounds
2022-03-30 16:36:07 +00:00
konrad
0a1d8c9404
feat: add date math for filters ( #1086 )
...
This adds support for relative dates in filters, similar to the ones from [grafana](https://grafana.com/docs/grafana/latest/dashboards/time-range-controls ) or [elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/common-options.html#date-math ).
In short, it allows you to filter for due dates by passing in dates like "now - 7d" to get a date from 7 days ago.
This is a very powerful addition for saved filters as they will allow you to create filters for all kinds of stuff where you previously only could use fixed dates. Now you can for example create a saved filter for "all tasks this week".
Frontend PR: vikunja/frontend#1342
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#1086
2022-03-27 20:35:04 +00:00
kolaente
ac6818a476
fix: checking for error types
2022-03-27 17:52:33 +02:00
kolaente
5cf263a86f
feat: upgrade golangci-lint to 1.45.2
2022-03-27 16:55:37 +02:00
kolaente
b60c69c5a8
chore: cleanup namespace creation
2022-03-06 17:09:05 +01:00
kolaente
75f74b429e
fix: validate email address when creating a user via cli
2022-03-04 19:58:40 +01:00
kolaente
8bf2254f4b
fix: restoring dumps with no config file saved in them
2022-02-19 17:46:10 +01:00
kolaente
22e3f242a3
fix: disabling logging completely now works
2022-02-19 17:42:32 +01:00
kolaente
8cb92b3924
fix(dump): don't try to save a config file if none was provided and dump vikunja env variables
2022-02-19 11:32:30 +01:00
kolaente
44aaf0a4ec
fix: clarify which config file is used on startup
2022-02-19 11:32:30 +01:00
kolaente
43f1daf40c
fix: microsoft todo migration not importing all tasks
...
Previously, we did not check if a list has more tasks than the ones returned. By default, the Microsoft Graph API only returns 10 tasks. If the user had more they would not get imported.
Now we check if there are more pages with tasks and pull them all in until we have everything.
2022-02-18 20:00:42 +01:00
konrad
1322cb16d7
feat: add long-lived api tokens ( #1085 )
...
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#1085
Co-authored-by: konrad <k@knt.li>
Co-committed-by: konrad <k@knt.li>
2022-02-06 13:18:08 +00:00
shilch
f7a06e4644
Enable a list to be moved across namespaces ( #1096 )
...
Co-authored-by: Simon Hilchenbach <simon@hilchenba.ch>
Reviewed-on: vikunja/api#1096
Reviewed-by: konrad <k@knt.li>
Co-authored-by: shilch <simon@hilchenba.ch>
Co-committed-by: shilch <simon@hilchenba.ch>
2022-01-23 12:59:43 +00:00
konrad
61d49c3a56
feat: add time zone setting for reminders ( #1092 )
...
Instead of naeveily checking for all reminders due in the next minute, we now check all reminders in all time zones in the next minutes. This essentially means checking for reminders due in the next 14 or past 12 hours. We then check for each user who would receive a reminder from that result if it is actually due in their time zone.
This should prevent issues where users would get the reminder in the time zone of their server, not in their own.
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#1092
Co-authored-by: konrad <k@knt.li>
Co-committed-by: konrad <k@knt.li>
2022-01-16 11:05:56 +00:00
kolaente
a31086a7a9
fix: lint
2021-12-12 16:03:58 +01:00
kolaente
a98119f2d6
feat: save user language in the settings
2021-12-12 15:39:47 +01:00
kolaente
8bb3f8d37c
fix: importing archived lists or namespaces
2021-12-12 13:18:01 +01:00
kolaente
190a9f2a4c
fix: friendly name not getting synced on first login from openid
...
Resolves #874
2021-12-12 12:35:13 +01:00
kolaente
5c88dfe88e
fix: user deletion schedule
2021-12-12 12:29:05 +01:00
kolaente
70e005e7ce
fix: user not actually deleted
2021-12-12 12:28:18 +01:00
kolaente
f581885e65
fix: user deletion reminder emails counting up
...
Resolves #1014
2021-12-12 12:24:42 +01:00
kolaente
72d3c54efd
fix: user deletion never happens
...
Resolves #1024
2021-12-12 12:04:17 +01:00
konrad
73ee696fc3
feat: add marble avatar ( #1060 )
...
This adds the marble avatar from [boring avatars](https://github.com/boringdesigners/boring-avatars ) as an option for user avatars. Each user gets a different one (based on their id).
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#1060
Co-authored-by: konrad <k@knt.li>
Co-committed-by: konrad <k@knt.li>
2021-12-07 21:11:23 +00:00
kolaente
fd0d462bf4
fix: importing tasks from todoist without a due time set
...
Resolves #897
2021-11-23 22:29:57 +01:00
kolaente
f8a0a7e953
fix: deleting users with no namespaces
...
resolves #984
2021-11-22 22:34:20 +01:00
Joseph Kavanagh
36bf3d216a
feat: gravatar - Lowercase emails before MD5 hash ( #10 )
2021-11-16 22:10:22 +01:00