-
Notifications
You must be signed in to change notification settings - Fork 25
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
refactor: Change table names, replace native queries with a non-native #537
Conversation
Signed-off-by: Oleg Kopysov <o.kopysov@samsung.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #537 +/- ##
============================================
- Coverage 92.61% 92.54% -0.07%
- Complexity 528 529 +1
============================================
Files 48 48
Lines 1733 1731 -2
Branches 208 208
============================================
- Hits 1605 1602 -3
Misses 64 64
- Partials 64 65 +1 ☔ 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! Thank you so much for your contribution!
Signed-off-by: Oleg Kopysov <o.kopysov@samsung.com>
value = | ||
"SELECT * FROM license_list WHERE license_list.license_spdx = :spdxId ORDER BY id DESC LIMIT 1", | ||
nativeQuery = true) | ||
@Query("SELECT l FROM LPVSLicense l WHERE l.spdxId = :spdxId ORDER BY l.id DESC LIMIT 1") |
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.
as an option to simplify more, Repository Method Definition can be used:
eg: findTopBySpdxIdOrderByIdDesc
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.
We will plan such refactoring in the future. Thanks for the suggestion.
@@ -39,8 +39,8 @@ void setUp() { | |||
pullRequestUrl, | |||
pullRequestFilesUrl, | |||
status, | |||
pullRequestBase, |
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.
I didn't get this change...
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.
Incorrect order of parameters.
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.
Approved, no objections.
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
Pull Request
Description
PR contains the next changes:
Type of change
Please delete options that are not relevant.
Testing
Verified on PR: https://github.sec.samsung.net/SOSHUB/LPVS-test/pull/1543#issuecomment-2729707
Checklist: