Skip to content

Commit

Permalink
Enable hosted service in studio (#2946)
Browse files Browse the repository at this point in the history
  • Loading branch information
janeenyamak1 authored Feb 26, 2024
1 parent 59ea477 commit 8800668
Show file tree
Hide file tree
Showing 42 changed files with 1,903 additions and 38 deletions.
3 changes: 3 additions & 0 deletions .changeset/lucky-wolves-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
'@finos/legend-graph': patch
---
5 changes: 5 additions & 0 deletions .changeset/lucky-wolves-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finos/legend-application-studio': patch
---

Enable and support hosted service
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ import {
RuleEngagementCard,
DocumentationCard,
} from '../../workspace-setup/WorkspaceSetup.js';
import { HostedServiceFunctionActivatorEditorState } from '../../../stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js';
import { HostedServiceFunctionActivatorEditor } from './function-activator/HostedServiceFunctionActivatorEditor.js';

export const ViewerEditorGroupSplashScreen: React.FC = () => {
const commandListWidth = 300;
Expand Down Expand Up @@ -293,6 +295,14 @@ export const EditorGroup = observer(() => {
return (
<SnowflakeAppFunctionActivatorEditor key={currentTabState.uuid} />
);
} else if (
currentTabState instanceof HostedServiceFunctionActivatorEditorState
) {
return (
<HostedServiceFunctionActivatorEditor
key={currentTabState.uuid}
/>
);
} else if (currentTabState instanceof UnsupportedElementEditorState) {
return <UnsupportedElementEditor key={currentTabState.uuid} />;
} else if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ enum FUNCTION_PARAMETER_TYPE {

export enum FUNCTION_ACTIVATE_TYPE {
SNOWFLAKE_NATIVE_APP = 'Snowflake Native App',
REST_SERVICE = 'REST Service',
HOSTED_SERVICE = 'REST Service',
SERVICE_JAR = 'Service JAR',
REFINER = 'Refiner',
BIG_QUERY_NATIVE_APP = 'BigQuery Native App',
Expand Down Expand Up @@ -742,18 +742,22 @@ const FunctionPromoteEditor = observer(
}}
/>
);
case FUNCTION_ACTIVATE_TYPE.REST_SERVICE:
case FUNCTION_ACTIVATE_TYPE.HOSTED_SERVICE:
return (
<BaseCard
key={FUNCTION_ACTIVATE_TYPE.REST_SERVICE}
cardMedia={<div className="coming-soon-label">Coming Soon</div>}
key={FUNCTION_ACTIVATE_TYPE.HOSTED_SERVICE}
cardMedia={
<RocketIcon className="function-promote-editor__type-icon" />
}
cardName={type}
cardContent="Create a HostedService that will be deployed to a server environment and executed with a pattern"
isDisable={true}
isActive={
activatorPromoteState.activateType ===
FUNCTION_ACTIVATE_TYPE.REST_SERVICE
FUNCTION_ACTIVATE_TYPE.HOSTED_SERVICE
}
onClick={() => {
activatorPromoteState.setAcitvateType(type);
}}
/>
);
case FUNCTION_ACTIVATE_TYPE.SERVICE_JAR:
Expand Down
Loading

0 comments on commit 8800668

Please sign in to comment.