Skip to content

Commit

Permalink
enable function test editor
Browse files Browse the repository at this point in the history
  • Loading branch information
MauricioUyaguari committed Mar 10, 2024
1 parent 0d0e670 commit 7eb49e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .changeset/clean-cycles-destroy.md
@@ -0,0 +1,4 @@
---
'@finos/legend-application-studio': patch
'@finos/legend-graph': patch
---
Expand Up @@ -1277,12 +1277,6 @@ export const FunctionEditor = observer(() => {
const openFunctionActivateModal = (): void => {
functionEditorState.activatorPromoteState.showFunctionActivateModal();
};
// tabs
const functionTabs = Object.values(FUNCTION_EDITOR_TAB).filter(
(val) =>
val !== FUNCTION_EDITOR_TAB.TEST_SUITES ||
editorStore.applicationStore.config.options.NonProductionFeatureFlag,
);
return (
<div
data-testid={LEGEND_STUDIO_TEST_ID.FUNCTION_EDITOR}
Expand All @@ -1304,7 +1298,7 @@ export const FunctionEditor = observer(() => {
</div>
<div className="panel__header function-editor__tabs__header">
<div className="function-editor__tabs">
{functionTabs.map((tab) => (
{Object.values(FUNCTION_EDITOR_TAB).map((tab) => (
<div
key={tab}
onClick={changeTab(tab)}
Expand Down
3 changes: 1 addition & 2 deletions packages/legend-graph/src/graph/BasicModel.ts
Expand Up @@ -251,8 +251,7 @@ export abstract class BasicModel {
const coreTestables = [
...this.ownServices,
...this.ownMappings,
// TODO: re-add functions once function test runner has been completed in backend
// ...this.ownFunctions,
...this.ownFunctions,
];
const filters = this.graphPlugins.flatMap(
(plugin) => plugin.getExtraTestablesCollectors?.() ?? [],
Expand Down

0 comments on commit 7eb49e3

Please sign in to comment.