Repository navigation
Warn when concept set optimization would not simplify the set - #595
Merged
Merged
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.