9624cc9e97
fix(filter): translate all tests
2024-03-09 19:06:35 +01:00
a3154e805c
fix(auth): use (issuer, name) to check for uniqueness of oidc teams ( #2152 )
...
The change introduced in #2150 introduces a bug where a Team would be re-created every time a user logs in, as the check if a team already exists was based on both the unique `oidcID` and the `name`. This PR proposes to only base the check on the ID, as this should be unique.
Co-authored-by: Daniel Herrmann <daniel.herrmann1@gmail.com >
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2152
Reviewed-by: konrad <k@knt.li >
Co-authored-by: waza-ari <daniel.herrmann@makerspace-darmstadt.de >
Co-committed-by: waza-ari <daniel.herrmann@makerspace-darmstadt.de >
2024-03-04 20:26:45 +00:00
ac8751e1be
fix(task): move done tasks to the done bucket when they are moved between projects and the new project has a done bucket
2024-03-03 18:13:47 +01:00
ed4da96ab1
feat: assign users to teams via OIDC claims ( #1393 )
...
This change adds the ability to sync teams via a custom openid claim. Vikunja will automatically create and delete teams as necessary, it will also add and remove users when they log in. These teams are fully managed by Vikunja and cannot be updated by a user.
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/1393
Resolves https://kolaente.dev/vikunja/vikunja/issues/1279
Resolves https://github.com/go-vikunja/vikunja/issues/42
Resolves https://kolaente.dev/vikunja/vikunja/issues/950
Co-authored-by: viehlieb <pf@pragma-shift.net >
Co-committed-by: viehlieb <pf@pragma-shift.net >
2024-03-02 08:47:10 +00:00
6b1e67485b
feat: fetch all projects with a recursive cte instead of recursive query
...
This change modifies the fetching of all projects to use a recursive common table expression instead of recursively calling the method.
2024-02-28 13:42:45 +01:00
225d65268d
feat(caldav): Add support for subtasks (i.e. RELATED-TO
property) in CalDAV ( #1634 )
...
As I mentioned [here](https://kolaente.dev/vikunja/api/pulls/1442#issuecomment-55215 ), this is mainly a cleanup of @zewaren 's original [PR](https://kolaente.dev/vikunja/api/pulls/1442 ).
It adds support for the `RELATED-TO` property in CalDAV's `VTODO` and the `RELTYPE=PARENT` and `RELTYPE=CHILD` relationships. In other words, it allows for `ParentTask->SubTask` relations to be handled supported through CalDAV.
In addition to the included tests, this has been tested by both @zewaren & myself with DAVx5 & Tasks (Android) and it's been working great.
Resolves https://kolaente.dev/vikunja/api/issues/1345
Co-authored-by: Miguel A. Arroyo <miguel@codeheads.dev >
Co-authored-by: Erwan Martin <public@fzwte.net >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1634
Reviewed-by: konrad <k@knt.li >
Co-authored-by: Miguel Arroyo <mayanez@noreply.kolaente.de >
Co-committed-by: Miguel Arroyo <mayanez@noreply.kolaente.de >
2023-11-10 22:44:03 +00:00
60bd5c8a79
feat: make default bucket configurable
2023-09-03 15:17:17 +02:00
bbbb45d224
feat: move done bucket setting to project
2023-09-03 15:01:35 +02:00
e3c5a93f4f
chore(api tokens): remove updated date from tokens as it can't be updated anyway
2023-09-01 11:16:36 +02:00
d9bfcdab8e
feat(api tokens): add tests
2023-09-01 10:19:31 +02:00
acb03c430e
fix(user): allow deleting a user if they have a default project
...
Resolves https://github.com/go-vikunja/api/issues/78
2023-08-23 16:10:51 +02:00
ef94e0cf86
feat(projects): don't allow deleting or archiving the default project
2023-06-07 21:29:46 +02:00
4b00f224d9
fix: reminder fixture
2023-05-24 15:52:33 +02:00
353279cbff
fix: fetch all tasks for all projects
2023-05-24 15:52:33 +02:00
746ac1098f
fix(test): adjust fixture bucket and list ids
2023-05-24 15:52:32 +02:00
3b00a5c200
fix(test): fixtures
2023-05-24 15:52:32 +02:00
03b7fa6dd3
fix(tests): subscription test fixtures
2023-05-24 15:51:56 +02:00
5e6bff20f8
fix(tests): task permissions from parents
2023-05-24 15:51:56 +02:00
03eb4ecd07
fix(tests): permission tests for parent projects
2023-05-24 15:51:56 +02:00
0cd633981a
fix(project): recursively get all users from all parent projects
2023-05-24 15:51:56 +02:00
537ba60f2d
fix(tasks): get all tasks from parent projects
2023-05-24 15:51:55 +02:00
ceaa9c0e03
feat(subscriptions): make sure all subscriptions are inherited properly
2023-05-24 15:51:55 +02:00
afe756e4c1
fix(tests): make the tests compile again
2023-05-24 15:51:55 +02:00
f45648a6f7
feat(caldav): Sync Reminders / VALARM ( #1415 )
...
Co-authored-by: ce72 <christoph.ernst72@googlemail.com >
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1415
Reviewed-by: konrad <k@knt.li >
Co-authored-by: cernst <ce72@noreply.kolaente.de >
Co-committed-by: cernst <ce72@noreply.kolaente.de >
2023-04-01 11:09:11 +00:00
3f5252dc24
feat: Add relative Reminders ( #1427 )
...
Partially resolves #1416
Co-authored-by: ce72 <christoph.ernst72@googlemail.com >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1427
Reviewed-by: konrad <k@knt.li >
Co-authored-by: cernst <ce72@noreply.kolaente.de >
Co-committed-by: cernst <ce72@noreply.kolaente.de >
2023-03-27 20:07:06 +00:00
7a9611c2da
chore: cleanup
2023-03-13 14:28:36 +01:00
06f1d2e912
fix: test fixtures
2023-03-13 14:28:07 +01:00
8f4abd2fe8
feat: rename all list files
2023-03-13 14:28:06 +01:00
a62b57ac62
feat(caldav): import caldav categories as Labels ( #1413 )
...
Resolves #1274
Co-authored-by: ce72 <christoph.ernst72@googlemail.com >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1413
Reviewed-by: konrad <k@knt.li >
Co-authored-by: cernst <ce72@noreply.kolaente.de >
Co-committed-by: cernst <ce72@noreply.kolaente.de >
2023-03-02 15:25:26 +00:00
afdceb0aff
fix(list): when list background is removed, delete file from file system and DB ( #1372 )
...
Co-authored-by: testinho.testador <testinho.testador@noreply.kolaente.de >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1372
Reviewed-by: konrad <k@knt.li >
Co-authored-by: clos <clos@noreply.kolaente.de >
Co-committed-by: clos <clos@noreply.kolaente.de >
2023-02-01 11:38:23 +00:00
47aae115df
fix(tasks): don't include undone overdue tasks from archived lists or namespaces in notification mails
...
Resolves https://kolaente.dev/vikunja/api/issues/1324
2022-12-01 18:07:30 +01:00
622f2f0562
fix: look for the default bucket based on the position instead of the index
2022-11-03 15:10:20 +01:00
27119ad6d4
User account deletion ( #937 )
...
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/937
Co-authored-by: konrad <konrad@kola-entertainments.de >
Co-committed-by: konrad <konrad@kola-entertainments.de >
2021-08-11 19:08:10 +00:00
6ccb85a0dc
Reorder tasks, lists and kanban buckets ( #923 )
...
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/923
Co-authored-by: konrad <konrad@kola-entertainments.de >
Co-committed-by: konrad <konrad@kola-entertainments.de >
2021-07-28 19:06:40 +00:00
4216ed7277
Refactor user email confirmation + password reset handling ( #919 )
...
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/919
Co-authored-by: konrad <konrad@kola-entertainments.de >
Co-committed-by: konrad <konrad@kola-entertainments.de >
2021-07-13 20:56:02 +00:00
d0c77ad1c1
Make sure list / task favorites are set per user, not per entity ( #915 )
...
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/915
Co-authored-by: konrad <konrad@kola-entertainments.de >
Co-committed-by: konrad <konrad@kola-entertainments.de >
2021-07-10 10:21:54 +00:00
d07b284ee3
Add reminders for overdue tasks ( #832 )
...
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/832
Co-authored-by: konrad <konrad@kola-entertainments.de >
Co-committed-by: konrad <konrad@kola-entertainments.de >
2021-04-11 15:08:43 +00:00
b3c604fd2f
Add link share password authentication ( #831 )
...
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/831
Co-authored-by: konrad <konrad@kola-entertainments.de >
Co-committed-by: konrad <konrad@kola-entertainments.de >
2021-04-11 13:17:50 +00:00
126f3acdc8
Enable searching users by full email or name
2021-04-07 18:28:58 +02:00
84291679cc
Add names for link shares ( #829 )
...
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/829
Co-authored-by: konrad <konrad@kola-entertainments.de >
Co-committed-by: konrad <konrad@kola-entertainments.de >
2021-04-07 12:44:39 +00:00
73f2d4532d
Make sure all tables are properly pluralized
2021-03-28 20:17:35 +02:00
d1b87d2705
Add a "done" option to kanban buckets ( #821 )
...
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/821
Co-authored-by: konrad <konrad@kola-entertainments.de >
Co-committed-by: konrad <konrad@kola-entertainments.de >
2021-03-24 20:16:35 +00:00
e7875ecb3b
Subscriptions and notifications for namespaces, tasks and lists ( #786 )
...
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/786
Co-authored-by: konrad <konrad@kola-entertainments.de >
Co-committed-by: konrad <konrad@kola-entertainments.de >
2021-02-14 19:18:14 +00:00
2d283b78c2
Fix the shared lists pseudo namespace containing owned lists
2021-01-31 13:09:14 +01:00
6bdc1fdb0d
Only send reminders for undone tasks
2021-01-31 12:54:15 +01:00
18325e964d
Add task filter for assignees ( #746 )
...
Update docs
Add filter by assignee
Fix string values
Update docs
Update docs
Make "in" task filter actually work
Add "in" filter type
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/746
Co-Authored-By: konrad <konrad@kola-entertainments.de >
Co-Committed-By: konrad <konrad@kola-entertainments.de >
2020-12-19 21:39:11 +00:00
2b5c9ae7a8
Authentication with OpenID Connect providers ( #713 )
...
Add config docs
Lint
Move provider-related stuff to separate file
Refactor getting auth providers
Fix tests
Fix user tests
Fix openid tests
Add swagger docs
Fix lint
Fix lint issues
Fix checking if the user already exists
Make sure to create a new namespace for new users
Docs
Add tests for openid
Remove unnessecary err check
Consistently return nil users if creating a new user failed
Move sending confirmation email to separate function
Better variable names
Move checks to separate functions
Refactor creating user into seperate file
Fix creating new local users
Test creating new users from different issuers
Generate a random username right away if no preferred username has been given
Add todo
Cache openid providers
Add getting int clientids
Fix migration
Move creating tokens to auth package
Add getting or creating a third party user
Add parsing claims
Add retreiving auth tokens
Add token callback from openid package
Add check for provider key
Add routes
Start adding openid auth handler
Add config for openid auth
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/713
Co-Authored-By: konrad <konrad@kola-entertainments.de >
Co-Committed-By: konrad <konrad@kola-entertainments.de >
2020-11-21 16:38:58 +00:00
0fb2edf051
Saved filters ( #655 )
...
Fix updating saved filters
Fix filter not loadable because of missing param declaration
Add fancy special cases for postgres exists in db
Add special case for postgrs json
Add read one test
Add rights tests
Fix lint
Fixed getting a single saved filter from db
Add tests for the usual crud methods
Add test stubs and TODOs
Add test for converting saved filter ids to list ids and vice versa
Add test fixture for saved filters and fix existing tests
Fix exposed json variables of filters
Fix creating saved filters table for tests
Add getting saved filters as pseudo namespace
Cleanup
Refactor getting all namespaces to use a map for easier handling of pseudo namespaces
Add custom erros for saved filters
Swagger docs
Fix lint
Add routes for saved filters
Add alias for mage build
Add method to get a saved filter from the lists endpoint
Add getting tasks from a saved filter
Add create, update, delete, read one methods
Add rights methods for saved filters
Fix docs minLength
Add saved filters column
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/655
Co-Authored-By: konrad <konrad@kola-entertainments.de >
Co-Committed-By: konrad <konrad@kola-entertainments.de >
2020-09-26 21:02:17 +00:00
6bdddd462a
Favorite lists ( #654 )
...
Add tests
Remove the favorites pseudo namespace if there are no lists or tasks favorited
Regenerate swagger docs
Fix favorite lists not being updated because of nonexisting users (the favorite list does not have one)
Make the pseudo favorites list always favorited
Add favorited lists to the favorites pseudo namespace
Add favorite field to list
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/654
2020-09-06 14:20:16 +00:00
e5559137dd
Favorite tasks ( #653 )
...
Fixed namespace tests
Add test for favorite tasks
Fix favorite tasks not being updated
Fix integration tests
Fix lint
Return a pseudo namespace and list for favorites
Make sure users can only see their favorites
Add condition show tasks from the favorites list
Regenerate swagger docs
Add favorite field to task
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/653
2020-09-05 20:16:02 +00:00