Skip to content

Warn when concept set optimization would not simplify the set - #595

Merged
p-hoffmann merged 1 commit into
developfrom
p-hoffmann/optimize-larger-result-warning
Dec 3, 2026
Merged

p-hoffmann merged 1 commit into
developfrom
p-hoffmann/optimize-larger-result-warning

Conversation

@p-hoffmann

Copy link
Copy Markdown
Member

Closes #539

The optimize dialog now warns when the optimized concept set is not smaller than the current one (with both entry counts) and makes "Keep Current Concept Set" the primary action. An identical result shows the existing "fully optimized" message with Overwrite and Create new disabled.

The root cause is fixed in WebAPI: OHDSI/WebAPI#2604. This guard covers servers without that fix.

Older WebAPI servers can return an optimized expression with as many or more items than the original (#539). The optimize dialog now warns with both item counts and makes keeping the current concept set the primary action. A result identical to the original is reported as already optimal with Overwrite and Create new disabled, and a same-size result with different items is no longer mistaken for an optimal one.
@codecov

codecov Bot commented Dec 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.04%. Comparing base (587a5b5) to head (bbee10b).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #595      +/-   ##
===========================================
+ Coverage    98.03%   98.04%   +0.01%     
===========================================
  Files          555      556       +1     
  Lines        78206    78257      +51     
  Branches     12799    12819      +20     
===========================================
+ Hits         76670    76729      +59     
+ Misses        1536     1528       -8     
Flag Coverage Δ
unit 98.04% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@p-hoffmann
p-hoffmann merged commit 6bd6ec4 into develop Dec 3, 2026
22 checks passed
@p-hoffmann
p-hoffmann deleted the p-hoffmann/optimize-larger-result-warning branch December 3, 2026 14:07
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.

Concept set optimization leads to a more cumbersome concept set definition

1 participant