-
Notifications
You must be signed in to change notification settings - Fork 270
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
Conversation
} | ||
|
||
@observable.ref store: QueryStore; |
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.
you only want to set store on init?
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.
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.
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.
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}}> |
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.
welcome to the dark side 😈
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.
why is this the dark side? jsx from @computed? if so, i've long been guilty. the darkside is jsx from mobxpromise.
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.
ah okay
} | ||
}); | ||
|
||
@computed get genesInvalid(){ |
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 we also catch invalid profiles/studies/overall query, like QueryStore.submitError
?
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.
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.
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.