-
Notifications
You must be signed in to change notification settings - Fork 5k
Remove Result in Service #15181
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
Remove Result in Service #15181
Conversation
| public Result getAlertPluginInstance(@Parameter(hidden = true) @RequestAttribute(value = Constants.SESSION_USER) User loginUser) { | ||
| Map<String, Object> result = alertPluginInstanceService.queryAll(); | ||
| return returnDataList(result); | ||
| public Result<List<AlertPluginInstanceVO>> getAlertPluginInstance(@Parameter(hidden = true) @RequestAttribute(value = Constants.SESSION_USER) User loginUser) { |
Check notice
Code scanning / CodeQL
Useless parameter
| * @return token string | ||
| */ | ||
| Map<String, Object> generateToken(User loginUser, int userId, String expireTime); | ||
| String generateToken(User loginUser, int userId, String expireTime); |
Check notice
Code scanning / CodeQL
Useless parameter
| putMsg(result, Status.CREATE_ALERT_GROUP_ERROR); | ||
| return alertGroup; | ||
| } | ||
| log.error("Create alert group error, groupName:{}", alertGroup.getGroupName()); |
Check failure
Code scanning / CodeQL
Log Injection
405fddf to
3c41548
Compare
3c41548 to
5514692
Compare
5514692 to
6e18a96
Compare
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.
CodeQL found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
31d95fe to
70beaa2
Compare
...uler-api/src/main/java/org/apache/dolphinscheduler/api/controller/AccessTokenController.java
Show resolved
Hide resolved
df34684 to
ebcb7c0
Compare
ebcb7c0 to
3fe9d76
Compare
3fe9d76 to
4bb40e6
Compare
4bb40e6 to
deca8b0
Compare
SbloodyS
left a comment
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.
LGTM. This is really a big change. Thanks 👍🏻
deca8b0 to
07a0b0a
Compare
|
Resolve the conflicts. |
07a0b0a to
9ccc112
Compare
|
SonarCloud Quality Gate failed.
|
caishunfeng
left a comment
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.
LGTM overall











Purpose of the pull request
Use Result/Map<String, Object> as method result is not a good practice, this PR will refactor some service method.
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md