Skip to content

fix(api): expose book last search time - #399

Draft
NginxL wants to merge 1 commit into
Chaptarr:developfrom
NginxL:e18/394-last-search-time
Draft

NginxL wants to merge 1 commit into
Chaptarr:developfrom
NginxL:e18/394-last-search-time

Conversation

@NginxL

@NginxL NginxL commented Dec 6, 2026

Copy link
Copy Markdown

Description

Expose the stored Book.LastSearchTime on BookResource and map it in the shared BookResourceMapper. This makes the timestamp available through book and wanted-list responses that use this resource mapper, including after a BookSearch command updates the database.

Fixes #394.

Database Migration

NO. The column and model property already exist.

How was this tested?

  • Added should_map_book_last_search_time_to_resource to BookResourceMapperFixture.
  • git diff --check — passed.
  • dotnet test src/Chaptarr.Core.Test/Chaptarr.Core.Test.csproj was not run because the .NET 10 SDK is unavailable in this environment and toolchain installation was prohibited. The new C# test and full API serialization/build remain for CI/maintainer validation.
  • No live indexer search or Rangarr integration test was run.

Screenshots (UI changes only)

N/A; API-only change.

AI disclosure

AI assistance was used to inspect the issue and prepare this patch. The commit includes a DCO sign-off.

Signed-off-by: NginxL <8777777+NginxL@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Dec 6, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

[BUG] API book resources never include lastSearchTime, even after a BookSearch

1 participant