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

Fix handling of data_priority = profileFilter on submission/modificat… #2921

Merged
merged 1 commit into from
Dec 9, 2019

Conversation

alisman
Copy link
Collaborator

@alisman alisman commented Dec 9, 2019

urlWrapper was not correctly handling the legacy data_priority as an alias for profileFilter. On multi-study queries this broke filtering.

@alisman
Copy link
Collaborator Author

alisman commented Dec 9, 2019

@adamabeshouse i'm gonna write a test for this later today

@@ -2009,7 +2010,7 @@ export class QueryStore {
: (profileIds.filter(_.identity) as string[]);
this.zScoreThreshold = params.Z_SCORE_THRESHOLD || '2.0';
this.rppaScoreThreshold = params.RPPA_SCORE_THRESHOLD || '2.0';
this.dataTypePriorityCode = params.data_priority || '0';
this.dataTypePriorityCode = params.data_priority || params.profileFilter || '0';
Copy link
Contributor

Choose a reason for hiding this comment

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

can this parsing be brought into urlwrapper since its handling the aliasing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

truth be known (is that a phrase? no, but i still like it), we could do away with params.data_priority here because it's an instance of urlWrapper that is being passed. But then we would have to do some refactoring and i want to just get this out. we can follow up with refactoring. won't be too hard

@alisman alisman merged commit e58a318 into cBioPortal:master Dec 9, 2019
@alisman alisman deleted the fixPriority branch December 9, 2019 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants