vikunja/pkg/models
kolaente 0b424fe95e
fix(typesense): do not crash after creating a project when tasks are not yet indexed
Before this fix, creating a project with Typesense enabled would fail with an error because the tasks it fetches as part of that process do not have the task position property in their index. We now fall back to using the db for searching in that case.

In the long run, we should use typesense joins for the task position to make this more efficient.
2024-07-11 12:07:22 +02:00
..
api_routes.go feat(api): add bulk endpoints to api tokens 2024-06-18 14:33:57 +02:00
api_tokens.go docs(webhooks): add swagger docs for all webhook endpoints 2023-10-17 20:35:14 +02:00
api_tokens_rights.go fix: lint 2023-09-01 08:39:25 +02:00
api_tokens_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
bulk_task.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
bulk_task_test.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
error.go fix(views): integration tests 2024-03-19 00:47:51 +01:00
events.go chore(webhooks): remove WebhookEvent interface 2023-10-17 20:35:13 +02:00
export.go fix(export): make export work with project views and new task positions 2024-04-13 21:07:06 +02:00
favorites.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
kanban.go fix(views): move bucket update to extra endpoint 2024-07-02 16:34:53 +02:00
kanban_rights.go fix(views): move bucket update to extra endpoint 2024-07-02 16:34:53 +02:00
kanban_task_bucket.go fix(views): move bucket update to extra endpoint 2024-07-02 16:34:53 +02:00
kanban_task_bucket_test.go fix(views): move bucket update to extra endpoint 2024-07-02 16:34:53 +02:00
kanban_test.go fix(tasks): tests 2024-06-18 13:48:09 +02:00
label.go fix(labels): allow link shares to add existing labels to a task 2024-04-21 15:12:27 +02:00
label_rights.go fix(labels): allow link shares to add existing labels to a task 2024-04-21 15:12:27 +02:00
label_task.go fix(labels): allow link shares to add existing labels to a task 2024-04-21 15:12:27 +02:00
label_task_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
label_task_test.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
label_test.go fix(test): cast result before comparing 2024-04-21 19:43:57 +02:00
link_sharing.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
link_sharing_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
link_sharing_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
listeners.go fix(tasks): make fetching tasks in buckets via typesense work 2024-04-13 17:52:47 +02:00
main_test.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
mentions.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
mentions_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
message.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
models.go feat(views)!: move done and default bucket setting to view 2024-03-19 00:47:47 +01:00
notifications.go fix(notifications): only sanitze html content in notifications, do not convert it to markdown 2024-04-07 13:34:53 +02:00
notifications_database.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
project.go feat(views): allow reordering views 2024-06-18 16:39:52 +02:00
project_duplicate.go fix(project): return full project after duplicating it 2024-04-13 22:39:40 +02:00
project_duplicate_test.go fix(views): duplicate all views and related entities when duplicating a project 2024-03-19 00:47:51 +01:00
project_rights.go fix(views): make setting task position in saved filters work 2024-03-19 00:47:49 +01:00
project_team.go fix: lint 2023-10-10 20:35:43 +02:00
project_team_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
project_team_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
project_test.go fix(views): stable assertion for bucket in tests 2024-03-19 17:27:03 +01:00
project_users.go fix: lint 2023-10-10 20:35:43 +02:00
project_users_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
project_users_rights_test.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
project_users_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
project_view.go feat(views): allow reordering views 2024-06-18 16:39:52 +02:00
project_view_rights.go fix(filters): allow managing views for saved filters 2024-07-02 12:36:08 +02:00
reaction.go feat: emoji reactions for tasks and comments (#2196) 2024-03-12 19:25:58 +00:00
reaction_rights.go feat: emoji reactions for tasks and comments (#2196) 2024-03-12 19:25:58 +00:00
reaction_test.go feat: emoji reactions for tasks and comments (#2196) 2024-03-12 19:25:58 +00:00
rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
saved_filters.go feat(views): create task bucket relation when creating a new bucket 2024-03-19 00:47:49 +01:00
saved_filters_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
saved_filters_test.go fix(tests): make filter tests work again 2024-03-09 19:06:35 +01:00
subscription.go feat(subscription): use a recursive cte to fetch subscriptions of parent projects 2024-03-03 15:34:18 +01:00
subscription_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
subscription_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
task_assignees.go fix(typesense): correctly index assignee changes on tasks 2024-06-05 10:36:25 +02:00
task_assignees_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
task_attachment.go fix(webhooks): make sure all events with tasks have the full task 2024-01-27 00:16:17 +01:00
task_attachment_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
task_attachment_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
task_collection.go fix(typesense): do not try to sort by position when searching in a saved filter 2024-06-05 10:24:28 +02:00
task_collection_filter.go fix(filter): make sure filter values are properly escaped before executing them 2024-07-11 11:27:19 +02:00
task_collection_filter_test.go fix(filter): make sure filter values are properly escaped before executing them 2024-07-11 11:27:19 +02:00
task_collection_sort.go feat(views): save view and position in Typesense 2024-03-19 00:47:47 +01:00
task_collection_sort_test.go fix(views): test assertions 2024-03-19 00:47:51 +01:00
task_collection_test.go fix(views): test assertions 2024-03-19 00:47:51 +01:00
task_comment_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
task_comments.go fix(comments): order comments by created timestamp instead of id 2024-04-13 14:45:12 +02:00
task_comments_test.go fix: tests 2024-01-28 11:52:16 +01:00
task_overdue_reminder.go fix(projects): load projects only one when fetching subscriptions for a bunch of projects at once 2024-03-02 14:27:11 +01:00
task_overdue_reminder_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
task_position.go fix(typesense): do not crash after creating a project when tasks are not yet indexed 2024-07-11 12:07:22 +02:00
task_relation.go fix(tasks): check for cycles during creation of task relations and prevent them 2024-02-10 13:30:41 +01:00
task_relation_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
task_relation_test.go fix(tasks): check for cycles during creation of task relations and prevent them 2024-02-10 13:30:41 +01:00
task_reminder.go fix(projects): load projects only one when fetching subscriptions for a bunch of projects at once 2024-03-02 14:27:11 +01:00
task_reminder_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
task_search.go fix(tasks): limit to max 250 entries when using typesense 2024-07-11 10:06:39 +02:00
tasks.go fix(typesense): do not crash after creating a project when tasks are not yet indexed 2024-07-11 12:07:22 +02:00
tasks_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
tasks_test.go fix(views): move bucket update to extra endpoint 2024-07-02 16:34:53 +02:00
team_members.go feat: assign users to teams via OIDC claims (#1393) 2024-03-02 08:47:10 +00:00
team_members_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
team_members_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
teams.go fix(teams): fix duplicate teams being shown when new public team visibility feature is enabled (#2187) 2024-03-10 21:42:34 +00:00
teams_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
teams_rights_test.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
teams_test.go feat(teams): add public flags to teams to allow easier sharing with other teams (#2179) 2024-03-10 14:04:32 +00:00
typesense.go fix(tasks): make fetching tasks in buckets via typesense work 2024-04-13 17:52:47 +02:00
unit_tests.go fix(views): update test fixtures for new structure 2024-03-19 00:47:51 +01:00
unsplash.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
user_delete.go fix(projects): delete child projects when deleting a project 2023-12-01 17:27:40 +01:00
user_delete_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
user_project.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
user_project_test.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
users.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
webhooks.go fix(webhook): log errors in webhook response 2024-06-03 13:11:44 +02:00
webhooks_rights.go feat(webhooks): prevent link shares from managing webhooks 2023-10-17 20:35:13 +02:00