-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jira: Render list items with commas in quotes
When you have a component or name with a comma, simply joining the list together does not provide output you could quote and use as input, and makes it confusing where the component name begins and ends without looking at the component list. So, for example, one can see: "component1, desc1", component2, component3 ... in the output instead of: component1, desc1, component2, component3 ... when looking at issues, in addition to: $ jirate field TEST-1 set components '"component1, desc1", component2'
- Loading branch information
Showing
6 changed files
with
39 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -281,7 +281,7 @@ | |
'timeZone': 'America/New_York'}, | ||
'attachment': [], | ||
'comment': [], | ||
'components': [], | ||
'components': [{'name': 'food, pork'}, {'name': 'food, carrot'}], | ||
'created': '2023-08-03T10:28:48.366+0000', | ||
'description': 'Test Description 1', | ||
'duedate': '2024-01-30', | ||
|
@@ -358,7 +358,7 @@ | |
{'name': 'Version2', 'value': 'version_two'}], | ||
'customfield_1234571': [{'key': 'user1', 'name': 'user-one', 'displayName': 'One', 'emailAddress': '[email protected]'}, | ||
{'key': 'user2', 'name': '[email protected]', 'displayName': 'Two', 'emailAddress': '[email protected]'}], | ||
'customfield_1234572': ['one', 'two', 'three'], | ||
'customfield_1234572': ['one', 'two', 'three, and four'], | ||
'customfield_1234573': [{'name': 'group1'}, {'name': 'group2'}], | ||
'customfield_1234574': ['one', 2.0], | ||
'customfield_1234575': '2022-08-01', | ||
|
@@ -389,7 +389,7 @@ | |
'assignee': None, | ||
'attachment': [], | ||
'comment': [], | ||
'components': ['porkchop'], | ||
'components': [], | ||
'created': '2023-08-03T10:28:48.366+0000', | ||
'customfield_1234567': None, | ||
'customfield_1234568': None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,7 @@ def test_render_code_override(): | |
|
||
field_test_params = 'field_id,field_name,value' | ||
field_test_info = [ | ||
pytest.param('components', 'Component/s', '"food, pork", "food, carrot"'), | ||
# Fixed in build (string) | ||
pytest.param('customfield_1234567', 'Fixed in Build', 'test-build-1'), | ||
|
||
|
@@ -86,7 +87,7 @@ def test_render_code_override(): | |
pytest.param('customfield_1234571', 'Array of Users', 'user-one, [email protected]'), | ||
|
||
# Array of strings | ||
pytest.param('customfield_1234572', 'Array of Strings', 'one, two, three'), | ||
pytest.param('customfield_1234572', 'Array of Strings', 'one, two, "three, and four"'), | ||
|
||
# Array of groups (name?), | ||
pytest.param('customfield_1234573', 'Array of Groups', 'group1, group2'), | ||
|