116b909d31
[skip ci] Updated swagger docs
2024-03-10 12:18:34 +00:00
e95159a33c
feat(filters): query-based filter logic ( #2177 )
...
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2177
2024-03-10 12:01:47 +00:00
c5e8ff66fb
fix(migration): updated Trello color map to import all labels ( #2178 )
...
Trello has [added 20 color variants](https://www.atlassian.com/blog/trello/20-new-trello-label-colors ) that were not imported, added them. Also added a fallback to save labels even if the color is not mapped yet.
Resolves https://community.vikunja.io/t/get-info-about-importation-trello/1968/16
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2178
Reviewed-by: konrad <k@knt.li >
Co-authored-by: Hangya <ronkayj@gmail.com >
Co-committed-by: Hangya <ronkayj@gmail.com >
2024-03-10 11:23:38 +00:00
654e95d99f
fix(filters): test fixture
2024-03-09 20:21:05 +01:00
4e6e0608c7
fix(filters): lint
2024-03-09 20:08:17 +01:00
32e1a2018a
chore: generate swagger docs
2024-03-09 19:07:31 +01:00
05d3bb4fb6
fix(filters): swagger docs for kanban buckets
2024-03-09 19:07:31 +01:00
d0b762d761
docs(filter): add filter query explanation
2024-03-09 19:07:31 +01:00
28fa2c517a
feat(filters): make new filter syntax work with Typesense
2024-03-09 19:06:48 +01:00
bc6d812eb0
fix(filters): lint
2024-03-09 19:06:35 +01:00
87c027aafd
chore(filters): cleanup old variables
2024-03-09 19:06:35 +01:00
65e1357705
fix(tests): make filter tests work again
2024-03-09 19:06:35 +01:00
eebfee73d3
fix(filter): correctly filter for buckets
2024-03-09 19:06:35 +01:00
ef1cc9720c
feat(filter): add in keyword
2024-03-09 19:06:35 +01:00
c6b682507a
feat(filter): add better error message when passing an invalid filter expression
2024-03-09 19:06:35 +01:00
9d3fb6f81d
chore(filter): cleanup
2024-03-09 19:06:35 +01:00
3ea81db836
feat(filter): migrate existing saved filters
2024-03-09 19:06:35 +01:00
76ed2cff5f
feat(filter): nesting
2024-03-09 19:06:35 +01:00
e43349618b
feat(filter): more tests
2024-03-09 19:06:35 +01:00
9624cc9e97
fix(filter): translate all tests
2024-03-09 19:06:35 +01:00
764bc15d49
fix(filter): allow filtering for "project"
2024-03-09 19:06:34 +01:00
3fc4aaa2a1
fix(filter): allow filtering on "in" condition
2024-03-09 19:06:34 +01:00
9f73e2c5f9
fix(filter): don't crash on empty filter
2024-03-09 19:06:34 +01:00
c1e137d8ee
fix(filter): make sure single filter condition works
2024-03-09 19:06:34 +01:00
de320aac72
feat(filters): basic text filter works now
2024-03-09 19:06:34 +01:00
307ffe11c4
feat(filters): very basic filter parsing
2024-03-09 19:06:31 +01:00
86983f50d4
fix(migration): Trello checklists ( #2140 )
...
Trello checklists are now properly converted to html checklists and put into the description.
Co-authored-by: kolaente <k@knt.li >
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2140
Reviewed-by: konrad <k@knt.li >
Co-authored-by: Christoph Ritzer <chris@cloumail.at >
Co-committed-by: Christoph Ritzer <chris@cloumail.at >
2024-03-09 09:01:02 +00:00
e65c3ffe6b
fix(migration): convert trello card descriptions from markdown to html
2024-03-09 09:31:57 +01:00
dc291a51f5
fix(migration): do not expire trello token
2024-03-06 15:13:54 +01:00
d69fc28125
fix(openid): OIDC teams should not have admins ( #2161 )
...
This PR fixes an issue discussed in #2152 . Before this PR, the user who triggered team creation automatically got the admin flag set for this group, which makes perfect sense for the normal UI workflow. OIDC managed teams cannot be edited in Vikunja, and they're created automatically by the first user logging in having this team assigned. This PR therefore makes sure that OIDC managed team members do not receive the admin flag.
Co-authored-by: Daniel Herrmann <daniel.herrmann1@gmail.com >
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2161
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-05 22:08:39 +00: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
f5b90517c4
fix(sentry): send unwrapped error to sentry instead of http error
2024-03-03 17:36:57 +01:00
fe27dd59ad
feat(subscription): use a recursive cte to fetch subscriptions of parent projects
...
Testing this locally resulted in improved response times from ~50ms to ~20ms when creating a project. It looks like even though the code running these sql queries uses different go routines, they affect each other (caused by IO or context switching?)
2024-03-03 15:34:18 +01:00
22933dac4a
fix(project): typo in table name
2024-03-03 12:47:00 +01:00
fe02f4da2c
fix(project): check for project nesting cycles with a single recursive cte instead of a loop
2024-03-03 11:40:43 +01:00
4bb09b69be
[skip ci] Updated swagger docs
2024-03-02 14:50:56 +00:00
379b0b24b3
fix(auth): test assertion
2024-03-02 15:38:01 +01:00
a4a0ea973a
feat(auth): update team name in Vikunja when it was changed in the openid provider
2024-03-02 15:27:15 +01:00
fc4303a778
chore(auth): add oidc suffix to openid team name in db
...
Related to https://kolaente.dev/vikunja/vikunja/issues/2150
2024-03-02 15:23:19 +01:00
4f1f96f1e9
chore(auth): refactor openid team creation
2024-03-02 15:22:37 +01:00
10ff864e0c
fix(projects): load projects only one when fetching subscriptions for a bunch of projects at once
...
This change ensures already loaded projects are passed down when fetching their subscription instead of re-loading each project with a single sql statement. When loading all projects, this meant all projects were loaded twice, which was highly inefficient. This roughly added 25ms to each request, assuming the per page limit was maxed out at 50 projects.
Empirical testing shows this change reduces load times by ~20ms. Because the request is already pretty fast, this is ~30% of the overall request time, making the loading of projects now even faster
2024-03-02 14:27:11 +01:00
a3932a0a19
fix(projects): return correct project pagination count
2024-03-02 13:30:34 +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
5b70609ba7
fix: usage of limit and order by usage in recursive cte
2024-02-28 14:35:09 +01: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
e40a0043d4
fix(migration): do not halt the whole migration when copying a background file failed
2024-02-19 19:21:06 +01:00
2dab2ccedd
feat: allow using sqlite in memory database
...
This allows running vikunja for testing purposes. You almost never want to run this in production.
2024-02-15 10:48:48 +01:00
415c6380a5
feat(api tokens): add task attachment to api scopes
...
This explicitly adds download and upload of task attachments. Because these are not handled with the usual CRUDables, they were not picked up automatically.
Resolves https://github.com/go-vikunja/vikunja/issues/112
2024-02-14 15:00:16 +01:00
162741e940
fix: lint
2024-02-13 22:24:46 +01:00