peppy icon indicating copy to clipboard operation
peppy copied to clipboard

Pipeline key match is case-sensitive

Open vreuter opened this issue 7 years ago • 10 comments

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 avatar Nov 11 '18 08:11 vreuter

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

vreuter avatar Nov 11 '18 08:11 vreuter

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

aaron-gu avatar Nov 12 '18 19:11 aaron-gu

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.

vreuter avatar Nov 12 '18 20:11 vreuter

~~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?

nsheff avatar Nov 12 '18 21:11 nsheff

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

vreuter avatar Nov 12 '18 21:11 vreuter

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 :smile:

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

nsheff avatar Nov 13 '18 15:11 nsheff

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 avatar May 29 '19 15:05 nsheff

what's the error type?

vreuter avatar May 29 '19 15:05 vreuter

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

nsheff avatar May 29 '19 15:05 nsheff

:ok_hand:

vreuter avatar May 29 '19 16:05 vreuter