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

[ISSUE #3903] Unwritten public or protected field [HeartbeatRequestBody] #4757

Merged
merged 2 commits into from
Jan 26, 2024
Merged

[ISSUE #3903] Unwritten public or protected field [HeartbeatRequestBody] #4757

merged 2 commits into from
Jan 26, 2024

Conversation

AaronGhebretinsae
Copy link
Contributor

@AaronGhebretinsae AaronGhebretinsae commented Jan 24, 2024

Fixes #3903

Motivation

I am currently new to open source contributing and would like to gain experience solving issues and navigating git in order to become a better contributor.

Modifications

-Added appropriate getters and setters for HeartbeatEntity class in HeartbeatRequestBody.java.

-Updated EventMeshHttpConsumer.java to access aforementioned variables using correct setters.

-Updated HeartbeatProcessor.java to access aforementioned variables using correct getters.

Documentation

Screenshot (18)

At eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/http/body/client/HeartbeatRequestBody.java line 70-75

Screenshot (19)

At eventmesh-sdk
java/src/main/java/org/apache/eventmesh/client/http/consumer/EventMeshHttpConsumer.java line 120,121

Screenshot (20)

At eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/HeartBeatProcessor.java line 115,116

  • Does this pull request introduce a new feature? no

resolves #3903

…artbeatRequestBody.java. updated EventMeshHttpConsumer.java to access aforementioned variables using correct setters. Updated HeartbeatProcessor.java to access aforementioned variables using correct getters.
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to the Apache EventMesh community!!
This is your first PR in our project. We're very excited to have you onboard contributing. Your contributions are greatly appreciated!

Please make sure that the changes are covered by tests.
We will be here shortly.
Let us know if you need any help!

Want to get closer to the community?

WeChat Assistant WeChat Public Account Slack
Join Slack Chat

Mailing Lists:

Name Description Subscribe Unsubscribe Archive
Users User support and questions mailing list Subscribe Unsubscribe Mail Archives
Development Development related discussions Subscribe Unsubscribe Mail Archives
Commits All commits to repositories Subscribe Unsubscribe Mail Archives
Issues Issues or PRs comments and reviews Subscribe Unsubscribe Mail Archives

Copy link
Member

@mxsm mxsm left a comment

Choose a reason for hiding this comment

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

@AaronGhebretinsae Welcome to Apache EventMesh community, thanks for your contribution. please link this pr to the target issue.How to do this?You can refer to the submitted PR for more details.

Comment on lines 77 to 107
public String getTopic() {
return topic;
}

public void setTopic(String topic) {
this.topic = topic;
}

public String getServiceId() {
return serviceId;
}

public void setServiceId(String serviceId) {
this.serviceId = serviceId;
}

public String getUrl() {
return url;
}

public void setUrl(String url) {
this.url = url;
}

public String getInstanceId() {
return instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
Copy link
Member

Choose a reason for hiding this comment

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

This code is unnecessary. because you has used the @Data annotation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the extraneous code.

…/java/org/apache/eventmesh/common/protocol/http/body/client/HeartbeatRequestBody.java >
@AaronGhebretinsae
Copy link
Contributor Author

I have also linked the PR to the target issue

Copy link
Member

@harshithasudhakar harshithasudhakar left a comment

Choose a reason for hiding this comment

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

LGTM

@xwm1992 xwm1992 changed the title [ISSUE #3903] [Enhancement] Unwritten public or protected field [HeartbeatRequestBody] [ISSUE #3903] Unwritten public or protected field [HeartbeatRequestBody] Jan 26, 2024
Copy link

codecov bot commented Jan 26, 2024

Codecov Report

Attention: 26 lines in your changes are missing coverage. Please review.

Comparison is base (e837f34) 17.59% compared to head (a22b0c4) 17.61%.
Report is 7 commits behind head on master.

Files Patch % Lines
...eventmesh/meta/etcd/service/EtcdCustomService.java 0.00% 8 Missing ⚠️
...tor/file/source/connector/FileSourceConnector.java 75.86% 5 Missing and 2 partials ⚠️
...rotocol/http/body/client/HeartbeatRequestBody.java 0.00% 5 Missing ⚠️
...re/protocol/http/processor/HeartBeatProcessor.java 0.00% 2 Missing ⚠️
...sh/client/http/consumer/EventMeshHttpConsumer.java 0.00% 2 Missing ⚠️
...ctor/file/source/config/SourceConnectorConfig.java 0.00% 1 Missing ⚠️
...h/webhook/receive/storage/WebhookFileListener.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4757      +/-   ##
============================================
+ Coverage     17.59%   17.61%   +0.01%     
- Complexity     1774     1783       +9     
============================================
  Files           797      805       +8     
  Lines         29786    29925     +139     
  Branches       2573     2581       +8     
============================================
+ Hits           5242     5270      +28     
- Misses        24063    24172     +109     
- Partials        481      483       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@mxsm mxsm left a comment

Choose a reason for hiding this comment

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

LGTM

@mxsm mxsm merged commit 8bb8b8f into apache:master Jan 26, 2024
11 checks passed
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.

[Enhancement] Unwritten public or protected field[HeartbeatRequestBody]
4 participants