Commit Graph

13 Commits

Author SHA1 Message Date
kolaente fe27dd59ad
feat(subscription): use a recursive cte to fetch subscriptions of parent projects
continuous-integration/drone/push Build is passing Details
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
kolaente 10ff864e0c
fix(projects): load projects only one when fetching subscriptions for a bunch of projects at once
continuous-integration/drone/push Build is passing Details
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
kolaente d38050f2b8
fix(subscriptions): don't crash when a project is already deleted
continuous-integration/drone/push Build is passing Details
2024-01-26 23:53:22 +01:00
kolaente e518fb1191
chore: remove year from copyright headers
continuous-integration/drone/push Build is failing Details
Resolves vikunja/api#1483
2023-09-01 08:32:28 +02:00
kolaente b5194624e0
fix: don't try to load subscriptions for nonexistent projects
continuous-integration/drone/push Build is passing Details
2023-07-03 18:18:13 +02:00
kolaente ebc3dd2b3e
fix: lint errors 2023-05-24 15:51:57 +02:00
kolaente ceaa9c0e03
feat(subscriptions): make sure all subscriptions are inherited properly 2023-05-24 15:51:55 +02:00
kolaente fef253312c
feat(projects): cleanup namespace leftovers 2023-05-24 15:51:54 +02:00
kolaente 349e6a5905
feat: rename lists to projects 2023-03-13 14:28:06 +01:00
Luca Bernstein 3adfeb3b34 fix(namespaces): add list subscriptions (#1254)
continuous-integration/drone/push Build is failing Details
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
kolaente e23014dbe4
Fix swagger docs for create requests
continuous-integration/drone/push Build is passing Details
2021-05-26 21:56:31 +02:00
kolaente 73f2d4532d
Make sure all tables are properly pluralized
continuous-integration/drone/push Build is passing Details
2021-03-28 20:17:35 +02:00
konrad e7875ecb3b Subscriptions and notifications for namespaces, tasks and lists (#786)
continuous-integration/drone/push Build is failing Details
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#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