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

Add QueryBuilder to VS Code extension #3499

Merged

Conversation

travisstebbins
Copy link
Contributor

@travisstebbins travisstebbins commented Sep 5, 2024

Summary

How did you test this change?

  • Test(s) added
  • Manual testing (please provide screenshots/recordings)
  • No testing (please provide an explanation)

No testing as this PR largely just forwards exports.

Copy link

changeset-bot bot commented Sep 5, 2024

🦋 Changeset detected

Latest commit: 679b8a8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 27 packages
Name Type
@finos/legend-vscode-extension-dependencies Patch
@finos/legend-query-builder Patch
@finos/legend-application Patch
@finos/legend-graph Patch
@finos/legend-application-query Patch
@finos/legend-application-studio Patch
@finos/legend-extension-dsl-data-quality Patch
@finos/legend-extension-dsl-data-space-studio Patch
@finos/legend-extension-dsl-data-space Patch
@finos/legend-extension-dsl-service Patch
@finos/legend-application-pure-ide-deployment Patch
@finos/legend-application-pure-ide Patch
@finos/legend-application-query-bootstrap Patch
@finos/legend-application-repl-deployment Patch
@finos/legend-application-repl Patch
@finos/legend-application-studio-bootstrap Patch
@finos/legend-extension-assortment Patch
@finos/legend-extension-dsl-diagram Patch
@finos/legend-extension-dsl-persistence Patch
@finos/legend-extension-dsl-text Patch
@finos/legend-extension-store-flat-data Patch
@finos/legend-extension-store-relational Patch
@finos/legend-extension-store-service-store Patch
@finos/legend-lego Patch
@finos/legend-application-query-deployment Patch
@finos/legend-application-studio-deployment Patch
@finos/legend-server-showcase-deployment Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codecov bot commented Sep 5, 2024

Codecov Report

Attention: Patch coverage is 1.19048% with 83 lines in your changes missing coverage. Please review.

Project coverage is 45.79%. Comparing base (f435394) to head (679b8a8).
Report is 15 commits behind head on master.

Files with missing lines Patch % Lines
.../legend-vscode-extension-dependencies/src/index.ts 0.00% 76 Missing ⚠️
packages/legend-graph/src/index.ts 0.00% 5 Missing ⚠️
packages/legend-application/src/index.ts 0.00% 1 Missing ⚠️
packages/legend-query-builder/src/index.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master    #3499     +/-   ##
=========================================
  Coverage   45.78%   45.79%             
=========================================
  Files        2129     2129             
  Lines      367035   367103     +68     
  Branches    15314    11301   -4013     
=========================================
+ Hits       168059   168120     +61     
- Misses     198235   198317     +82     
+ Partials      741      666     -75     
Files with missing lines Coverage Δ
...ph-manager/protocol/pure/v1/V1_PureGraphManager.ts 49.58% <100.00%> (ø)
packages/legend-application/src/index.ts 0.00% <0.00%> (ø)
packages/legend-query-builder/src/index.ts 0.00% <0.00%> (ø)
packages/legend-graph/src/index.ts 0.00% <0.00%> (ø)
.../legend-vscode-extension-dependencies/src/index.ts 0.00% <0.00%> (ø)

... and 388 files with indirect coverage changes

@travisstebbins travisstebbins changed the title Vs code service query builder Add QueryBuilder to VS Code extension Sep 6, 2024
@@ -4015,7 +4015,7 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
return graphData;
}

private elementToProtocol = <T extends V1_PackageableElement>(
elementToProtocol = <T extends V1_PackageableElement>(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to make this function public because the VS code extension uses the v1 protocol for interacting with the language server, and to save the service to a file, we need to convert the Service object to a V1_Service object and send it to the language server. Since this function already existed in V1_PureGraphManager, it seemed simpler to make it public rather than duplicate the logic somewhere else.

@travisstebbins travisstebbins marked this pull request as ready for review September 6, 2024 18:42
@travisstebbins travisstebbins requested a review from a team as a code owner September 6, 2024 18:42
@MauricioUyaguari MauricioUyaguari merged commit 2f4227b into finos:master Sep 16, 2024
15 checks passed
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.

2 participants