Skip to content

Commit

Permalink
Remove lineage generation code (#3204)
Browse files Browse the repository at this point in the history
* Remove lineage generation code

* Update HostedServiceArtifactGenerationExtension.java
  • Loading branch information
Yasirmod17 authored Oct 24, 2024
1 parent 0ecee00 commit 510c5f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,6 @@ public List<Artifact> 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());

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,6 @@ public List<Artifact> 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)
Expand Down

0 comments on commit 510c5f9

Please sign in to comment.