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

(Re-)add support for remote repositories #77

Merged
merged 9 commits into from
Aug 15, 2024

Conversation

holly-smile
Copy link

Support for remote execution of CQL is already supported by the language server; this PR re-exposes that functionality.

Copy link

github-actions bot commented Aug 5, 2024

Formatting check succeeded!

@@ -234,22 +231,24 @@ public Integer call() throws Exception {
return 0;
}

private Repository createRepository(FhirContext fhirContext, Path terminologyPath, Path modelPath) {
private Repository createRepository(FhirContext fhirContext, String terminologyUrl, String modelUrl) {
Copy link
Author

Choose a reason for hiding this comment

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

Even though behavior around the terminology path is not affected by this change, I've made it a String as well for consistency. createRepository is now responsible for turning the given URLs, if present, into the appropriate form for a repository.

Copy link

codecov bot commented Aug 5, 2024

Codecov Report

Attention: Patch coverage is 53.84615% with 6 lines in your changes missing coverage. Please review.

Project coverage is 44.48%. Comparing base (8e390d2) to head (befe92c).
Report is 1 commits behind head on feature-remote-execution.

Files Patch % Lines
.../opencds/cqf/cql/ls/server/command/CqlCommand.java 53.84% 2 Missing and 4 partials ⚠️
Additional details and impacted files
@@                      Coverage Diff                       @@
##             feature-remote-execution      #77      +/-   ##
==============================================================
+ Coverage                       36.24%   44.48%   +8.24%     
- Complexity                        139      157      +18     
==============================================================
  Files                              39       39              
  Lines                            1018     1016       -2     
  Branches                          110      111       +1     
==============================================================
+ Hits                              369      452      +83     
+ Misses                            612      512     -100     
- Partials                           37       52      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@holly-smile
Copy link
Author

Will we need support for remote terminology as well? Is that worth adding as part of this PR?

@holly-smile holly-smile marked this pull request as ready for review August 14, 2024 06:43
}

// @Test
// void withRemoteModel() {
Copy link
Author

Choose a reason for hiding this comment

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

This requires us to stand up a dummy HTTP server which is a rabbit hole I'm not gonna go down now, but this test does work locally with a FHIR server running, so it still has some value.

@JPercival JPercival merged commit aeb2223 into feature-remote-execution Aug 15, 2024
6 checks passed
@JPercival JPercival deleted the remote-url branch August 15, 2024 16:17
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.

5 participants