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

[imporve] simplify NoticeConfig Code. #2530

Merged
merged 9 commits into from
Aug 16, 2024

Conversation

MRgenial
Copy link
Contributor

What's changed?

simplify NoticeConfig Code,and some methods using getReferenceById cannot return prompt information correctly..

Checklist

  • I have read the Contributing Guide
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

Add or update API

  • I have added the necessary e2e tests and all cases have passed.

@MRgenial MRgenial reopened this Aug 15, 2024
@Calvin979
Copy link
Contributor

Could you explain why method getReferenceById return wrong information or show the test result that indicate the difference after you change getReferenceById to findById?

@MRgenial
Copy link
Contributor Author

Could you explain why method getReferenceById return wrong information or show the test result that indicate the difference after you change getReferenceById to findById?

微信截图_20240815215832
微信截图_20240815215921
微信截图_20240815220112

These are comparison charts of the returned results

@@ -238,6 +238,11 @@ public NoticeRule getNoticeRulesById(Long ruleId) {
return noticeRuleDao.getReferenceById(ruleId);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest we can modify this method instead of create a new method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay.

Copy link
Member

@ChengJie1053 ChengJie1053 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Calvin979 Calvin979 left a comment

Choose a reason for hiding this comment

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

LGTM

@Calvin979 Calvin979 merged commit 0ec6a3b into apache:master Aug 16, 2024
3 checks passed
@MRgenial MRgenial deleted the notic_config_modify 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.

3 participants