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

Pipeline key match is case-sensitive #225

Open
vreuter opened this issue Nov 11, 2018 · 10 comments
Open

Pipeline key match is case-sensitive #225

vreuter opened this issue Nov 11, 2018 · 10 comments
Labels
Milestone

Comments

@vreuter
Copy link
Member

vreuter commented Nov 11, 2018

What's are everyone's / anyone's thoughts about making it case-insensitive? Example: right now, defining a pipeline_args section of a project config with WGBS and RRBS as section keys for opt/arg pairs won't match a pipeline interface that names its pipelines wgbs and rrbs, but obviously the failure to match is silent since the intent can't be inferred.

@vreuter
Copy link
Member Author

vreuter commented Nov 11, 2018

@nsheff @afrendeiro @MichalStolarczyk @aaron-gu @jpsmith5 , others...anyone feel free to chime in

@aaron-gu
Copy link
Contributor

Can there be a notification upon failure saying something like "Did you mean to use 'wgbs' instead of 'WGBS'"?

@vreuter
Copy link
Member Author

vreuter commented Nov 12, 2018

Yeah I think there should be a message regardless; I'd just like to make match-and-proceed be the implicit behavior, with a notification message saying that's what's going on. That's my preference anyway but wanted to get an little poll of others' thoughts.

@nsheff
Copy link
Contributor

nsheff commented Nov 12, 2018

I like the match-warn-and-proceed idea.

so, first it matches case sensitive. if it can't find one, it looks case-insensitive and proceeds, with a warning.

On second thought, I would probably just do a suggestion. So, first match case sensitive. if that fails, match case-insensitive -- if it finds, it just says "did you mean ____?" and does not proceed.

Better yet: we could do some kind of fancy similarity search and suggest any of the availble ones that look similar, not just on case sensitivity... how hard would that be?

@vreuter
Copy link
Member Author

vreuter commented Nov 12, 2018

My question would be...what fraction of the time would someone not want to proceed with, e.g. rrbs if they put RRBS?

@nsheff
Copy link
Contributor

nsheff commented Nov 13, 2018

true, but the interface file could potentially be read by other tools, and every that reads it would then have to implement this... or it works with some tools and not others. I think I'd rather force the user to get it right. actually I think I got that philosophy from you @vreuter 😄

I don't have strong feelings on it though, as long as there's a clear warning.

@nsheff
Copy link
Contributor

nsheff commented May 29, 2019

Alright I conclude we should do the following:

First match case sensitive. if that fails, match case-insensitive -- if it finds, it just says "did you mean ____?" and does not proceed.

@nsheff nsheff added this to the 0.23.0 milestone May 29, 2019
@vreuter
Copy link
Member Author

vreuter commented May 29, 2019

what's the error type?

@nsheff
Copy link
Contributor

nsheff commented May 29, 2019

It should probably be just the same as when you don't have a match, whatever we're doing now.

@vreuter
Copy link
Member Author

vreuter commented May 29, 2019

👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants