@finos/legend-application-studio 28.18.43 → 28.18.45
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/editor/editor-group/function-activator/ActivatorFormComponents.d.ts +23 -0
- package/lib/components/editor/editor-group/function-activator/ActivatorFormComponents.d.ts.map +1 -0
- package/lib/components/editor/editor-group/function-activator/ActivatorFormComponents.js +34 -0
- package/lib/components/editor/editor-group/function-activator/ActivatorFormComponents.js.map +1 -0
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.js +6 -3
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js +8 -102
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js +4 -13
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.d.ts +4 -2
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.js +5 -0
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.d.ts +1 -2
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js +29 -7
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js.map +1 -1
- package/package.json +8 -8
- package/src/components/editor/editor-group/function-activator/ActivatorFormComponents.tsx +97 -0
- package/src/components/editor/editor-group/function-activator/FunctionEditor.tsx +38 -1
- package/src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx +5 -349
- package/src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx +7 -42
- package/src/stores/editor/editor-state/element-editor-state/FunctionEditorState.ts +11 -0
- package/src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts +39 -12
- package/tsconfig.json +1 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SnowflakeAppFunctionActivatorEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,0BAA0B,EAC1B,4BAA4B,EAC5B,YAAY,EACZ,
|
1
|
+
{"version":3,"file":"SnowflakeAppFunctionActivatorEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,0BAA0B,EAC1B,4BAA4B,EAC5B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AEV,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;qDAC5B,mCAAmC,EAExC,WAAW,EAAC,4BAA4B,GACxC,IACE,GACF,IACI,EACZ,KAAC,SAAS,cACR,KAAC,kBAAkB,IACjB,KAAK,EAAE,SAAS,CAAC,SAAS,EAC1B,UAAU,EAAE,UAAU,EACtB,IAAI,EAAC,YAAY,EACjB,WAAW,EAAC,mCAAmC,EAC/C,MAAM,EAAE,CAAC,KAAyB,EAAQ,EAAE,CAC1C,WAAW,CAAC,eAAe,CAAC,KAAK,CAAC,GAEpC,GACQ,EACZ,KAAC,SAAS,cACR,eAAK,SAAS,EAAC,+BAA+B,aAC5C,cAAK,SAAS,EAAC,8CAA8C,4BAEvD,EACN,cAAK,SAAS,EAAC,+CAA+C,YAAE,8CAA8C,GAAO,EACrH,mBACE,SAAS,EAAC,8EAA8E,EACxF,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,UAAU,EACpB,KAAK,EAAE,SAAS,CAAC,WAAW,EAC5B,QAAQ,EAAE,iBAAiB,GAC3B,IACE,GACI,EACZ,KAAC,SAAS,cACR,KAAC,sBAAsB,IACrB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,GACtB,GACQ,IACC,IACT,GACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
import type { EditorStore } from '../../EditorStore.js';
|
17
17
|
import { type GeneratorFn } from '@finos/legend-shared';
|
18
18
|
import { ElementEditorState } from './ElementEditorState.js';
|
19
|
-
import { type CompilationError, type PackageableElement, type ExecutionResult, type ExecutionResultWithMetadata, ConcreteFunctionDefinition, RawLambda } from '@finos/legend-graph';
|
19
|
+
import { type CompilationError, type PackageableElement, type ExecutionResult, type ExecutionResultWithMetadata, ConcreteFunctionDefinition, RawLambda, type FunctionActivator } from '@finos/legend-graph';
|
20
20
|
import { ExecutionPlanState, LambdaEditorState, LambdaParameterState, LambdaParametersState } from '@finos/legend-query-builder';
|
21
21
|
import { FunctionActivatorState } from './FunctionActivatorState.js';
|
22
22
|
import { FunctionTestableState } from './function-activator/testable/FunctionTestableState.js';
|
@@ -24,7 +24,8 @@ export declare enum FUNCTION_EDITOR_TAB {
|
|
24
24
|
DEFINITION = "DEFINITION",
|
25
25
|
TAGGED_VALUES = "TAGGED_VALUES",
|
26
26
|
STEREOTYPES = "STEREOTYPES",
|
27
|
-
TEST_SUITES = "TEST_SUITES"
|
27
|
+
TEST_SUITES = "TEST_SUITES",
|
28
|
+
LAMBDAS = "LAMBDAS"
|
28
29
|
}
|
29
30
|
export declare class FunctionDefinitionEditorState extends LambdaEditorState {
|
30
31
|
readonly editorStore: EditorStore;
|
@@ -59,6 +60,7 @@ export declare class FunctionEditorState extends ElementEditorState {
|
|
59
60
|
constructor(editorStore: EditorStore, element: PackageableElement);
|
60
61
|
get label(): string;
|
61
62
|
get functionElement(): ConcreteFunctionDefinition;
|
63
|
+
get activators(): FunctionActivator[];
|
62
64
|
setSelectedTab(tab: FUNCTION_EDITOR_TAB): void;
|
63
65
|
revealCompilationError(compilationError: CompilationError): boolean;
|
64
66
|
clearCompilationError(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FunctionEditorState.d.ts","sourceRoot":"","sources":["../../../../../src/stores/editor/editor-state/element-editor-state/FunctionEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EACL,KAAK,WAAW,EAQjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EAEpB,KAAK,2BAA2B,EAIhC,0BAA0B,EAC1B,SAAS,
|
1
|
+
{"version":3,"file":"FunctionEditorState.d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AI;IAIpC,kBAAkB,oBAAqB,eAAe,GAAG,SAAS,KAAG,IAAI,CAEvE;IAEF,iBAAiB,YACN,OAAO,CAAC,2BAA2B,CAAC,GAAG,SAAS,KACxD,IAAI,CAEL;IAEF,IAAI,sBAAsB,IAAI,SAAS,CAStC;IAEA,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;IAqF/C,aAAa,IAAI,WAAW,CAAC,IAAI,CAAC;IAalC,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC;IAqE5B,aAAa,IAAI,WAAW,CAAC,IAAI,CAAC;CAepC"}
|
@@ -26,6 +26,7 @@ export var FUNCTION_EDITOR_TAB;
|
|
26
26
|
FUNCTION_EDITOR_TAB["TAGGED_VALUES"] = "TAGGED_VALUES";
|
27
27
|
FUNCTION_EDITOR_TAB["STEREOTYPES"] = "STEREOTYPES";
|
28
28
|
FUNCTION_EDITOR_TAB["TEST_SUITES"] = "TEST_SUITES";
|
29
|
+
FUNCTION_EDITOR_TAB["LAMBDAS"] = "LAMBDAS";
|
29
30
|
})(FUNCTION_EDITOR_TAB || (FUNCTION_EDITOR_TAB = {}));
|
30
31
|
export class FunctionDefinitionEditorState extends LambdaEditorState {
|
31
32
|
editorStore;
|
@@ -190,6 +191,10 @@ export class FunctionEditorState extends ElementEditorState {
|
|
190
191
|
get functionElement() {
|
191
192
|
return guaranteeType(this.element, ConcreteFunctionDefinition, 'Element inside function editor state must be a function');
|
192
193
|
}
|
194
|
+
get activators() {
|
195
|
+
const allActivators = this.editorStore.graphManagerState.graph.functionActivators;
|
196
|
+
return allActivators.filter((activator) => activator.function.value === this.element);
|
197
|
+
}
|
193
198
|
setSelectedTab(tab) {
|
194
199
|
this.selectedTab = tab;
|
195
200
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FunctionEditorState.js","sourceRoot":"","sources":["../../../../../src/stores/editor/editor-state/element-editor-state/FunctionEditorState.ts"],"names":[],"mappings":"AAAA;;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C;YAC9C,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAChD,QAAQ,CAAC,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,EACtD,KAAK,CACN,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
1
|
+
{"version":3,"file":"FunctionEditorState.js","sourceRoot":"","sources":["../../../../../src/stores/editor/editor-state/element-editor-state/FunctionEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,QAAQ,EACR,UAAU,EACV,MAAM,EACN,cAAc,EACd,IAAI,EACJ,UAAU,EACV,QAAQ,GACT,MAAM,MAAM,CAAC;AAEd,OAAO,EAEL,iBAAiB,EACjB,QAAQ,EACR,aAAa,EACb,UAAU,EACV,SAAS,EACT,YAAY,EACZ,UAAU,GACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAML,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,0BAA0B,EAC1B,SAAS,EACT,8BAA8B,EAC9B,4BAA4B,EAC5B,oBAAoB,EACpB,8BAA8B,EAC9B,kBAAkB,EAClB,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,GAEtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,2BAA2B,EAC3B,6BAA6B,EAC7B,8BAA8B,GAC/B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAE/F,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,gDAAyB,CAAA;IACzB,sDAA+B,CAAA;IAC/B,kDAA2B,CAAA;IAC3B,kD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UAAU,CAAC,KAAK,CAChD,QAAQ,CAAC,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,EACtD,KAAK,CACN,CAAC;gBACF,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAC/D,KAAK,CACN,CAAC;YACJ,CAAC;QACH,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC7B,CAAC;IACH,CAAC;IAED,CAAC,aAAa;QACZ,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;QAC7B,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;QAClC,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,YAAY,CAAC,oBAAoB,CACxE,IAAI,CACL,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,8CAA8C;YAC9C,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAChD,QAAQ,CAAC,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,EACtD,KAAK,CACN,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
@@ -18,7 +18,7 @@ import { type GeneratorFn, ActionState } from '@finos/legend-shared';
|
|
18
18
|
import type { EditorStore } from '../../../EditorStore.js';
|
19
19
|
import { ElementEditorState } from '../ElementEditorState.js';
|
20
20
|
import { User } from '@finos/legend-server-sdlc';
|
21
|
-
declare enum HostedServiceOwnershipType {
|
21
|
+
export declare enum HostedServiceOwnershipType {
|
22
22
|
DEPLOYMENT_OWNERSHIP = "deploymentOwnership",
|
23
23
|
USERLIST_OWNERSHIP = "userListOwnership"
|
24
24
|
}
|
@@ -55,5 +55,4 @@ export declare class HostedServiceFunctionActivatorEditorState extends ElementEd
|
|
55
55
|
searchUsers(name: string): GeneratorFn<User[]>;
|
56
56
|
reprocess(newElement: HostedService, editorStore: EditorStore): HostedServiceFunctionActivatorEditorState;
|
57
57
|
}
|
58
|
-
export {};
|
59
58
|
//# sourceMappingURL=HostedServiceFunctionActivatorEditorState.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HostedServiceFunctionActivatorEditorState.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,aAAa,EAId,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EAIZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;
|
1
|
+
{"version":3,"file":"HostedServiceFunctionActivatorEditorState.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,aAAa,EAId,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EAIZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAOjD,oBAAY,0BAA0B;IACpC,oBAAoB,wBAAwB;IAC5C,kBAAkB,sBAAsB;CACzC;AACD,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAC/C,eAAO,MAAM,wBAAwB,eAAe,CAAC;AACrD,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;GAK7B,CAAC;AAEF,oBAAY,oBAAoB;IAC9B,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;CAC5B;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,qBAAa,yCAA0C,SAAQ,kBAAkB;IAC/E,QAAQ,CAAC,aAAa,cAAwB;IAC9C,QAAQ,CAAC,WAAW,cAAwB;IAE5C,WAAW,EAAE,oBAAoB,CAAC;gBAEtB,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa;IAqB5D,cAAc,CAAC,GAAG,EAAE,oBAAoB,GAAG,IAAI;IAI/C,IAAI,SAAS,IAAI,aAAa,CAQ7B;IAED,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAItC,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIhC,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI9B,IAAI,iBAAiB,IAAI,wBAAwB,GAAG,SAAS,CAc5D;IAED,oBAAoB,CAAC,CAAC,EAAE,wBAAwB,GAAG,IAAI;IA2BtD,QAAQ,IAAI,WAAW,CAAC,IAAI,CAAC;IAkB7B,eAAe,IAAI,WAAW,CAAC,IAAI,CAAC;IA6CpC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC;IAc/C,SAAS,CACP,UAAU,EAAE,aAAa,EACzB,WAAW,EAAE,WAAW,GACvB,yCAAyC;CAM7C"}
|
@@ -19,8 +19,9 @@ import { makeObservable, action, flow, computed, observable } from 'mobx';
|
|
19
19
|
import { ElementEditorState } from '../ElementEditorState.js';
|
20
20
|
import { activator_setOwnership } from '../../../../graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
|
21
21
|
import { User } from '@finos/legend-server-sdlc';
|
22
|
+
import { ActionAlertActionType, ActionAlertType, } from '@finos/legend-application';
|
22
23
|
//Ownership
|
23
|
-
var HostedServiceOwnershipType;
|
24
|
+
export var HostedServiceOwnershipType;
|
24
25
|
(function (HostedServiceOwnershipType) {
|
25
26
|
HostedServiceOwnershipType["DEPLOYMENT_OWNERSHIP"] = "deploymentOwnership";
|
26
27
|
HostedServiceOwnershipType["USERLIST_OWNERSHIP"] = "userListOwnership";
|
@@ -33,10 +34,6 @@ export const OWNERSHIP_OPTIONS = [
|
|
33
34
|
label: DeploymentOwnershipLabel,
|
34
35
|
value: HostedServiceOwnershipType.DEPLOYMENT_OWNERSHIP,
|
35
36
|
},
|
36
|
-
{
|
37
|
-
label: UserlistOwnershipLabel,
|
38
|
-
value: HostedServiceOwnershipType.USERLIST_OWNERSHIP,
|
39
|
-
},
|
40
37
|
];
|
41
38
|
export var ACTIVATOR_EDITOR_TAB;
|
42
39
|
(function (ACTIVATOR_EDITOR_TAB) {
|
@@ -131,8 +128,33 @@ export class HostedServiceFunctionActivatorEditorState extends ElementEditorStat
|
|
131
128
|
*deployToSandbox() {
|
132
129
|
this.deployState.inProgress();
|
133
130
|
try {
|
134
|
-
yield this.editorStore.graphManagerState.graphManager
|
135
|
-
|
131
|
+
yield this.editorStore.graphManagerState.graphManager
|
132
|
+
.publishFunctionActivatorToSandbox(this.activator, new InMemoryGraphData(this.editorStore.graphManagerState.graph))
|
133
|
+
.then((response) => this.editorStore.applicationStore.alertService.setActionAlertInfo({
|
134
|
+
message: `Hosted Service Function Activator has been deployed successfully`,
|
135
|
+
prompt: response.deploymentLocation
|
136
|
+
? 'You can now launch and monitor the operation of your function activator'
|
137
|
+
: undefined,
|
138
|
+
type: ActionAlertType.STANDARD,
|
139
|
+
actions: [
|
140
|
+
...(response.deploymentLocation !== undefined
|
141
|
+
? [
|
142
|
+
{
|
143
|
+
label: 'Launch Service',
|
144
|
+
type: ActionAlertActionType.PROCEED,
|
145
|
+
handler: () => {
|
146
|
+
this.editorStore.applicationStore.navigationService.navigator.visitAddress(response.deploymentLocation ?? '');
|
147
|
+
},
|
148
|
+
default: true,
|
149
|
+
},
|
150
|
+
]
|
151
|
+
: []),
|
152
|
+
{
|
153
|
+
label: 'Close',
|
154
|
+
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
155
|
+
},
|
156
|
+
],
|
157
|
+
}));
|
136
158
|
}
|
137
159
|
catch (error) {
|
138
160
|
assertErrorThrown(error);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HostedServiceFunctionActivatorEditorState.js","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,aAAa,GAEd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,yEAAyE,CAAC;AACjH,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;
|
1
|
+
{"version":3,"file":"HostedServiceFunctionActivatorEditorState.js","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,aAAa,GAEd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,E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,EAAE,CAAC;YACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC3E,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAC9B,CAAC;IACH,CAAC;IAED,CAAC,WAAW,CAAC,IAAY;QACvB,IAAI,CAAC;YACH,OACE,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,QAAQ,CAC/C,IAAI,CACL,CACF,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YACzE,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;IAED,SAAS,CACP,UAAyB,EACzB,WAAwB;QAExB,OAAO,IAAI,yCAAyC,CAClD,WAAW,EACX,UAAU,CACX,CAAC;IACJ,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-application-studio",
|
3
|
-
"version": "28.18.
|
3
|
+
"version": "28.18.45",
|
4
4
|
"description": "Legend Studio application core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -45,13 +45,13 @@
|
|
45
45
|
"test:watch": "jest --watch"
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
|
-
"@finos/legend-application": "16.0.
|
49
|
-
"@finos/legend-art": "7.1.
|
50
|
-
"@finos/legend-code-editor": "2.0.
|
51
|
-
"@finos/legend-graph": "31.10.
|
52
|
-
"@finos/legend-lego": "2.0.
|
53
|
-
"@finos/legend-query-builder": "4.15.
|
54
|
-
"@finos/legend-server-depot": "6.0.
|
48
|
+
"@finos/legend-application": "16.0.4",
|
49
|
+
"@finos/legend-art": "7.1.63",
|
50
|
+
"@finos/legend-code-editor": "2.0.6",
|
51
|
+
"@finos/legend-graph": "31.10.40",
|
52
|
+
"@finos/legend-lego": "2.0.8",
|
53
|
+
"@finos/legend-query-builder": "4.15.5",
|
54
|
+
"@finos/legend-server-depot": "6.0.63",
|
55
55
|
"@finos/legend-server-sdlc": "5.3.33",
|
56
56
|
"@finos/legend-server-showcase": "0.2.30",
|
57
57
|
"@finos/legend-shared": "10.0.57",
|
@@ -0,0 +1,97 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import { ExclamationCircleIcon } from '@finos/legend-art';
|
18
|
+
import {
|
19
|
+
DeploymentOwner,
|
20
|
+
UserList,
|
21
|
+
type FunctionActivator,
|
22
|
+
} from '@finos/legend-graph';
|
23
|
+
import { observer } from 'mobx-react-lite';
|
24
|
+
import {
|
25
|
+
activator_setDeploymentOwner,
|
26
|
+
activator_setOwnership,
|
27
|
+
} from '../../../../stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
|
28
|
+
import { useState } from 'react';
|
29
|
+
|
30
|
+
export const ActivatorOwnershipForm = observer(
|
31
|
+
(props: { activator: FunctionActivator; isReadOnly: boolean }) => {
|
32
|
+
const { activator, isReadOnly } = props;
|
33
|
+
const ownership = activator.ownership;
|
34
|
+
|
35
|
+
const [ownerInputValue, setOwner] = useState<string>(
|
36
|
+
ownership instanceof DeploymentOwner ? ownership.id : '',
|
37
|
+
);
|
38
|
+
const updateDeploymentIdentifier: React.ChangeEventHandler<
|
39
|
+
HTMLInputElement
|
40
|
+
> = (event) => {
|
41
|
+
if (!isReadOnly && ownership instanceof DeploymentOwner) {
|
42
|
+
setOwner(event.target.value);
|
43
|
+
activator_setDeploymentOwner(ownership, event.target.value);
|
44
|
+
}
|
45
|
+
};
|
46
|
+
|
47
|
+
return (
|
48
|
+
<div>
|
49
|
+
<div className="panel__content__form__section">
|
50
|
+
<div className="panel__content__form__section__header__label">
|
51
|
+
Ownership
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
{ownership instanceof DeploymentOwner && (
|
55
|
+
<div className="panel__content__form__section">
|
56
|
+
<div className="panel__content__form__section__header__prompt">
|
57
|
+
Provide a deployment identifier that will own the Lambda.
|
58
|
+
</div>
|
59
|
+
<input
|
60
|
+
className="panel__content__form__section__input"
|
61
|
+
spellCheck={false}
|
62
|
+
disabled={isReadOnly}
|
63
|
+
value={ownerInputValue}
|
64
|
+
onChange={updateDeploymentIdentifier}
|
65
|
+
/>
|
66
|
+
</div>
|
67
|
+
)}
|
68
|
+
{ownership instanceof UserList && (
|
69
|
+
<div className="project-configuration-editor__project__structure__version">
|
70
|
+
<div className="project-configuration-editor__project__structure__version__label">
|
71
|
+
<div className="project-configuration-editor__project__structure__version__label__status">
|
72
|
+
<ExclamationCircleIcon className="project-configuration-editor__project__structure__version__label__status--outdated" />
|
73
|
+
</div>
|
74
|
+
<div className="project-configuration-editor__project__structure__version__label__text">
|
75
|
+
{`User List Ownership has been deprecated`}
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
<button
|
79
|
+
className="project-configuration-editor__project__structure__version__update-btn"
|
80
|
+
disabled={isReadOnly}
|
81
|
+
onClick={() =>
|
82
|
+
activator_setOwnership(
|
83
|
+
activator,
|
84
|
+
new DeploymentOwner('', activator),
|
85
|
+
)
|
86
|
+
}
|
87
|
+
tabIndex={-1}
|
88
|
+
title={`Click to Change to Deployment`}
|
89
|
+
>
|
90
|
+
Change to Deployment
|
91
|
+
</button>
|
92
|
+
</div>
|
93
|
+
)}
|
94
|
+
</div>
|
95
|
+
);
|
96
|
+
},
|
97
|
+
);
|
@@ -65,6 +65,7 @@ import {
|
|
65
65
|
BaseCard,
|
66
66
|
Snowflake_BrandIcon,
|
67
67
|
InputWithInlineValidation,
|
68
|
+
LongArrowRightIcon,
|
68
69
|
} from '@finos/legend-art';
|
69
70
|
import { LEGEND_STUDIO_TEST_ID } from '../../../../__lib__/LegendStudioTesting.js';
|
70
71
|
import {
|
@@ -102,6 +103,7 @@ import {
|
|
102
103
|
RawLambda,
|
103
104
|
DatabaseType,
|
104
105
|
RelationalDatabaseConnection,
|
106
|
+
type FunctionActivator,
|
105
107
|
} from '@finos/legend-graph';
|
106
108
|
import {
|
107
109
|
type ApplicationStore,
|
@@ -1291,6 +1293,9 @@ export const FunctionEditor = observer(() => {
|
|
1291
1293
|
}
|
1292
1294
|
});
|
1293
1295
|
|
1296
|
+
const visitActivator = (activator: FunctionActivator): void =>
|
1297
|
+
functionEditorState.editorStore.graphEditorMode.openElement(activator);
|
1298
|
+
|
1294
1299
|
const openFunctionActivateModal = (): void => {
|
1295
1300
|
functionEditorState.activatorPromoteState.showFunctionActivateModal();
|
1296
1301
|
};
|
@@ -1431,7 +1436,9 @@ export const FunctionEditor = observer(() => {
|
|
1431
1436
|
<button
|
1432
1437
|
className="panel__header__action"
|
1433
1438
|
disabled={
|
1434
|
-
isReadOnly ||
|
1439
|
+
isReadOnly ||
|
1440
|
+
selectedTab === FUNCTION_EDITOR_TAB.DEFINITION ||
|
1441
|
+
selectedTab === FUNCTION_EDITOR_TAB.LAMBDAS
|
1435
1442
|
}
|
1436
1443
|
onClick={add}
|
1437
1444
|
tabIndex={-1}
|
@@ -1497,6 +1504,36 @@ export const FunctionEditor = observer(() => {
|
|
1497
1504
|
}
|
1498
1505
|
/>
|
1499
1506
|
)}
|
1507
|
+
{selectedTab === FUNCTION_EDITOR_TAB.LAMBDAS && (
|
1508
|
+
<div>
|
1509
|
+
<div className="hosted-service-function-activator-editor__configuration__items">
|
1510
|
+
{functionEditorState.activators.map((activator) => (
|
1511
|
+
<div
|
1512
|
+
key={activator.name}
|
1513
|
+
className="hosted-service-function-activator-editor__configuration__item"
|
1514
|
+
>
|
1515
|
+
<div className="btn--sm btn--icon--dark hosted-service-function-activator-editor__configuration__item__label">
|
1516
|
+
{getElementIcon(activator, editorStore)}
|
1517
|
+
</div>
|
1518
|
+
<input
|
1519
|
+
className="panel__content__form__section__input"
|
1520
|
+
spellCheck={false}
|
1521
|
+
disabled={true}
|
1522
|
+
value={activator.path}
|
1523
|
+
/>
|
1524
|
+
<button
|
1525
|
+
className="btn--dark btn--sm hosted-service-function-activator-editor__configuration__item__btn"
|
1526
|
+
onClick={() => visitActivator(activator)}
|
1527
|
+
tabIndex={-1}
|
1528
|
+
title="See Lambda"
|
1529
|
+
>
|
1530
|
+
<LongArrowRightIcon />
|
1531
|
+
</button>
|
1532
|
+
</div>
|
1533
|
+
))}
|
1534
|
+
</div>
|
1535
|
+
</div>
|
1536
|
+
)}
|
1500
1537
|
<ExecutionPlanViewer
|
1501
1538
|
executionPlanState={functionEditorState.executionPlanState}
|
1502
1539
|
/>
|