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

Add support for post deployment actions #3176

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Yasirmod17
Copy link
Contributor

What type of PR is this?

What does this PR do / why is it needed ?

Which issue(s) this PR fixes:

Fixes #

Other notes for reviewers:

Does this PR introduce a user-facing change?

@Yasirmod17 Yasirmod17 requested a review from a team as a code owner October 14, 2024 14:38
@Yasirmod17 Yasirmod17 marked this pull request as draft October 14, 2024 14:39

public class PostDeploymentResult
{
public String actionType;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also carry a success/failure flag? so we know how to interpret the detail

@@ -122,4 +135,14 @@ public static String fullName(org.finos.legend.engine.protocol.pure.v1.model.pac
return e._package + "::" + e.name;
}

public static List<ActionContent> renderActions(RichIterable<? extends Root_meta_external_function_activator_postDeploymentAction_PostDeploymentAction> actions)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should leverage PostDeploymentLoader, not duplicate the code

import java.util.ServiceLoader;
import java.util.concurrent.atomic.AtomicReference;

public class PostDeploymentLoader
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to keep the naming consistent: This should be PostDeploymentActionLoader


package org.finos.legend.engine.protocol.functionActivator.deployment;

public class PostDeploymentResult
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to keep the naming consistent: This should be PostDeploymentActionResult

<groupId>org.finos.legend.engine</groupId>
<artifactId>legend-engine-identity-core</artifactId>
</dependency>
<dependency>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have the -pure dependency in this pom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants