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

Saving a tool id with dashes changes its id #417

Open
pkerpedjiev-zymergen opened this issue Nov 27, 2018 · 3 comments
Open

Saving a tool id with dashes changes its id #417

pkerpedjiev-zymergen opened this issue Nov 27, 2018 · 3 comments
Assignees
Labels
Milestone

Comments

@pkerpedjiev-zymergen
Copy link

Steps to reproduce

Let's say I have a tool with a CWL id of bwa--mem--0.7.17:

id: bwa--mem--0.7.17

If I open that tool in Rabix Composer, the double dashes will be converted to spaces:

image

I use Rabix Composer to change to something unrelated like the description and save the tool.

Observed

When I open the CWL file, its ID is now something different:

id: bwa_mem_0_7_17

Expected

I would expect the ID of the tool to remain as it was before I edited the unrelated field in Rabix. It should remain bwa--mem--0.2.17 and not change to bwa_mem_0_7_17.

@ghost ghost assigned marijanlekic Dec 4, 2018
@ghost ghost added the bug label Dec 4, 2018
@ghost ghost modified the milestones: v1.0.1, v1.1.0 Dec 4, 2018
@ghost
Copy link

ghost commented Dec 4, 2018

@pkerpedjiev-zymergen thank you for the report. I can reproduce and this is indeed unacceptable behavior. We will fix this in 1.1.0. We'll ping here in this report as soon as it gets to the master branch.

@ghost
Copy link

ghost commented Dec 4, 2018

@marijanlekic The general pattern is

a-b -> a_b 

I wonder if it has something to do with our name mangling for duplicate ids.

@ghost
Copy link

ghost commented Dec 10, 2018

@pkerpedjiev-zymergen after a brief discussion on the CWL gitter I was pointed to a tightening up of the CWL specification that is imminent (in 1.1). In common-workflow-language/common-workflow-language#429 we plan to only allow ids that form valid javascript without quoting. This will mean no dashes and spaces amongst other things.

We will improve the RC documentation to reflect this. We could use this ticket to discuss the proper behavior for RC when a user types in an invalid id in the code pane.

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

2 participants