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

Handle invalid genes error by directing use to correct query in query… #1894

Merged
merged 1 commit into from
Jan 8, 2019

Conversation

alisman
Copy link
Collaborator

@alisman alisman commented Jan 4, 2019

We get a handful of errors each day where users have outdated links with invalid genes. This PR directs users back to query page to fix things.

@jjgao jjgao temporarily deployed to cbioportal-frontend-pr-1894 January 4, 2019 19:30 Inactive
@jjgao jjgao temporarily deployed to cbioportal-frontend-pr-1894 January 4, 2019 22:18 Inactive
@jjgao jjgao temporarily deployed to cbioportal-frontend-pr-1894 January 8, 2019 15:50 Inactive
}

@observable.ref store: QueryStore;
Copy link
Contributor

@adamabeshouse adamabeshouse Jan 8, 2019

Choose a reason for hiding this comment

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

you only want to set store on init?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the basic idea is that when i show the the query component, i want to create a store for that session/lifecycle of the component. it cannot be replaced/updated by anything. and it gets throw out on close. i could model this above in the page, but this seems cleaner to me. let me know what you think.

Copy link
Contributor

Choose a reason for hiding this comment

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

just for clarity i think this shouldnt be observable

@@ -141,6 +140,16 @@ export default class QuerySummary extends React.Component<{ routingStore:Extende
getGAInstance()('send', 'event', 'resultsView', 'query modified');
}

@computed get queryForm(){
return <div style={{marginTop:10}}>
Copy link
Contributor

Choose a reason for hiding this comment

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

welcome to the dark side 😈

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

why is this the dark side? jsx from @computed? if so, i've long been guilty. the darkside is jsx from mobxpromise.

Copy link
Contributor

Choose a reason for hiding this comment

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

ah okay

}
});

@computed get genesInvalid(){
Copy link
Contributor

Choose a reason for hiding this comment

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

should we also catch invalid profiles/studies/overall query, like QueryStore.submitError?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

lets discuss at standup. i happen to know from sentry that we often get invalid genes. not sure if that's true for those other params.

@jjgao jjgao temporarily deployed to cbioportal-frontend-pr-1894 January 8, 2019 20:35 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants