-
Notifications
You must be signed in to change notification settings - Fork 113
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
leverage minimal graph to build query builder with datsapaces #3488
leverage minimal graph to build query builder with datsapaces #3488
Conversation
🦋 Changeset detectedLatest commit: 7d4c264 The changes in this PR will be included in the next version bump. This PR includes changesets to release 29 packages
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 |
2375853
to
b8520b0
Compare
aab4beb
to
e84388e
Compare
packages/legend-application-query/src/components/Core_LegendQueryApplicationPlugin.tsx
Show resolved
Hide resolved
HEADS-UP: To fix (regressions)
|
packages/legend-application-query/src/stores/data-space/DataSpaceQueryCreatorStore.ts
Outdated
Show resolved
Hide resolved
packages/legend-query-builder/src/stores/workflows/ServiceQueryBuilderState.ts
Show resolved
Hide resolved
...-data-space/src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts
Outdated
Show resolved
Hide resolved
packages/legend-extension-dsl-data-space/src/stores/query-builder/DataSpaceQueryBuilderState.ts
Outdated
Show resolved
Hide resolved
packages/legend-application-query/src/stores/QueryEditorStore.ts
Outdated
Show resolved
Hide resolved
packages/legend-graph/src/graph-manager/protocol/pure/v1/V1_PureGraphManager.ts
Outdated
Show resolved
Hide resolved
e84388e
to
0e47202
Compare
packages/legend-graph/src/graph-manager/protocol/pure/v1/V1_PureGraphManager.ts
Outdated
Show resolved
Hide resolved
c4c51c2
to
ca56d82
Compare
packages/legend-extension-dsl-data-space/src/stores/query-builder/DataSpaceQueryBuilderState.ts
Show resolved
Hide resolved
e9fe026
to
136f682
Compare
...-data-space/src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts
Show resolved
Hide resolved
136f682
to
c4ee4a9
Compare
packages/legend-application-query/src/components/Core_LegendQueryApplicationPlugin.tsx
Outdated
Show resolved
Hide resolved
...ges/legend-extension-dsl-data-space/src/components/DSL_DataSpace_LegendApplicationPlugin.tsx
Outdated
Show resolved
Hide resolved
987b5c7
to
04837d5
Compare
b505283
to
4d10245
Compare
57f997c
to
f5123a2
Compare
f5123a2
to
1249704
Compare
28e8963
to
649f158
Compare
packages/legend-graph/src/graph-manager/protocol/pure/v1/V1_PureGraphManager.ts
Show resolved
Hide resolved
...ension-dsl-data-space/src/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.ts
Outdated
Show resolved
Hide resolved
@@ -39,6 +39,7 @@ export enum DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN { | |||
GAV = 'gav', | |||
DATA_SPACE_PATH = 'dataSpacePath', | |||
TEMPLATE = 'template', | |||
EXECUTION_CONTEXT = 'executionContext', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to make this work without requiring the execution context key. we would make the url not backward compatible with this change. can we maybe just resolve the execution key by fetching the dataspace v1 from metadata first ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can merge if you address the last open comments I left (including not requireing exeuction context in URL for template queries).
Anything labeled [Next PR] we can address after testing on integration environment (still need to be done to be considered done with feature).
@@ -82,16 +83,21 @@ const ServiceQueryBuilderSetupPanelContent = observer( | |||
queryBuilderState.selectedExecutionContext, | |||
) | |||
: null; | |||
const onExecutionContextOptionChange = ( | |||
const onExecutionContextOptionChange = async ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[NEXT PR] could we add a test with opening query builder with service with mutli execution and switching.
...-data-space/src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts
Show resolved
Hide resolved
@@ -106,3 +106,70 @@ test( | |||
// await waitFor(() => getByText(dataspaceViewModal, 'this is template with inline query')); | |||
}, | |||
); | |||
|
|||
test( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[NEXT PR] we need to increase test coverage here.
- can we test when no light graph is returned in the result.
- can we maybe add to the engine roundtrip and test the analysis dataspace endpoint and do unit testing on some of the build graph/ build query builder state you have build.
- can we ensure some of the CRUD methods on dataspace queries are still working and saving as expcted.
templateQueryId: string, | ||
plugins: PureProtocolProcessorPlugin[], | ||
): string | undefined { | ||
const analysisResult = V1_deserializeDataSpaceAnalysisResult( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Next PR] lets add a test opening a template query with dataspace (with analytics info and without).
…sapaces (finos#3488) (finos#3640)" This reverts commit 12ca35f.
Summary
Use PMCD returned by mappinganalysis to build minimal graph for query
clean/update: #2523
How did you test this change?
Screen.Recording.2024-09-26.at.10.28.48.PM.mov
enable switch to load full graph
Screen.Recording.2024-09-26.at.10.27.01.PM.mov