-
Notifications
You must be signed in to change notification settings - Fork 315
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
Experiment with clinical data table filtering #4667
Conversation
bfdeb22
to
38be36e
Compare
this.clinicalDataSortCriteria?.field | ||
} | ||
downloadDataFetcher={() => | ||
Promise.resolve(['moo']) |
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.
less moo
@@ -34,11 +37,18 @@ class ClinicalDataTabTableComponent extends LazyMobXTable<{ | |||
[id: string]: string; | |||
}> {} | |||
|
|||
const CLINICAL_DATA_RECORD_LIMIT = 500; |
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.
maybe make this configurable in a prop
downloadDataFetcher?: | ||
| ILazyMobXTableApplicationLazyDownloadDataFetcher | ||
| (() => Promise<any>) | ||
| undefined; |
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 already be undefined because it is optional, I think?
@@ -923,7 +958,9 @@ export default class LazyMobXTable<T> extends React.Component< | |||
this.handlers = { | |||
onFilterTextChange: (() => { | |||
return inputBoxChangeTimeoutEvent(filterValue => { | |||
this.store.setFilterString(filterValue); | |||
props.onFilterTextChange |
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.
What is the difference between these two? Maybe add a comment
994893a
to
274d33a
Compare
281b2fc
to
86104e4
Compare
86104e4
to
2a9e8b2
Compare
7a8ebe6
to
f02cfb9
Compare
Instead of display name.
f02cfb9
to
bf452d7
Compare
…pulated to avoid flash of two column table (premature)
6ff3c01
to
b6a59d2
Compare
b6a59d2
to
6ff3c01
Compare
✅ Deploy Preview for cbioportalfrontend ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Use new paginated endpoint for clinical data search/download tab. This pull request adapts MobxLazyTable for use with new pagination service. Rather than enable traditional pagination, it enables sorting and filtering with a limit on the number of records that the viewer can fetch.
Fixes cBioPortal/cbioportal#10479