Skip to content

Preserve explicit edition selection during manual import refresh - #5

Merged
EdLaughton merged 1 commit into
developfrom
fix/manual-import-pin-explicit-edition
Apr 2, 2026
Merged

EdLaughton merged 1 commit into
developfrom
fix/manual-import-pin-explicit-edition

Conversation

@EdLaughton

Copy link
Copy Markdown
Owner

Summary

  • resolve manually selected editions by ForeignEditionId even when the edition is not yet present in the local DB
  • preserve an explicit edition choice during the manual-import refresh/update step instead of overwriting it with the re-identification result

Why

Manual import could lose the selected edition during refresh if _editionService.GetEditionByForeignEditionId(...) returned null for a remote-only edition. The subsequent identification pass could then replace the user’s explicit choice with another edition of the same book, sometimes in the wrong language.

Changes

  • ManualImportController now falls back to _bookInfo.GetBookInfo(book.ForeignBookId) to resolve the selected ForeignEditionId
  • ManualImportService.UpdateItems() now keeps an explicitly chosen edition pinned when rebuilding the preview rows

Notes

I did not add tests in this pass because the GitHub connector search/index path was not giving me a reliable route to the existing manual-import test fixtures from within this session. The change is intentionally narrow and limited to the manual-import refresh path.

@EdLaughton
EdLaughton merged commit f2a03f5 into develop Apr 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant