#112: Fixed too large param and frontend app creator bugs
This commit is contained in:
@@ -192,7 +192,7 @@ type WorkflowExecution struct {
|
|||||||
Description string `json:"description" datastore:"description"`
|
Description string `json:"description" datastore:"description"`
|
||||||
ID string `json:"id" datastore:"id"`
|
ID string `json:"id" datastore:"id"`
|
||||||
Name string `json:"name" datastore:"name"`
|
Name string `json:"name" datastore:"name"`
|
||||||
Value string `json:"value" datastore:"value"`
|
Value string `json:"value" datastore:"value,noindex"`
|
||||||
} `json:"execution_variables,omitempty" datastore:"execution_variables,omitempty"`
|
} `json:"execution_variables,omitempty" datastore:"execution_variables,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -217,7 +217,7 @@ type Action struct {
|
|||||||
Description string `json:"description" datastore:"description"`
|
Description string `json:"description" datastore:"description"`
|
||||||
ID string `json:"id" datastore:"id"`
|
ID string `json:"id" datastore:"id"`
|
||||||
Name string `json:"name" datastore:"name"`
|
Name string `json:"name" datastore:"name"`
|
||||||
Value string `json:"value" datastore:"value"`
|
Value string `json:"value" datastore:"value,noindex"`
|
||||||
} `json:"execution_variable,omitempty" datastore:"execution_variable,omitempty"`
|
} `json:"execution_variable,omitempty" datastore:"execution_variable,omitempty"`
|
||||||
Position struct {
|
Position struct {
|
||||||
X float64 `json:"x" datastore:"x"`
|
X float64 `json:"x" datastore:"x"`
|
||||||
@@ -307,7 +307,7 @@ type Workflow struct {
|
|||||||
Description string `json:"description" datastore:"description"`
|
Description string `json:"description" datastore:"description"`
|
||||||
ID string `json:"id" datastore:"id"`
|
ID string `json:"id" datastore:"id"`
|
||||||
Name string `json:"name" datastore:"name"`
|
Name string `json:"name" datastore:"name"`
|
||||||
Value string `json:"value" datastore:"value"`
|
Value string `json:"value" datastore:"value,noindex"`
|
||||||
} `json:"execution_variables,omitempty" datastore:"execution_variables"`
|
} `json:"execution_variables,omitempty" datastore:"execution_variables"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Generated
+3
-3
@@ -5868,9 +5868,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"class-transformer": {
|
"class-transformer": {
|
||||||
"version": "0.2.3",
|
"version": "0.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.3.1.tgz",
|
||||||
"integrity": "sha512-qsP+0xoavpOlJHuYsQJsN58HXSl8Jvveo+T37rEvCEeRfMWoytAyR0Ua/YsFgpM6AZYZ/og2PJwArwzJl1aXtQ=="
|
"integrity": "sha512-cKFwohpJbuMovS8xVLmn8N2AUbAuc8pVo4zEfsUVo8qgECOogns1WVk/FkOZoxhOPTyTYFckuoH+13FO+MQ8GA=="
|
||||||
},
|
},
|
||||||
"class-utils": {
|
"class-utils": {
|
||||||
"version": "0.3.6",
|
"version": "0.3.6",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"@material-ui/icons": "^4.5.1",
|
"@material-ui/icons": "^4.5.1",
|
||||||
"@material-ui/styles": "^4.5.2",
|
"@material-ui/styles": "^4.5.2",
|
||||||
"@use-it/interval": "^0.1.3",
|
"@use-it/interval": "^0.1.3",
|
||||||
"class-transformer": "^0.3.1",
|
"class-transformer": "^0.3.1",
|
||||||
"create-react-app": "^2.0.3",
|
"create-react-app": "^2.0.3",
|
||||||
"cytoscape": "^3.11.0",
|
"cytoscape": "^3.11.0",
|
||||||
"cytoscape-clipboard": "^2.2.1",
|
"cytoscape-clipboard": "^2.2.1",
|
||||||
|
|||||||
@@ -279,9 +279,9 @@ const AppCreator = (props) => {
|
|||||||
return response.json()
|
return response.json()
|
||||||
})
|
})
|
||||||
.then((responseJson) => {
|
.then((responseJson) => {
|
||||||
setIsAppLoaded(true)
|
|
||||||
if (!responseJson.success) {
|
if (!responseJson.success) {
|
||||||
alert.error("Failed to get the app")
|
alert.error("Failed to get the app")
|
||||||
|
setIsAppLoaded(true)
|
||||||
} else {
|
} else {
|
||||||
const data = JSON.parse(responseJson.body)
|
const data = JSON.parse(responseJson.body)
|
||||||
parseIncomingOpenapiData(data)
|
parseIncomingOpenapiData(data)
|
||||||
@@ -365,6 +365,8 @@ const AppCreator = (props) => {
|
|||||||
var firstUrl = data.servers[0].url
|
var firstUrl = data.servers[0].url
|
||||||
if (firstUrl.endsWith("/")) {
|
if (firstUrl.endsWith("/")) {
|
||||||
setBaseUrl(firstUrl.slice(0, firstUrl.length-1))
|
setBaseUrl(firstUrl.slice(0, firstUrl.length-1))
|
||||||
|
} else {
|
||||||
|
setBaseUrl(firstUrl)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -378,9 +380,6 @@ const AppCreator = (props) => {
|
|||||||
securitySchemes = data.components.securitySchemes
|
securitySchemes = data.components.securitySchemes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
console.log(data)
|
|
||||||
|
|
||||||
// FIXME - headers?
|
// FIXME - headers?
|
||||||
var newActions = []
|
var newActions = []
|
||||||
var wordlist = {}
|
var wordlist = {}
|
||||||
@@ -398,7 +397,6 @@ const AppCreator = (props) => {
|
|||||||
"errors": [],
|
"errors": [],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for (var key in methodvalue.parameters) {
|
for (var key in methodvalue.parameters) {
|
||||||
const parameter = methodvalue.parameters[key]
|
const parameter = methodvalue.parameters[key]
|
||||||
if (parameter.in === "query") {
|
if (parameter.in === "query") {
|
||||||
@@ -520,6 +518,7 @@ const AppCreator = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setActions(newActions)
|
setActions(newActions)
|
||||||
|
setIsAppLoaded(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Saving the app that's been configured.
|
// Saving the app that's been configured.
|
||||||
@@ -1590,12 +1589,12 @@ const AppCreator = (props) => {
|
|||||||
style={{flex: "1", marginTop: "5px", marginRight: "15px", backgroundColor: inputColor}}
|
style={{flex: "1", marginTop: "5px", marginRight: "15px", backgroundColor: inputColor}}
|
||||||
fullWidth={true}
|
fullWidth={true}
|
||||||
type="name"
|
type="name"
|
||||||
id="outlined-with-placeholder"
|
id="outlined-with-placeholder"
|
||||||
margin="normal"
|
margin="normal"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
placeholder="A description for the service"
|
placeholder="A description for the service"
|
||||||
value={description}
|
value={description}
|
||||||
onChange={e => setDescription(e.target.value)}
|
onChange={e => setDescription(e.target.value)}
|
||||||
InputProps={{
|
InputProps={{
|
||||||
classes: {
|
classes: {
|
||||||
notchedOutline: classes.notchedOutline,
|
notchedOutline: classes.notchedOutline,
|
||||||
|
|||||||
Reference in New Issue
Block a user