Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SO-4800: RF2 import incorrect release flag #802

Merged
merged 6 commits into from
May 13, 2021

Conversation

molnarlaura
Copy link
Contributor

No description provided.

@molnarlaura molnarlaura self-assigned this May 3, 2021
assertEquals(EffectiveTimes.parse("2021-05-02"), conceptBefore.getEffectiveTime());
assertTrue(conceptBefore.isReleased());
assertEquals(EffectiveTimes.toDate(EffectiveTimes.UNSET_EFFECTIVE_TIME), conceptAfter.getEffectiveTime());
assertFalse(conceptAfter.isReleased());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem right. When a component has been released, it should stay released – it is a one-way switch to indicate that a downstream consumer of terminology content might have already "seen" the component as part of an RF2 export, and authors should/may not delete it completely (and later, possibly, recycle the ID for a completely different concept).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the test case to check that the component stays released if it was released before import. And changed the import logic based on this as well.

@codecov-commenter
Copy link

Codecov Report

Merging #802 (d77e541) into 7.x (712685e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##                7.x     #802   +/-   ##
=========================================
  Coverage     61.52%   61.52%           
- Complexity    10944    10946    +2     
=========================================
  Files          1589     1589           
  Lines         53531    53534    +3     
  Branches       5302     5303    +1     
=========================================
+ Hits          32933    32936    +3     
  Misses        18463    18463           
  Partials       2135     2135           
Impacted Files Coverage Δ Complexity Δ
...re/request/rf2/importer/Rf2TransactionContext.java 82.86% <100.00%> (+0.18%) 56.00 <0.00> (+1.00)
...onal/snowowl/snomed/core/tree/TerminologyTree.java 80.76% <0.00%> (-1.93%) 20.00% <0.00%> (-1.00%)
...nternational/snowowl/core/events/util/Promise.java 68.75% <0.00%> (-1.79%) 19.00% <0.00%> (ø%)
.../snomed/core/ecl/SnomedEclRefinementEvaluator.java 87.16% <0.00%> (-0.30%) 108.00% <0.00%> (ø%)
...om/b2international/index/revision/StagingArea.java 93.78% <0.00%> (+0.33%) 190.00% <0.00%> (+1.00%)
...national/index/revision/BaseRevisionBranching.java 87.58% <0.00%> (+1.30%) 57.00% <0.00%> (+1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 712685e...d77e541. Read the comment docs.

@cmark cmark added the bug label May 3, 2021
@molnarlaura molnarlaura requested review from apeteri and cmark May 13, 2021 08:37
Copy link
Member

@nagyo nagyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nagyo nagyo merged commit 05f2ff8 into 7.x May 13, 2021
@nagyo nagyo deleted the issue/SO-4800-RF2-import-incorrect-release-flag branch May 13, 2021 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants