-
Notifications
You must be signed in to change notification settings - Fork 86
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
[backend] add query to fetch documents #962
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #962 +/- ##
============================================
- Coverage 25.32% 25.00% -0.32%
+ Complexity 961 956 -5
============================================
Files 466 466
Lines 10334 10333 -1
Branches 497 497
============================================
- Hits 2617 2584 -33
- Misses 7657 7690 +33
+ Partials 60 59 -1 ☔ View full report in Codecov by Sentry. |
|
||
public interface RawDocument { | ||
|
||
String getDocument_Id(); |
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.
Should be getDocument_id
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.
It's done
"left join tags tg on tg.tag_id = tagdoc.tag_id " + | ||
"group by d.document_id " + | ||
"order by document_id desc ", nativeQuery = true ) | ||
List<RawDocument> findAllDocuments(); |
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.
Can you stick to the nomenclature?
rawAllDocuments()
and rawAllDocumentsByUser()
findAll is reserved for Document
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.
Roger that
Proposed changes
Related issues
Checklist
Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...