Skip to content

Add batched recipe resolution for personal recipe aggregation - #27

Merged
MikeChristensen merged 1 commit into
mainfrom
mike/batched-recipe-resolver
Nov 11, 2026
Merged

MikeChristensen merged 1 commit into
mainfrom
mike/batched-recipe-resolver

Conversation

@MikeChristensen

Copy link
Copy Markdown
Member

Recipe aggregation previously skipped recipes missing from the modeler snapshot. Add an optional batched resolver so applications can load fresh personal recipes alongside cached public recipes without database reads for public cache hits.

  • Configure .RecipeResolver(adapter => new PersonalRecipeResolver(adapter)); pass the current identity and cancellation token, resolve distinct misses once, and reject incomplete or invalid results. Preserve skip-missing behavior when no resolver is configured.
  • Share aggregation across database and static contexts, expose asynchronous aggregation, and keep resolved recipes out of the modeler. Existing shopping-list creation and updates use the same resolution path.
  • Exclude hidden recipes and their ingredient/rating links from database and XML modeler loads, with an additional snapshot safeguard for custom loaders.
  • Use complete resolved ingredient metadata for mixed aggregation and preserve quantity ranges through unit/form conversions.
  • Document configuration, authorization responsibilities, caching behavior, and console sample usage. Bump Core, DB, and ASP.NET Core package versions to 2.1.1.

Validation: 67 Release tests passed on .NET 10, including PostgreSQL integration coverage. All projects and packages built for .NET 8 and .NET 10; the .NET 8 runtime was unavailable locally. A temporary console sample against an isolated PostgreSQL schema verified public-cache bypass, mixed aggregation, fresh personal edits, cross-user rejection, and exclusion from the modeler.

Part of KitchenPC/Website#73. Dependency injection follow-up: #26. Website is unchanged. Package tagging/publication will follow after this PR builds and merges.

@MikeChristensen
MikeChristensen merged commit c626e21 into main Nov 11, 2026
1 check passed
@MikeChristensen
MikeChristensen deleted the mike/batched-recipe-resolver branch November 11, 2026 07:08
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