Skip to content

Commit

Permalink
Adds initialValue support to variables.json (#171)
Browse files Browse the repository at this point in the history
* Add initialValue to variables json schema

This is available in the Spring '24 release.
Fixes @W-14609436@

* Add Git2Gus support
  • Loading branch information
smithgp committed Feb 9, 2024
1 parent 015ded2 commit ff65318
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .git2gus/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"productTag": "a1aB00000001F81IAE",
"defaultBuild": "248",
"issueTypeLabels": {
"feature": "USER STORY",
"enhancement": "USER STORY",
"regression": "BUG P1",
"bug": "BUG P3"
},
"hideWorkItemUrl": "true"
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"defaultValue": {
"description": "Default value for the variable, if the user does not set the value in the wizard. Set to the most likely value to use.",
"$comment": "The type of defaultValue depends upon variablesType.type"
},
"initialValue": {
"description": "An initial value for the variable to show in the wizard. The user will be allowed to clear this value."
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"type": "BooleanType",
"enums": [true, false]
},
"defaultValue": "default value"
"defaultValue": true,
"initialValue": null
},
"string": {
"label": "String Variable",
Expand All @@ -22,7 +23,8 @@
"enums": ["one", "two", "three", "default value"],
"enumsLabels": ["One", null, "Three"]
},
"defaultValue": "default value"
"defaultValue": "default value",
"initialValue": "initial value"
},
"number": {
"label": "Number Variable",
Expand All @@ -35,7 +37,8 @@
"max": 3,
"format": "Percent",
"scale": 3
}
},
"initialValue": 42
},
"sobject": {
"label": "Sobject Variable",
Expand All @@ -44,6 +47,9 @@
},
"defaultValue": {
"sobjectName": "Case"
},
"initialValue": {
"sobjectName": "Account"
}
},
"sobjectbase64field": {
Expand Down Expand Up @@ -291,7 +297,9 @@
"max": 10,
"min": 1
}
}
},
"defaultValue": ["leadz"],
"initialValue": ["camps", "Foo"]
},
"booleanarray": {
"variableType": {
Expand Down

0 comments on commit ff65318

Please sign in to comment.