Skip to content

feat: publish original Gliders annual plot URLs (#9756) - #103

Merged
weited merged 1 commit into
mainfrom
feature/9756-gliders-annual-plots
Nov 22, 2026
Merged

weited merged 1 commit into
mainfrom
feature/9756-gliders-annual-plots

Conversation

@grojeda

@grojeda grojeda commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@grojeda
grojeda requested a review from weited November 22, 2026 22:30
@github-actions

This comment has been minimized.

@grojeda
grojeda force-pushed the feature/9756-gliders-annual-plots branch from 638fa3a to ff0b64c Compare November 22, 2026 22:32
@github-actions

Copy link
Copy Markdown

🤖 AI code review

Summary

The PR adds a nullable image_url field to each year-map entry. The generator takes it from the <img src> that the HTML image map is drawn on, and the publisher validates it. I found no bugs or regressions in the changed lines.

Findings

No issues found in the changed code.

I checked these points:

  • source_image is now called once, before the try in generate_yearmaps. It only calls map_metadata, which parse_yearmap has already called on the same filename. It adds no new failure path, and the result is reused for the VERIFIED_IMAGES lookup.
  • validate_yearmaps accepts a missing image_url key through entry.get(...). That keeps existing schema version 1 files valid as baselines, as the docs say.
  • validate_yearmaps rejects a value that doesn't match the map's own metadata. A new test case covers this.

Tests

Coverage is adequate. It includes a null image_url for the legacy map, a baseline without the field upgrading to the new expected.json, and a rejected mismatched URL. The only gap is a validator test for an entry that omits image_url, which is the behaviour the docs rely on.


Advisory AI review; it does not replace human review or block merging. Commit ff0b64c · kiro · 0.19 credits · run.

@weited weited left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@weited
weited merged commit 412408f into main Nov 22, 2026
3 checks passed
@weited
weited deleted the feature/9756-gliders-annual-plots branch November 22, 2026 22:44
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.

2 participants