Skip to content

Implement internal GridOverrider strategy pattern#821

Open
BrianMichell wants to merge 2 commits into
TGSAI:mainfrom
BrianMichell:grid_overrider_strategy
Open

Implement internal GridOverrider strategy pattern#821
BrianMichell wants to merge 2 commits into
TGSAI:mainfrom
BrianMichell:grid_overrider_strategy

Conversation

@BrianMichell
Copy link
Copy Markdown
Collaborator

No description provided.

This commit introduces a new module for index strategies that replaces the monolithic GridOverrider with a set of single-responsibility IndexStrategy classes. The new structure allows for better composition and selection of strategies via the IndexStrategyRegistry, while maintaining compatibility with the existing ingestion behavior. Additionally, unit tests for the new strategies have been added to ensure functionality and correctness.
@BrianMichell BrianMichell added the refactoring Refactoring label May 27, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2026

Codecov Report

❌ Patch coverage is 97.37470% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.20%. Comparing base (c3ba558) to head (ba2d711).
⚠️ Report is 236 commits behind head on main.

Files with missing lines Patch % Lines
src/mdio/segy/geometry.py 83.67% 4 Missing and 4 partials ⚠️
src/mdio/ingestion/index_strategies.py 98.07% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #821      +/-   ##
==========================================
+ Coverage   85.30%   92.20%   +6.90%     
==========================================
  Files          46      127      +81     
  Lines        2219     7548    +5329     
  Branches      306      448     +142     
==========================================
+ Hits         1893     6960    +5067     
- Misses        281      509     +228     
- Partials       45       79      +34     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant