Use Django 2.0 simplified URL routing
Simplified routing allows for much better syntax without regexes.
For example,^(?P<job>[0-9]+|[0-9]+.[0-9]+)/(?P<pk>[-_a-zA-Z0-9.]+)/(?P<case_id>[-_a-zA-Z0-9.\(\)+]+)$
turns in to <job_id:job>/<str:testsuite_name>/<str:testcase_id_or_name>
.
Conversion process is straight forward except:
- A special parser for job id. Since multinode jobs use the
{job_id}.{sub_id}
syntax a new url type has been defined. - Trailing slashes were preserved as they were. Maybe in the future they can be normalised. The
/RPC2/
path is double registered with and without trailing slash to support both cases. - Allows device and worker primary keys to use characters outside of
-_a-zA-Z0-9.@
.
Each commit is separated between each django app.
Edited by Igor Ponomarev