Skip to content
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

Study View: Restrict api calls if there are no valid studies in query #3145

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

kalletlak
Copy link
Member

@alisman
Copy link
Collaborator

alisman commented Apr 13, 2020

What UI shows up in this case? Do we have any idea how these invalid study ids came about?
We might want to handle this with global error handler. Lets discuss.

@kalletlak
Copy link
Member Author

It might be unauthorized studies. I don't have access to this study.

Screen Shot 2020-04-13 at 1 25 18 PM

@@ -386,7 +386,9 @@ export default class StudyViewPage extends React.Component<
{this.store.queriedSampleIdentifiers.isComplete &&
this.store.invalidSampleIds.isComplete &&
this.store.unknownQueriedIds.isComplete &&
this.store.displayedStudies.isComplete && (
this.store.displayedStudies.isComplete &&
this.store.queriedPhysicalStudies.isComplete &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm curious to know why this wouldn't be caught by unknownQueriedIds (above). Maybe the study list service returns the ID even if user doesn't have access to it?

@alisman
Copy link
Collaborator

alisman commented Apr 13, 2020

I think this is ok. Would sort of be nice to have more explicit validation routine so that reader can understand exactly what needs to be true for studies to be valid.

@alisman alisman merged commit 49b8957 into cBioPortal:master Apr 13, 2020
@onursumer onursumer added the cl-bug Bug section of changelog. Bug fix label Apr 14, 2020
inodb pushed a commit to inodb/cbioportal-frontend that referenced this pull request Jan 12, 2022
Study View: Restrict api calls if there are no valid studies in query

Former-commit-id: 49b8957
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cl-bug Bug section of changelog. Bug fix
Projects
None yet
3 participants