Skip to content

fix: publish Gliders annual plot selection areas - #104

Merged
grojeda merged 2 commits into
mainfrom
fix/9756-gliders-plot-areas
Nov 23, 2026
Merged

grojeda merged 2 commits into
mainfrom
fix/9756-gliders-plot-areas

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 23:05
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

🤖 AI code review

Summary

The PR adds an optional plot_pixel_rects list to each published Gliders year-map deployment. The parser fills it from the later mission rectangles on the time plots, and the publish validator and fixtures are updated to match. The change is mostly consistent. I found one low-severity gap, and none of the changed code touches the Java API.

Findings

# Severity Location Finding
1 🟡 Low scripts/cron/gliders/gliders_yearmaps.py:110 A later area for a known mission is added to plot_pixel_rects without checking that its path equals the deployment's url.

Notes on finding 1

valid_mission_path accepts two folder forms for _nrt missions: <name>_4d and <name minus _nrt>_4d_nrt. A later area whose href points at the other valid form is still appended, because only rect is compared. The earlier code ignored later areas completely, so this is a new way for a mismatched link to reach the output. The fix is a one-line condition:

elif path == deployment["url"] and rect != deployment["pixel_rect"] and ...

Later areas with a different path would then be skipped, and could log a warning.

Tests

The parser, validator and reference JSON are well covered. The new tests include invalid plot coordinates and links, and invalid plot_pixel_rects shapes. The reference JSON test now runs the migration from baselines both with and without image_url. A test for a later area that has a different valid URL is missing. Only the invalid-coordinates and wrong-mission-link cases are covered.


Advisory AI review; it does not replace human review or block merging. Commit 29033a4 · kiro · 0.29 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

@grojeda
grojeda merged commit dc4b88f into main Nov 23, 2026
3 checks passed
@grojeda
grojeda deleted the fix/9756-gliders-plot-areas branch November 23, 2026 00:31
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