Idea: allow quotes and parse with shlex.split. Changing the schema into a proper list (instead of a string) would be a more formal approach but seems like that would require quite a bit of change, especially in the UI.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I merged this (plus a commit to update the contextual help a bit), but shortly after that noticed that errors aren't handled well. If an options string like foo "bar baz has mismatched quotes, then you get an error when viewing any ticket. Please add error handling and a test for that. It could do something simple like falling back to a regular string split (adding a " at the end isn't good enough since single quotes can be used too)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Idea: allow quotes and parse with
shlex.split
. Changing the schema into a proper list (instead of a string) would be a more formal approach but seems like that would require quite a bit of change, especially in the UI.Created #341: [#6149] Spaces for select custom fields (1cp)
Related
Tickets:
#6149Closed #341.
je/42cc_6149
I merged this (plus a commit to update the contextual help a bit), but shortly after that noticed that errors aren't handled well. If an options string like
foo "bar baz
has mismatched quotes, then you get an error when viewing any ticket. Please add error handling and a test for that. It could do something simple like falling back to a regular string split (adding a"
at the end isn't good enough since single quotes can be used too)Created #356: [#6149] Followup to #341 (1cp)
Related
Tickets:
#6149Another error to fix or handle. Given these options:
I get this error:
Closed #356.
je/42cc_6149_fix