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

feat: [refactor]move CollectorController to CollectorService #2495

Closed
wants to merge 1 commit into from

Conversation

MRgenial
Copy link
Contributor

@MRgenial MRgenial commented Aug 8, 2024

I have moved the collectorController to collectorService.

Copy link
Contributor

@yuluo-yx yuluo-yx left a comment

Choose a reason for hiding this comment

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

imo, the modification of a pr should be as single as possible to facilitate review, here the modification of the configuration file and the controller code movement is not synchronized. Thank you for contributing to this!

collectors.forEach(collector ->
this.manageServer.getCollectorAndJobScheduler().onlineCollector(collector));
}
collectorService.online(collectors);
return ResponseEntity.ok(Message.success("Online success"));
Copy link
Contributor

Choose a reason for hiding this comment

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

hi, Have you tested this interface? Does he return data properly?

@@ -18,7 +18,7 @@ spring:
application:
name: ${HOSTNAME:@hertzbeat@}${PID}
profiles:
active: prod
active: dev
Copy link
Contributor

Choose a reason for hiding this comment

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

Why change the configuration file here?

@yuluo-yx
Copy link
Contributor

yuluo-yx commented Aug 8, 2024

I see this is a duplicate of #2433 🥲

@MRgenial
Copy link
Contributor Author

MRgenial commented Aug 9, 2024

I see this is a duplicate of #2433 🥲

oh,sorry,i didnt see it.

@yuluo-yx
Copy link
Contributor

yuluo-yx commented Aug 10, 2024

@MRgenial #2433 merged, you can close it.

@MRgenial MRgenial closed this Aug 10, 2024
@MRgenial MRgenial deleted the collector_move branch August 19, 2024 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants