fix: write namespace to [[scan]] block in generated TOMLs (#51) #53
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_books!53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_namespace_mismatch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When importing a git repo via the Import UI, vectors get stored under the namespace selected in the form (e.g.
cybercity), but the library/search uses a different namespace derived from the git URL org (e.g.znzcybercity). Search returns zero results.Root Cause
convert_ebooks_to_toml()generates[[scan]]blocks withgit_urlbut never writes thenamespacefield. Whenexport_books_for_serving()later reads these TOMLs,ScanConfig.get_namespace()finds no explicit namespace and falls back toderive_namespace_from_git_url(), producing a different namespace than what was used for the embedder.Fix
Explicitly write
namespace = "..."into both the git_url and local path branches of the scan block generation inconvert_ebooks_to_toml().ScanConfigalready haspub namespace: Option<String>with#[serde(default)]— deserializes correctlyget_namespace()returns explicit namespace when set, only falls through to git-URL derivation whenNonenamespacecontinue to auto-deriveFixes #51
Closing: all changes from this PR are already present in
developmentbranch (verified viagit merge-base --is-ancestor). Work consolidated into a new PR covering build system alignment and remaining features.mik-tf referenced this pull request2026-02-19 01:20:46 +00:00
mik-tf referenced this pull request2026-02-19 01:20:58 +00:00
Pull request closed