Repository navigation
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Measurement fetch API src/services/study/state-estimation.ts, src/services/study/state-estimation.test.ts |
Adds a measurements request for a study, node, and root network. When filters are provided, the service encodes them as a globalFilters query parameter. Tests cover request URLs, responses, and failures. |
Measurement table rows src/components/results/stateestimation/state-estimation-result.type.ts, src/components/results/stateestimation/state-estimation-result-table.tsx, src/components/results/stateestimation/state-estimation-result-table.test.tsx |
Adds optional measurementRows input. The table uses supplied rows, falls back to rows in the full result, and returns empty arrays when applicable result data is absent. Tests cover row selection and grid behavior. |
Query-aware display and tab integration src/components/results/stateestimation/state-estimation-measurements.tsx, src/components/results/stateestimation/state-estimation-result-tab.tsx, src/components/results/stateestimation/state-estimation-measurements.test.tsx |
Adds query identity, loading, and stale-response handling for measurement requests. The result tab supplies global filters and shows the filter selector on the measurements tab. Tests cover query changes, saved filters, and tab behavior. |
Sequence Diagram(s)
sequenceDiagram
participant StateEstimationResultTab
participant StateEstimationMeasurements
participant fetchStateEstimationMeasurements
participant StateEstimationResultTable
StateEstimationResultTab->>StateEstimationMeasurements: Pass study, node, root network, and global filters
StateEstimationMeasurements->>fetchStateEstimationMeasurements: Request measurements for current criteria
fetchStateEstimationMeasurements-->>StateEstimationMeasurements: Return measurement rows
StateEstimationMeasurements->>StateEstimationResultTable: Supply rows for the current query
Suggested reviewers: meklo
Priority:
Merge Risk: 
Minimal · up to 322b6
-
No specific issue is established that would prevent merging after the normal checks.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed -
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
…easurements' into feat/global-filters-estimation-measurements
|



PR Summary — gridstudy-app
· feat: add global filters to state estimation measurements
State estimation Measurements tab now supports global filters: the user picks
criteria (countries, voltage ranges, substation properties, saved site/post
filters) and the table shows only matching measurements, fetched from the new
GET …/state-estimation/measurements?globalFilters=<json>endpoint (204 →empty table). Selections are persisted per study. Column filtering/sorting stay
client-side; the old
/resultcall is unchanged.StateEstimationMeasurementscomponent (1 s debounce, stale responses ignored, rows hidden until status SUCCEED/FAILED)fetchStateEstimationMeasurementsservice +GlobalFilterSelectorwiring in the result tabCross-repo: study-server + state-estimation server PRs.
Linked PR: gridsuite/study-server#1148