#363 Replace whitespace with underscore in task name taken from formula
Closed: Invalid Opened by jskladan.

Sometimes, the devs will write a task name with spaces, instead of underscores in the formula (like https://bitbucket.org/fedoraqa/task-simpledocker/src/8b7771176a8268700fd9256ed3c117ae37e086a3/runtask.yml?at=develop&fileviewer=file-view-default). Although this is not a problem, on its own, we create the testcase name out of it, and I'd rather have the testcases contain underscores than spaces (see http://taskotron-dev.fedoraproject.org/resultsdb/results/8765765), to have "nice" URLs.

So, let's strip() the name, and replace whitespaces \s+ in it with _ when we create the testcase name.


It seems in the example the person used name field as a description. Maybe we should require that name contains a reasonable short string without whitespace, and desc (which already exists) is used for description instead? Most tasks do it this way already.

Metadata Update from @jskladan:
- Issue tagged with: easyfix

Our custom formulae have been replaced by STI.

Metadata Update from @kparal:
- Issue close_status updated to: Invalid

Metadata