-
Notifications
You must be signed in to change notification settings - Fork 555
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
Paginated clinical table #10211
Paginated clinical table #10211
Conversation
@BasLee Is this error in the automated tests, something that is of concern? |
@JREastonMarks Seemed to be a difference between mysql and h2 db used in tests. Fixed in 5ba9828 |
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.
@BasLee It looks good to me, I think if you rebase your pr, the core tests will pass. I have few minor comments.
...istence/persistence-api/src/main/java/org/cbioportal/persistence/ClinicalDataRepository.java
Outdated
Show resolved
Hide resolved
...istence/persistence-api/src/main/java/org/cbioportal/persistence/ClinicalDataRepository.java
Outdated
Show resolved
Hide resolved
...istence-mybatis/src/main/resources/org/cbioportal/persistence/mybatis/ClinicalDataMapper.xml
Show resolved
Hide resolved
5ba9828
to
9d7c2b3
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.
LGTM
18626e2
to
654a5d6
Compare
Kudos, SonarCloud Quality Gate passed! |
Paginate the clinical table using original (lazy mobx) table components.
The backend
/clinical-data-table/fetch
already contained most elements needed for pagination, like page size and page number. This PR also adds a header containing the total number of samples, needed for pagination in the frontend.To be able to sort properly, the sortBy parameter also had to be modified.
See frontend PR for more information.
Changes
total-count
response header to/clinical-data-table/fetch
getSampleClinicalDataClinicalTable
query and new count query