Skip to content

Fix show data-table command#48

Merged
daniel-thom merged 4 commits intomainfrom
fix/show-data-table
Jan 30, 2026
Merged

Fix show data-table command#48
daniel-thom merged 4 commits intomainfrom
fix/show-data-table

Conversation

@daniel-thom
Copy link
Contributor

The CLI command stride data-tables show was not filtering the table for the project's country.

The CLI command stride data-tables show was not filtering the table for
the project's country.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the stride data-tables show CLI command to correctly filter data by the project's country. Previously, the command would show data for all countries in the dataset, rather than just the country specified in the project configuration.

Changes:

  • Modified show_data_table method to enable country filtering
  • Enhanced _show_table method to conditionally filter by geography column
  • Added _table_has_geography_column helper method to check for geography column existence
  • Added comprehensive test to verify country filtering behavior

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/test_project.py Adds test to verify data-tables show command filters by project country
src/stride/project.py Implements country filtering logic for show_data_table command

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@daniel-thom daniel-thom merged commit 0f6c3b8 into main Jan 30, 2026
3 checks passed
@daniel-thom daniel-thom deleted the fix/show-data-table branch January 30, 2026 23:41
github-actions bot pushed a commit that referenced this pull request Jan 30, 2026
* Fix show data-table command

The CLI command stride data-tables show was not filtering the table for
the project's country, model years, and weather year.
@daniel-thom daniel-thom restored the fix/show-data-table branch January 30, 2026 23:56
@elainethale elainethale deleted the fix/show-data-table branch February 2, 2026 15:30
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.

3 participants