Skip to content

Refactor measurement dimensions handling in configuration and related…#33

Merged
tombonfert merged 3 commits into
mainfrom
feature/measurement_dimension_cfg_update
May 28, 2026
Merged

Refactor measurement dimensions handling in configuration and related…#33
tombonfert merged 3 commits into
mainfrom
feature/measurement_dimension_cfg_update

Conversation

@tombonfert
Copy link
Copy Markdown
Collaborator

@tombonfert tombonfert commented May 27, 2026

… components

  • Updated ImpulseConfig to accept a list of silver-layer container_metrics column names for measurement_dimensions, replacing the previous enum-based approach.
  • Enhanced documentation to clarify the behavior of measurement_dimensions, including the removal of automatic injection of container_id.
  • Introduced properties in SolverConfig for start_ts and stop_ts to facilitate easier access to internal timestamp column names.
  • Modified ContainerDimension to validate the presence of configured measurement dimensions in the silver container_metrics table, raising errors for missing columns.
  • Updated tests to ensure correct behavior with the new configuration structure and to validate the handling of custom timestamp column mappings.
  • Adjusted integration tests to reflect changes in measurement dimension handling and ensure compatibility with the updated configuration.

Summary

Changes

Test Plan

  • Unit tests added/updated
  • Manual testing completed
  • Documentation updated (if applicable)

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No new linter warnings introduced

… components

- Updated `ImpulseConfig` to accept a list of silver-layer `container_metrics` column names for `measurement_dimensions`, replacing the previous enum-based approach.
- Enhanced documentation to clarify the behavior of `measurement_dimensions`, including the removal of automatic injection of `container_id`.
- Introduced properties in `SolverConfig` for `start_ts` and `stop_ts` to facilitate easier access to internal timestamp column names.
- Modified `ContainerDimension` to validate the presence of configured measurement dimensions in the silver `container_metrics` table, raising errors for missing columns.
- Updated tests to ensure correct behavior with the new configuration structure and to validate the handling of custom timestamp column mappings.
- Adjusted integration tests to reflect changes in measurement dimension handling and ensure compatibility with the updated configuration.
@tombonfert tombonfert requested a review from a team as a code owner May 27, 2026 20:52
- Updated `configuration.md` to clarify the purpose of `tstart` and `tend` in the `channels` table.
- Added detailed sections in `silver_layer_schema.md` to document internal columns referenced by the framework across `container_metrics`, `container_tags`, `channel_metrics`, and `channel_tags`.
- Improved clarity on how to map silver columns to internal names using `solver_config` for better integration and understanding of the data model.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.24%. Comparing base (6ff492c) to head (b2f2b77).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #33      +/-   ##
==========================================
- Coverage   86.28%   86.24%   -0.04%     
==========================================
  Files          52       52              
  Lines        4177     4166      -11     
  Branches      498      499       +1     
==========================================
- Hits         3604     3593      -11     
  Misses        477      477              
  Partials       96       96              
Files with missing lines Coverage Δ
...uery_engine/analyze/query/solvers/solver_config.py 100.00% <100.00%> (ø)
src/impulse_reporting/config/config_parser.py 97.12% <100.00%> (-0.22%) ⬇️
src/impulse_reporting/events/container_event.py 100.00% <100.00%> (ø)
src/impulse_reporting/meta/container_dimensions.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tombonfert tombonfert merged commit c9318e0 into main May 28, 2026
4 checks passed
@tombonfert tombonfert deleted the feature/measurement_dimension_cfg_update branch May 29, 2026 22:37
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.

2 participants