docs(recipe): refresh data/validator docs and godoc after #1118#1120
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR updates documentation across three files to reflect architectural changes deprecating process-global recipe data providers in favor of per-command client-bound Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
PR NVIDIA#1118 removed the package-global data-provider and criteria-registry shims, but three docs still referenced the deleted APIs: - docs/contributor/data.md: rewrote the CLI-init example to the per-command aicr.Client pattern, dropped the "package-global accessors" subsection, and refreshed the Criteria Registry prose + API-surface table to the per-DataProvider API (GetCriteriaRegistryFor / NewCriteriaRegistry / (*CriteriaRegistry).Parse*/All*Types, (*aicr.Client).LoadCatalog). - pkg/recipe/doc.go: removed the "SetDataProvider/GetDataProvider remain functional" claim and updated the ParseCriteriaFromRequest/Body and LoadCriteriaFromFile examples to pass the new registry argument. - docs/contributor/validator.md: catalog.Load -> catalog.LoadWithDataProvider.
459f745 to
52a27ea
Compare
Summary
Refresh three docs that still referenced the package-global data-provider and criteria-registry APIs removed by #1118.
Motivation / Context
#1118 removed the back-compat shims (
SetDataProvider,GetDataProvider,GetDataProviderGeneration,DefaultRegistry,ParseCriteria*Type,AllCriteria*Types,catalog.Load, …) but left documentation pointing at the deleted symbols. This was flagged during cross-review of #1118 as non-blocking follow-up; this PR clears it.Fixes: N/A
Related: #1118, #983
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/api,pkg/server)pkg/recipe) — godoc comments onlypkg/bundler,pkg/component/*)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)Implementation Notes
docs/contributor/data.md— rewrote the CLI-init example from the removedinitDataProvider/SetDataProviderpattern to the current per-commandaicr.Client(recipeClientFromCmd); dropped the "Back-compat: package-global accessors" subsection; refreshed the Criteria Registry prose and API-surface table to the per-DataProviderAPI (GetCriteriaRegistryFor/NewCriteriaRegistry/(*CriteriaRegistry).Parse*/.All*Types,(*aicr.Client).LoadCatalog).pkg/recipe/doc.go— removed the claim thatSetDataProvider/GetDataProvider"remain functional for back-compat"; updated theParseCriteriaFromRequest,ParseCriteriaFromBody, andLoadCriteriaFromFileexamples to pass the new*CriteriaRegistryargument; corrected the nil-fallback note (now the package's default embedded provider).docs/contributor/validator.md—catalog.Load→catalog.LoadWithDataProvider(both occurrences).No code behavior changes — comments and Markdown only.
Testing
Doc/comment-only change: scoped checks run in place of full
make qualify(no test/e2e surface can regress from comment and Markdown edits). Verified zero remaining references to the removed symbols across the three files, and that the removeddata.mdheading has no inbound anchor links. CI's lychee link-check coversdocs/**; no links were added or repointed.Risk Assessment
Rollout notes: N/A
Checklist
make testwith-race) — N/A; no code changes (comment/doc only).go vet+golangci-lintclean onpkg/recipe.make lint) —golangci-lintonpkg/recipereports 0 issues.git commit -S)