Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove lineage generation code #3204

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading