Event-driven area selection: take the country from the chosen event and offer only the admin levels it covers

Open
#55 0 comments 1 reaction 2 assignees View on GitHub

Maintainers usually reply within 1 day

@dzole0311 is already working on this.

Since Nov 25, 2026.

Assessment

This issue has not been assessed yet.

Description

From user feedback on the Valencia training run: the country and admin-level selectors are not tied to the chosen event, which is misleading.

Same idea as #27 ("Don't always require country selection"), plus the admin-level part.

Proposal

  • When a STAC item is chosen, preselect the area from the item's monty:country_codes (and use the item bbox where useful). Checked on Montandon staging: the cems-events items I sampled (3 of 3) carry country codes and a bbox.
  • Offer only the admin levels that make sense for the event's area.
  • Keep it overridable: the user can still pick a different area.
  • Only for event-based templates (requires_stac_item); other templates keep the current selector.

Related

  • #27 (same feature, country only; could be closed as a duplicate once this lands)
  • #24 (admin boundaries and country selector)
Dominant language
Python
Stars
0
Forks
0
Avg merge
8h 7m
Merged PRs (30d)
13

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from developmentseed/notebook-factory

All issues in developmentseed/notebook-factory

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.