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

Fix circular dependency in SnapshotGeneratingValidationSupport #4228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ABDA-FHIR
Copy link

Correct scoping for the finally frame that undoes the addition of the input URL to the 'currently generating snapshots' hash set.

@@ -50,7 +50,6 @@ public SnapshotGeneratingValidationSupport(FhirContext theCtx) {
@Override
public IBaseResource generateSnapshot(ValidationSupportContext theValidationSupportContext, IBaseResource theInput, String theUrl, String theWebUrl, String theProfileName) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please add a unit test that exercizes this fix?

Copy link
Author

Choose a reason for hiding this comment

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

@codecov
Copy link

codecov bot commented Nov 2, 2022

Codecov Report

Base: 81.86% // Head: 81.02% // Decreases project coverage by -0.83% ⚠️

Coverage data is based on head (a278d5c) compared to base (e7a4c49).
Patch has no changes to coverable lines.

❗ Current head a278d5c differs from pull request most recent head efc6442. Consider uploading reports for the commit efc6442 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4228      +/-   ##
============================================
- Coverage     81.86%   81.02%   -0.84%     
- Complexity    20838    23466    +2628     
============================================
  Files          1421     1445      +24     
  Lines         77246    86143    +8897     
  Branches      11078    11792     +714     
============================================
+ Hits          63236    69800    +6564     
- Misses         9866    11068    +1202     
- Partials       4144     5275    +1131     
Impacted Files Coverage Δ
...a/uhn/fhir/context/BaseRuntimeChildDefinition.java
...ir/context/BaseRuntimeDeclaredChildDefinition.java
...src/main/java/ca/uhn/fhir/context/FhirContext.java
...main/java/ca/uhn/fhir/context/FhirVersionEnum.java
...rc/main/java/ca/uhn/fhir/context/ModelScanner.java
...ca/uhn/fhir/context/RuntimeResourceDefinition.java
...n/java/ca/uhn/fhir/context/RuntimeSearchParam.java
...-fhir-base/src/main/java/ca/uhn/fhir/i18n/Msg.java
...ain/java/ca/uhn/fhir/interceptor/api/Pointcut.java
...r/interceptor/executor/BaseInterceptorService.java
... and 2842 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

None yet

2 participants