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

Yyin/QTDI-653 add LastGroup annotation to Processor's afterGroup method. #966

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

yyin-talend
Copy link
Collaborator

https://qlik-dev.atlassian.net/browse/QTDI-653

Requirements

  • Any code change adding any logic MUST be tested through a unit test executed with the default build
  • Any API addition MUST be done with a documentation update if relevant

Why this PR is needed?

What does this PR adds (design/code thoughts)?

@yyin-talend yyin-talend requested a review from undx December 13, 2024 09:44
Copy link
Member

@undx undx left a comment

Choose a reason for hiding this comment

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

Hello,
some comments below.

Why changing the sample-connector, it's not necessary. You can create UT elsewhere in project.
Concerning UT, I think that you should enforce tests on this feature.

  • check backward compatibility
  • check state when using lastgroup
  • etc.

We also need to change validation for aftergroup. We should not be able to
handle both signatures and check for that.

I don't see why component-tools/src/test/resources/org/talend/test/valid/httpclient/Messages.properties
has some changes?

QueueOutput as some todo tasks that were used for debugging...

This comment has been minimized.

This comment has been minimized.

Copy link
Member

@undx undx left a comment

Choose a reason for hiding this comment

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

See comment.
Validation is missing in maven plugin. The ModelVisitor checks for runtime parameter not during build.

@@ -26,4 +28,31 @@ public class AutoChunkProcessor extends org.talend.sdk.component.runtime.manager
public AutoChunkProcessor(final int chunkSize, final Processor processor) {
Copy link
Member

Choose a reason for hiding this comment

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

Please, create an UT to test theses changes. See UTs in this module.

Copy link

sonar-eks bot commented Dec 23, 2024

Passed

Analysis Details

1 Issue

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 1 Code Smell

Coverage and Duplications

  • Coverage 82.42% Coverage (55.20% Estimated after merge)
  • Duplications 2.82% Duplicated Code (1.30% Estimated after merge)

Project ID: org.talend.sdk.component:component-runtime

View in SonarQube

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.

4 participants