-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Improvement-15713][api]DataSource And UdfFunc list query use Enum code value rather than ordinal #15714
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.
@songwenyong please link this PR to an issue
done |
@@ -162,7 +162,7 @@ public Result<Object> queryDataSource(@Parameter(hidden = true) @RequestAttribut | |||
@ApiException(QUERY_DATASOURCE_ERROR) | |||
public Result<Object> queryDataSourceList(@Parameter(hidden = true) @RequestAttribute(value = Constants.SESSION_USER) User loginUser, | |||
@RequestParam("type") DbType type) { | |||
List<DataSource> datasourceList = dataSourceService.queryDataSourceList(loginUser, type.ordinal()); | |||
List<DataSource> datasourceList = dataSourceService.queryDataSourceList(loginUser, type.getCode()); |
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.
overall LGTM, please update the related UT
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #15714 +/- ##
=========================================
Coverage 39.20% 39.20%
Complexity 4909 4909
=========================================
Files 1326 1326
Lines 45217 45217
Branches 4818 4818
=========================================
Hits 17729 17729
Misses 25617 25617
Partials 1871 1871 ☔ View full report in Codecov by Sentry. |
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
Quality Gate passedIssues Measures |
Purpose of the pull request
fix #15713
Brief change log
DataSource list query use DbType enum code value rather than ordinal
UdfFunc list query use UdfType code value rather than ordinal
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md