tower-cli icon indicating copy to clipboard operation
tower-cli copied to clipboard

Match pipelines name exactly

Open JaimeSeqLabs opened this issue 1 year ago • 0 comments

Description

Closes #360

When searching a pipeline by name match the names exactly, not partially.

Guidelines for testing

  1. Create a pipeline named HelloWorld
  2. Create a second pipeline named HelloWorldSecond
  3. When viewing pipelines by name the search matches the exact name and no "Multiple pipelines found" error is thrown.
$> ./tw pipelines view -n HelloWorld -w JaimeInc/Wsp

  Pipeline at [JaimeInc / Wsp] workspace:

    --------------+--------------------------------------
     ID           | 30153220095308                       
     Name         | HelloOptimization                    
     Description  |                                      
     Repository   | https://github.com/nextflow-io/hello 
     Compute env. | Org-batch-ce                         
     Labels       | owner=jaime                          

  Configuration:
....
  1. When the name includes " characters they are escaped (and the search should fail because pipeline names can only contain aplhanumeric, dash and underscore)
$> ./tw pipelines view -n '"Hello"World"' -w JaimeInc/Wsp

 ERROR: Unknown pipeline '\"Hello\"Optimization\"' at [JaimeInc / Wsp] workspace

JaimeSeqLabs avatar Jun 19 '24 16:06 JaimeSeqLabs