Skip to content

Commit

Permalink
fetch entities from master branch when promoting template query (fino…
Browse files Browse the repository at this point in the history
  • Loading branch information
YannanGao-gs authored May 1, 2024
1 parent 782bae5 commit acdd403
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-pumpkins-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finos/legend-extension-dsl-data-space-studio': patch
---

fetch entities from master branch when promoting template query
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
StoreProjectData,
ProjectDependencyCoordinates,
ProjectVersionEntities,
MASTER_SNAPSHOT_ALIAS,
} from '@finos/legend-server-depot';
import {
ActionState,
Expand Down Expand Up @@ -245,7 +246,7 @@ export class DataSpaceTemplateQueryPromotionReviewerStore {
this.depotServerClient.getVersionEntities(
this.currentQuery.groupId,
this.currentQuery.artifactId,
this.currentQuery.versionId,
MASTER_SNAPSHOT_ALIAS,
),
this.sdlcServerClient.getConfiguration(
this.currentQueryProject.projectId,
Expand Down Expand Up @@ -314,7 +315,10 @@ export class DataSpaceTemplateQueryPromotionReviewerStore {
this.currentQuery.artifactId,
)) as PlainObject<StoreProjectData>,
);
this.setWorkspaceName(`${DEFAULT_WORKSPACE_NAME_PREFIX}-${query.name}`);
const updatedQueryName = query.name.replace(/[^a-zA-Z0-9]/g, '');
this.setWorkspaceName(
`${DEFAULT_WORKSPACE_NAME_PREFIX}-${updatedQueryName}`,
);
this.applicationStore.navigationService.navigator.updateCurrentLocation(
generateDataSpaceTemplateQueryPromotionRoute(
this.currentQuery.groupId,
Expand Down

0 comments on commit acdd403

Please sign in to comment.