[FEATURE] Add changelog query/summary#89
Merged
Dana Bauer (danabauer) merged 1 commit intomainfrom Mar 20, 2026
Merged
Conversation
Copilot started reviewing on behalf of
Alex Iannicelli (atiannicelli)
March 11, 2026 12:37
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Adds changelog querying and aggregation capabilities backed by pyarrow.dataset (reading Parquet directly from S3) and exposes the functionality via new overturemaps changelog CLI commands.
Changes:
- Introduces
overturemaps/changelog.pywithquery_changelog_ids()(bbox-based) andsummarize_changelog()(global aggregation). - Extends models with
ChangeTypeandChangeRecord. - Adds
changelog query/changelog summaryCLI commands and integration tests for changelog behavior.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
overturemaps/changelog.py |
New pyarrow-based changelog querying + summarization utilities (plus STAC prep). |
overturemaps/cli.py |
Adds changelog CLI group and commands; wires in changelog module functions. |
overturemaps/models.py |
Adds changelog-related enum/dataclass and StrEnum compatibility shim usage. |
overturemaps/releases.py |
Refactors to use STAC-derived release listing and adds get_latest_release(). |
tests/test_changelog.py |
Adds integration tests covering changelog query + summary behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Connie Sun (connieksun)
left a comment
There was a problem hiding this comment.
Made a couple small comments. This is great functionality!
Signed-off-by: Alex Iannicelli <atiannicelli@gmail.com>
f4c3e44 to
8234cca
Compare
Collaborator
Author
|
Ready to merge when I get a review. |
Dana Bauer (danabauer)
approved these changes
Mar 20, 2026
Dana Bauer (danabauer)
approved these changes
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 3 of 4: Changelog Querying
This PR adds changelog querying functionality using pyarrow instead of DuckDB.
New files:
overturemaps/changelog.py- Changelog functions using pyarrow:query_changelog_ids()- Returns (added_ids, modified_ids, removed_ids) sets for a bboxsummarize_changelog()- Returns counts by theme/type/change_type (no bbox filter)_get_changelog_files_from_stac()- STAC acceleration prep (future-ready)Modified files:
overturemaps/models.py- Added:ChangeTypeenum (added,modified,removed)ChangeRecorddataclassoverturemaps/cli.py- Added:changelog query --bbox=... [--theme=...] [--type=...]- Query changes in a bboxchangelog summary [--theme=...] [--type=...]- Aggregate statisticsCLI Examples:
Implementation:
Tests:
tests/test_changelog.py- Integration tests for changelog functionsDependencies:
Related PRs:
Key differences from PR #85: