Commit c23ad31
authored
chore(blob): make file blob paths more descriptive (#263)
This commit:
- Updates the converted file and chunk blob paths to be more descriptive
- From `{kbUID}/{fileUID}/converted-file/{convFileUID}`
- To `kb-{kbUID}/file-{fileUID}/converted-file/{convFileUID}`
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Switch MinIO blob paths to `kb-{kbUID}/file-{fileUID}/...`, add legacy
cleanup, and change `DeleteKnowledgeBase` to return an error with
handler updated accordingly.
>
> - **Storage (MinIO)**:
> - **Blob paths**: Change base paths to
`kb-{kbUID}/file-{fileUID}/converted-file` and `.../chunk` via
`fileBasePath()`; update `convertedFileBasePath()` and
`chunkBasePath()`.
> - **Deletion**: `DeleteKnowledgeBase(ctx, kbUID)` now returns `error`
and deletes both new (`kb-{kbUID}`) and legacy (`{kbUID}`) prefixes
using `collectErrors`.
> - **Handler**:
> - Update `DeleteCatalog` to call `MinIO().DeleteKnowledgeBase` with
direct `error` handling (no channel).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
c712a94. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 13b766e commit c23ad31
2 files changed
+25
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
396 | | - | |
| 395 | + | |
397 | 396 | | |
398 | 397 | | |
399 | 398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | | - | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
65 | | - | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
129 | 145 | | |
130 | 146 | | |
131 | 147 | | |
| |||
0 commit comments