diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-09-28 11:03:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-28 11:03:48 +0100 |
| commit | 62f7d900c52784ff05d933b52379e5455ea6bd00 (patch) | |
| tree | 2702d74c96576447974af84850f3ba6b66beeeb4 /apps/cli/src/commands/migrate.ts | |
| parent | 9fe09bfa9021c8d85d2d9aef591936101cab19f6 (diff) | |
| download | karakeep-62f7d900c52784ff05d933b52379e5455ea6bd00.tar.zst | |
feat: Add tag search and pagination (#1987)
* feat: Add tag search and use in the homepage
* use paginated query in the all tags view
* wire the load more buttons
* add skeleton to all tags page
* fix attachedby aggregation
* fix loading states
* fix hasNextPage
* use action buttons for load more buttons
* migrate the tags auto complete to the search api
* Migrate the tags editor to the new search API
* Replace tag merging dialog with tag auto completion
* Merge both search and list APIs
* fix tags.list
* add some tests for the endpoint
* add relevance based sorting
* change cursor
* update the REST API
* fix review comments
* more fixes
* fix lockfile
* i18n
* fix visible tags
Diffstat (limited to 'apps/cli/src/commands/migrate.ts')
| -rw-r--r-- | apps/cli/src/commands/migrate.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/cli/src/commands/migrate.ts b/apps/cli/src/commands/migrate.ts index 750daf61..ee0d85c8 100644 --- a/apps/cli/src/commands/migrate.ts +++ b/apps/cli/src/commands/migrate.ts @@ -490,7 +490,7 @@ async function migrateTags( onProgress?: (ensured: number, total: number) => void, ) { try { - const { tags: srcTags } = await src.tags.list.query(); + const { tags: srcTags } = await src.tags.list.query({}); // Create tags by name; ignore if exist let ensured = 0; for (const t of srcTags) { @@ -503,7 +503,7 @@ async function migrateTags( onProgress?.(ensured, srcTags.length); } // Build id map using destination's current tags - const { tags: destTags } = await dest.tags.list.query(); + const { tags: destTags } = await dest.tags.list.query({}); const nameToDestId = destTags.reduce<Record<string, string>>((acc, t) => { acc[t.name] = t.id; return acc; |
