From c5bd49370dc2982d647b15163c245046358840d5 Mon Sep 17 00:00:00 2001 From: Mohammed Ibrahim Date: Thu, 24 Oct 2024 10:36:24 -0400 Subject: [PATCH 1/2] Remove lineage generation code --- .../generator/SnowflakeAppArtifactGenerationExtension.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/legend-engine-xts-snowflakeApp/legend-engine-xt-snowflakeApp-generator/src/main/java/org/finos/legend/engine/language/snowflakeApp/generator/SnowflakeAppArtifactGenerationExtension.java b/legend-engine-xts-snowflakeApp/legend-engine-xt-snowflakeApp-generator/src/main/java/org/finos/legend/engine/language/snowflakeApp/generator/SnowflakeAppArtifactGenerationExtension.java index 96fcc8c1522..c27c5dc5778 100644 --- a/legend-engine-xts-snowflakeApp/legend-engine-xt-snowflakeApp-generator/src/main/java/org/finos/legend/engine/language/snowflakeApp/generator/SnowflakeAppArtifactGenerationExtension.java +++ b/legend-engine-xts-snowflakeApp/legend-engine-xt-snowflakeApp-generator/src/main/java/org/finos/legend/engine/language/snowflakeApp/generator/SnowflakeAppArtifactGenerationExtension.java @@ -73,13 +73,6 @@ public List generate(PackageableElement element, PureModel pureModel, SnowflakeAppArtifact artifact = SnowflakeAppGenerator.generateArtifact(pureModel, (Root_meta_external_function_activator_snowflakeApp_SnowflakeApp) element, data, routerExtensions); String content = mapper.writeValueAsString(artifact); result.add((new Artifact(content, FILE_NAME, "json"))); - if (!(element._stereotypes().anySatisfy(stereotype -> - stereotype._profile()._name().equals("devStatus") && stereotype._profile()._p_stereotypes().anySatisfy(s -> s._value().equals("inProgress"))))) - { - LOGGER.info("Generating snowflakeApp lineage artifact for " + element.getName()); - String lineage = SnowflakeAppGenerator.generateFunctionLineage(pureModel, (Root_meta_external_function_activator_snowflakeApp_SnowflakeApp) element, data, routerExtensions); - result.add(new Artifact(lineage, LINEAGE_FILE_NAME, "json")); - } LOGGER.info("Generated artifacts for " + element.getName()); } catch (Exception e) From b52e90f860da50176039ace43ccbe4e403387df0 Mon Sep 17 00:00:00 2001 From: Mohammed Ibrahim Date: Thu, 24 Oct 2024 10:37:10 -0400 Subject: [PATCH 2/2] Update HostedServiceArtifactGenerationExtension.java --- .../HostedServiceArtifactGenerationExtension.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/legend-engine-xts-hostedService/legend-engine-xt-hostedService-generation/src/main/java/org/finos/legend/engine/language/hostedService/generation/deployment/HostedServiceArtifactGenerationExtension.java b/legend-engine-xts-hostedService/legend-engine-xt-hostedService-generation/src/main/java/org/finos/legend/engine/language/hostedService/generation/deployment/HostedServiceArtifactGenerationExtension.java index fd746d549e1..111f9f95ac1 100644 --- a/legend-engine-xts-hostedService/legend-engine-xt-hostedService-generation/src/main/java/org/finos/legend/engine/language/hostedService/generation/deployment/HostedServiceArtifactGenerationExtension.java +++ b/legend-engine-xts-hostedService/legend-engine-xt-hostedService-generation/src/main/java/org/finos/legend/engine/language/hostedService/generation/deployment/HostedServiceArtifactGenerationExtension.java @@ -81,14 +81,6 @@ public List generate(PackageableElement element, PureModel pureModel, GenerationInfoData info = HostedServiceArtifactGenerator.renderArtifact(pureModel, activator, data, clientVersion, routerExtensions); PureModelContextData serviceData = HostedServiceArtifactGenerator.fetchHostedService(activator, data, pureModel); result.add(new Artifact(mapper.writeValueAsString(new HostedServiceArtifact(activator._pattern(), info, generatePointerForActivator(serviceData, data), ((Root_meta_external_function_activator_DeploymentOwnership)activator._ownership())._id(), PostDeploymentActionLoader.generateActions(activator), (AlloySDLC) data.origin.sdlcInfo)), FILE_NAME, "json")); - if (!(element._stereotypes().anySatisfy(stereotype -> - stereotype._profile()._name().equals("devStatus") && stereotype._profile()._p_stereotypes().anySatisfy(s -> s._value().equals("inProgress"))))) - { - //lineage - LOGGER.info("Generating hostedService lineage artifacts for " + element.getName()); - String lineage = HostedServiceArtifactGenerator.generateLineage(pureModel, activator, data, routerExtensions); - result.add(new Artifact(lineage, LINEAGE_FILE_NAME, "json")); - } LOGGER.info("Generated artifacts for " + element.getName()); }