NIFI-14892 Aligned those processors and controller services whose property names do not match the human-friendly display names in extended bundles nifi-airtable-bundle, nifi-amqp-bundle, nifi-asana-bundle, nifi-asn1-bundle and nifi-aws-bundle.#10292
NIFI-14892 Aligned those processors and controller services whose property names do not match the human-friendly display names in extended bundles nifi-airtable-bundle, nifi-amqp-bundle, nifi-asana-bundle, nifi-asn1-bundle and nifi-aws-bundle.#10292exceptionfactory merged 4 commits intoapache:mainfrom
Conversation
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for working on these changes @dan-s1.
This is one of the rare cases where I don't think unit tests are helpful. The problem is that the tests requiring reproducing the deprecated property names and expected names in the test. If the migrate methods included more complex logic, testing could be useful, but simply asserting that expected mappings occurred seems like unnecessary repetition.
|
@exceptionfactory I understand for the those unit tests which test the properties defined in the actual processor. But what about processors which inherit properties from a parent and have their own properties defined? I would think we would want to to test |
|
Thanks for the reply @dan-s1, that's a good point about Processors with migrate methods in super classes, or those that use utilities for migration. I am supportive of unit tests for those scenarios. What do you think about using that as the decision point, and removing some of the unit tests where the migration is a simple one-to-one in the same class? |
|
@exceptionfactory I just want to clarify what I should do for those classes which inherit properties from a parent but do not have properties of there own to rename hence they do not define override Also a separate question I have is I noticed that in
The |
…perty names do not match the human-friendly display names in extended bundles nifi-airtable-bundle, nifi-amqp-bundle, nifi-asana-bundle, nifi-asn1-bundle and nifi-aws-bundle.
…ved renaming of AWS REGION property from PutSQS.
|
@exceptionfactory If you are okay with it, I am going to pull up the |
Sounds good, thanks. |
… parent class AbstractAwsProcessor and super.migrateProperties where they were left out.
|
Please see the tables in the Summary above detailing which classes are overriding |
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for the updates @dan-s1, this looks close to completion, I noted a couple property names to adjust, and a couple places where the superclass method should be called.
...p-bundle/nifi-amqp-processors/src/main/java/org/apache/nifi/amqp/processors/PublishAMQP.java
Show resolved
Hide resolved
...p-bundle/nifi-amqp-processors/src/main/java/org/apache/nifi/amqp/processors/ConsumeAMQP.java
Show resolved
Hide resolved
...processors/src/main/java/org/apache/nifi/processors/aws/kinesis/stream/PutKinesisStream.java
Outdated
Show resolved
Hide resolved
...processors/src/main/java/org/apache/nifi/processors/aws/kinesis/stream/PutKinesisStream.java
Outdated
Show resolved
Hide resolved
...processors/src/main/java/org/apache/nifi/processors/aws/kinesis/stream/PutKinesisStream.java
Outdated
Show resolved
Hide resolved
...processors/src/main/java/org/apache/nifi/processors/aws/kinesis/stream/PutKinesisStream.java
Outdated
Show resolved
Hide resolved
… modified a property description.
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks @dan-s1, the latest version looks good. +1 merging
|
@exceptionfactory Thanks for approving and merging! |
Summary
NIFI-14892
To better understand where changes were made for migrate properties in the AWS related code, it is important to note the two parent classes in two distinct hierarchies whose children override the
migratePropertiesmethod. The two parent classes areAbstractAwsProcessorandAbstractAWSCredentialsProviderProcessor. The tables below detail the children which extend these classes and whose children extend those children. Also detailed are which classes which overridemigratePropertieswhich is important to keep track of in terms of calling the parent'smigratePropertiesmethod withsuper.migrateProperties.AbstractAwsSyncProcessor
AbstractAwsMachineLearningJobStatusProcessor
AbstractDynamoDBProcessor
DeleteSQS
GetSQS
PutKinesisFirehose
PutKinesisStream
PutLambda
PutSNS
PutCloudWatchMetric
PuSQS
AbstractAwsMachineLearningJobStatusProcessor
PutCloudWatchMetric
PutKinesisStream
PutSQS
StartAwsTextractJob
StartAwsTranscribeJob
StartAwsTranslateJob
GetAwsTextractJobStatus
GetAwsTranscribeJobStatus
GetAwsTranslateJobStatus
GetDynamoDB
PutDynamoDB
PutDynamoDBRecord
DeleteS3Object
FetchS3Object
GetS3ObjectMetadata
GetS3ObjectTags
ListS3
PutS3Object
TagS3Object
ListS3
PutS3Object
TagS3Object
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000Pull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
./mvnw clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation