Repository navigation
feat: move attribution into guide-local data for OGP v2.2.0 - #67
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed. WalkthroughContributor and translator records now use files under each guide’s content root. PowerShell tools discover and update those files, while Hugo mounts and reads them for attribution listings. The changes also add legacy-storage diagnostics, migration documentation, and tests for validation and rendering. ChangesGuide-local attribution
Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant BuildGuideSite
participant HugoOverlay
participant GetGuideAttribution
participant GuideDataFiles
participant AttributionPartials
BuildGuideSite->>HugoOverlay: Add guide data asset mounts and preserve effective mounts
HugoOverlay->>GetGuideAttribution: Expose guide data under ogp-attribution
AttributionPartials->>GetGuideAttribution: Request attribution for a guide
GetGuideAttribution->>GuideDataFiles: Read and parse attribution YAML
GuideDataFiles-->>GetGuideAttribution: Return parsed records
GetGuideAttribution-->>AttributionPartials: Return attribution dictionary
Possibly related PRs
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. Credits move beside the guide |
|
Prepare completed. Workflow evidence. This is the candidate assessment, not independent policy or deployment approval. Prepare: passCommit: 41da19c · Platform: 2.2.0-PullRequest67.1 · Target: canary Selection: v2.2.0-PullRequest67.1; resolved: v2.2.0-PullRequest67.1; OGP ring: preview.
Guide statusNo guide fixes identified by these checks. Artifact and live-site checks run in later stages. |
|
Preview deployed for commit 41da19c: https://blue-field-06cea8c03-67.westeurope.6.azurestaticapps.net/. Live verification follows in Actions. |
Guide attribution now lives beside each guide in contentRoot/data/contributors.yml and translators..yml. Core contributor operations, assessment and PDF credits resolve the new paths; Prepare generates Hugo asset mounts while preserving existing mounts, and shared templates read those assets. Legacy site-wide storage produces a migration diagnostic. The sample and distributed guidance use the new convention.
Validation: required platform, sample preview and sample production builds passed locally; 641 tests passed, 0 failed, 3 pre-existing skips. Tests cover mixed-case guide IDs, rendered creator/translation credits, mount preservation, protected records, stale Prepare evidence, language/edition selection and PDF credit metadata. Hugo 0.146 compatibility scenarios passed 3/3. Independent read-only review found no unresolved substantive issues. Packaged contributor, translation and installed-module acceptance workflows passed. Consumer sites were not changed or deployed.
Targets OGP v2.2.0; no release has been published.
Summary by CodeRabbit