Skip to content

Final Polaris changes #244

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

Merged
merged 1 commit into from
May 2, 2025
Merged

Final Polaris changes #244

merged 1 commit into from
May 2, 2025

Conversation

stevebio
Copy link

@stevebio stevebio commented May 1, 2025

Final Polaris changes

Polaris changes

Polaris changes
@@ -203,8 +205,9 @@ protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String

protected ServerTransform buildServerTransform(ProcessContext context) {
ServerTransform serverTransform = null;
Objects.requireNonNull(context.getProperty(TRANSFORM), "TRANSFORM property should not be null");
final String transform = context.getProperty(TRANSFORM).getValue();
PropertyValue transformProperty = context.getProperty(TRANSFORM);
Copy link

Choose a reason for hiding this comment

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

Not needed now, but this pattern is repeated so often that it'd be worth making helper methods in the parent class to provide syntactic sugar so you can just do e.g.:

String value = getPropertyValue(context, TRANSFORM);

And then parent method would do the null check. Can add variants that evaluate based on the context or the FlowFile too. Just gets it all back down to one line of code per property value.

@stevebio stevebio merged commit ff86460 into develop May 2, 2025
1 check passed
@stevebio stevebio deleted the yetMorePolaris branch May 2, 2025 15:02
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