1
0

33 Commits

Author SHA1 Message Date
kolaente
a0ad6e7d28
fix(typesense): use typesense bulk insert, log all errors
(cherry picked from commit 207b88a286dc9881034af9d9d117d67e8ae3c91f)
2024-09-20 14:28:02 +02:00
kolaente
940d149e2a
fix(typesense): force position to always be float instead of auto-inferring
This fixes an issue where it would be impossible to update a task in Typesense when the position for a view of it was previously saved as int64. This happened because the field is created per view on demand and its type is automatically inferred from the data saved. Now, when the first value for a particular position field is a float which could as well be an int (for example, 42.0), that field gets created as an int64 instead of float. Subsequent tries to save a float into that field will then fail.

Additionally, errors about this are silently discarded when using bulk insert. That's why the problem was not really debuggable at first.

(cherry picked from commit 50a0674835c65b3eb2f0e1f2dd8ae53e9d997eda)
2024-09-20 14:28:00 +02:00
kolaente
802f661f0d
fix(typesense): index tasks one by one
(cherry picked from commit 8181829c9efde3b210d6bc8f1640f469f8887973)
2024-09-20 14:27:59 +02:00
kolaente
a87419fa07
chore(typesense): add more debug logging
(cherry picked from commit e4584109dfc39099dff0de174c49fa87d02a2c0e)
2024-09-20 14:27:55 +02:00
kolaente
4cbed7c2ed
fix(typesense): use emplace instead of upsert to update documents
(cherry picked from commit 3f1d0f390bddd05992f7ad1170ddfbda0bb3aec7)
2024-09-20 14:27:50 +02:00
kolaente
96835f6a28
fix(deps): update module github.com/typesense/typesense-go to v2
(cherry picked from commit c54181eeda593ab0c06e4358802d442338ffa5bf)
2024-09-20 14:27:44 +02:00
kolaente
b1c4f0c216
fix(typesense): only fail silently when a project was not found during indexing
(cherry picked from commit b3bf92b7ce15576f41f4109c02dd2bc005a58575)
2024-09-20 14:27:42 +02:00
kolaente
77e95642a9
fix(tasks): make fetching tasks in buckets via typesense work 2024-04-13 17:52:47 +02:00
kolaente
a5d02380a3
fix(typesense): make fetching task positions per view more efficient 2024-04-13 17:26:38 +02:00
kolaente
3519b8b2fe
fix(tasks): index and order by task position when using typesense 2024-04-13 17:19:27 +02:00
kolaente
cb648e5ad8
fix(typesense): fix reindexing views and positions in typesense 2024-04-13 16:38:45 +02:00
kolaente
f364f3bec8
feat(views): return position when retriving tasks 2024-03-19 00:47:48 +01:00
kolaente
ee6ea03506
feat(views): sort by position 2024-03-19 00:47:47 +01:00
kolaente
43f24661d7
feat(views): save view and position in Typesense 2024-03-19 00:47:47 +01:00
kolaente
5641da27f7
feat(views): save position in Typesense 2024-03-19 00:47:47 +01:00
kolaente
14353b24d7
feat(views): set default position 2024-03-19 00:47:47 +01:00
kolaente
2502776460
feat(views)!: move task position handling to its own crud entity
BREAKING CHANGE: the position of tasks now can't be updated anymore via the task update endpoint. Instead, there is a new endpoint which takes the project view into account as well.
2024-03-19 00:47:46 +01:00
kolaente
90ad975ca0
fix(typesense): update tasks in Typesense directly when the change happened
Resolves https://community.vikunja.io/t/no-filters-working-assignee-date-task-done-etc/1910
2024-01-28 11:47:17 +01:00
kolaente
4d48d814c9 fix: update function signatures 2024-01-16 14:06:44 +00:00
kolaente
98102e59f2
feat(typesense): add new tasks to typesense directly when they are created 2023-09-29 21:15:28 +02:00
kolaente
8f4ee3a089
fix(typesense): make sure searching works when no task has a comment at index time 2023-09-29 16:35:59 +02:00
kolaente
054f21821c
fix(typesense): don't try to index tasks if there are none 2023-09-13 12:19:09 +02:00
kolaente
f38535b2f4
fix(typesense): upsert all documents at once 2023-09-04 11:19:55 +02:00
kolaente
093b5b99a0
fix(typesense): pass the correct user when fetching task comments 2023-09-04 10:42:10 +02:00
kolaente
490d374cfd
fix(typesense): add more error logging 2023-09-04 10:20:51 +02:00
kolaente
21a1f02ea3
fix(typesense): add more error logging 2023-09-03 22:54:50 +02:00
kolaente
1a492722dd
fix(typesense): upsert one document at a time 2023-09-03 22:51:43 +02:00
kolaente
e518fb1191
chore: remove year from copyright headers
Resolves https://kolaente.dev/vikunja/api/pulls/1483
2023-09-01 08:32:28 +02:00
kolaente
29317b980e
fix: lint 2023-08-29 11:32:45 +02:00
kolaente
2ca193e63b
feat(tasks): make sorting and filtering work with Typesense 2023-08-28 19:10:18 +02:00
kolaente
1a82d6da44
feat(tasks): add periodic resync of updated tasks to Typesense 2023-08-28 13:26:40 +02:00
kolaente
010b4ce783
feat(tasks): add searching via typesense 2023-08-28 12:14:50 +02:00
kolaente
dee46d527a
feat(tasks): add typesense indexing 2023-08-28 11:11:30 +02:00