Skip to content

standardize region models and improve documentation#52

Merged
lykmapipo merged 4 commits intodevelopfrom
feature/base-regions
Feb 10, 2026
Merged

standardize region models and improve documentation#52
lykmapipo merged 4 commits intodevelopfrom
feature/base-regions

Conversation

@lykmapipo
Copy link
Collaborator

This:

  • introduce a shared Region base model and RegionDataset enum
  • refactor EEZRegionItem, MPARegionItem, and RFMORegionItem items to use the common region model
  • normalize region id fields to strings
  • reuse the base Region model across Bulk Download, Events, and 4Wings requests
  • expand region docstrings with official data caveats links

This:
- add `RegionDataset` enum for supported regions datasets
- add `Region` base model with dataset and id fields
- add comprehensive tests for region serialization and validation
This:
- refactor `EEZRegionItem`, `MPARegionItem`, and `RFMORegionItem` to inherit from `Region` and `ResultItem`
- replace raw dataset strings with `RegionDataset` enum for stronger typing
- normalize region IDs to strings across region models
- update tests to assert `id` is coerced to string
- update `Region` docstrings for clarity and consistency
This:
- reuse base Region model for Bulk Download, Events, and 4Wings request regions
- expand Region and references docstrings with official data caveats links
@lykmapipo lykmapipo self-assigned this Feb 5, 2026
@lykmapipo lykmapipo added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 5, 2026
Copy link

@aperdizs aperdizs left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@yaaNuamahGFW yaaNuamahGFW left a comment

Choose a reason for hiding this comment

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

LGTM too!

@GFWapis
Copy link
Collaborator

GFWapis commented Feb 6, 2026 via email

@lykmapipo lykmapipo merged commit a8f5c82 into develop Feb 10, 2026
4 checks passed
@lykmapipo lykmapipo deleted the feature/base-regions branch February 10, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants