-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
There was a problem hiding this 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")); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
I see this is a duplicate of #2433 🥲 |
oh,sorry,i didnt see it. |
I have moved the collectorController to collectorService.