chore: pmci added awx link to jobs formular

qa
Sven Ketelsen 3 years ago committed by Michael Hähnel
parent 9634ad7aeb
commit 8049e9792a

@ -3,17 +3,21 @@
"restApi": true, "restApi": true,
"configKey": "awx-job-plain", "configKey": "awx-job-plain",
"payloadType": "REST", "payloadType": "REST",
"config" : [ { "config": [
{
"name": "connection", "name": "connection",
"type": "CONNECTION", "type": "CONNECTION",
"value": "awx" "value": "awx"
}, { },
{
"name": "resource", "name": "resource",
"type": "STRING", "type": "STRING",
"value": "api/v2/jobs/${id}/" "value": "api/v2/jobs/${id}/"
}, { },
{
"name": "sqlStatement", "name": "sqlStatement",
"type": "STRING", "type": "STRING",
"value" : "SELECT status,failed,started,finished,name,description FROM default_table" "value": "SELECT id,status,failed,created,started,finished,name,description,elapsed,scm_revision FROM default_table"
} ] }
]
} }

@ -0,0 +1,18 @@
{
"name": "awx-job",
"restApi": true,
"configKey": "awx-job",
"payloadType": "POST_PROCESSING",
"config": [
{
"name": "datasource_key",
"type": "STRING",
"value": "awx-job-plain"
},
{
"name": "groovy_script",
"type": "STRING",
"value": "def result = []\ndata.each{job ->\n if (parameters['stage']) {\n job.stage = parameters.stage\n }\n result.add(job)\n}\nresult"
}
]
}

@ -36,7 +36,7 @@
"json" : "" "json" : ""
}, },
"data" : { "data" : {
"url" : "api/v1/scopes/{{context.scopeId}}/tags/{{context.scopeTag}}/datasources/awx-job-plain/query?id={{ row }}", "url" : "api/v1/scopes/{{context.scopeId}}/tags/{{context.scopeTag}}/datasources/awx-job/query?id={{ row }}&stage={{ data.cluster.stage }}",
"method" : "GET", "method" : "GET",
"values" : [ { } ] "values" : [ { } ]
}, },
@ -153,7 +153,7 @@
"tableView" : true, "tableView" : true,
"label" : "Column" "label" : "Column"
}, { }, {
"width" : 4, "width" : 2,
"offset" : 0, "offset" : 0,
"push" : 0, "push" : 0,
"pull" : 0, "pull" : 0,
@ -201,6 +201,7 @@
}, { }, {
"label" : "HTML", "label" : "HTML",
"labelPosition" : "left-left", "labelPosition" : "left-left",
"tag" : "div",
"className" : "pb-0", "className" : "pb-0",
"attrs" : [ { "attrs" : [ {
"attr" : "", "attr" : "",
@ -232,6 +233,122 @@
"refreshOn" : "data", "refreshOn" : "data",
"reorder" : false "reorder" : false
} ] } ]
}, {
"width" : 2,
"offset" : 0,
"push" : 0,
"pull" : 0,
"type" : "column",
"input" : false,
"hideOnChildrenHidden" : false,
"key" : "column",
"tableView" : true,
"label" : "Column",
"components" : [ {
"label" : "Id",
"hideLabel" : true,
"labelPosition" : "left-left",
"allowMultipleMasks" : false,
"showWordCount" : false,
"showCharCount" : false,
"clearOnHide" : false,
"hidden" : true,
"tableView" : true,
"alwaysEnabled" : false,
"type" : "textfield",
"input" : true,
"key" : "id",
"defaultValue" : "",
"validate" : {
"customMessage" : "",
"json" : ""
},
"conditional" : {
"show" : "",
"when" : "",
"json" : ""
},
"tabs" : null,
"properties" : { },
"tags" : [ ],
"inputFormat" : "plain",
"encrypted" : false,
"customConditional" : "",
"logic" : [ ],
"widget" : {
"type" : ""
},
"reorder" : false
}, {
"label" : "Stage",
"hideLabel" : true,
"labelPosition" : "left-left",
"allowMultipleMasks" : false,
"showWordCount" : false,
"showCharCount" : false,
"clearOnHide" : false,
"hidden" : true,
"tableView" : true,
"alwaysEnabled" : false,
"type" : "textfield",
"input" : true,
"key" : "stage",
"defaultValue" : "",
"validate" : {
"customMessage" : "",
"json" : ""
},
"conditional" : {
"show" : "",
"when" : "",
"json" : ""
},
"tabs" : null,
"properties" : { },
"tags" : [ ],
"inputFormat" : "plain",
"encrypted" : false,
"customConditional" : "",
"logic" : [ ],
"widget" : {
"type" : ""
},
"reorder" : false
}, {
"label" : "HTML",
"labelPosition" : "left-left",
"tag" : "div",
"className" : "pb-0",
"attrs" : [ {
"attr" : "",
"value" : ""
} ],
"content" : "<div class=\"h4\">\n <a href=\"https://{{ data.stage }}-awx.smardigo.digital/#/jobs/playbook/{{ data.id }}/output\" target=\"awx_job_{{ data.id }}\">öffnen</a>\n</div>",
"refreshOnChange" : true,
"mask" : false,
"tableView" : true,
"alwaysEnabled" : false,
"type" : "htmlelement",
"input" : false,
"key" : "html2",
"validate" : {
"customMessage" : "",
"json" : ""
},
"conditional" : {
"show" : "",
"when" : "",
"json" : ""
},
"tabs" : null,
"encrypted" : false,
"properties" : { },
"tags" : [ ],
"customConditional" : "",
"logic" : [ ],
"refreshOn" : "data",
"reorder" : false
} ]
} ], } ],
"customClass" : "pb-0", "customClass" : "pb-0",
"mask" : false, "mask" : false,

@ -3,17 +3,21 @@
"restApi": true, "restApi": true,
"configKey": "awx-job-plain", "configKey": "awx-job-plain",
"payloadType": "REST", "payloadType": "REST",
"config" : [ { "config": [
{
"name": "connection", "name": "connection",
"type": "CONNECTION", "type": "CONNECTION",
"value": "awx" "value": "awx"
}, { },
{
"name": "resource", "name": "resource",
"type": "STRING", "type": "STRING",
"value": "api/v2/jobs/${id}/" "value": "api/v2/jobs/${id}/"
}, { },
{
"name": "sqlStatement", "name": "sqlStatement",
"type": "STRING", "type": "STRING",
"value" : "SELECT status,failed,started,finished,name,description FROM default_table" "value": "SELECT id,status,failed,created,started,finished,name,description,elapsed,scm_revision FROM default_table"
} ] }
]
} }

@ -0,0 +1,18 @@
{
"name": "awx-job",
"restApi": true,
"configKey": "awx-job",
"payloadType": "POST_PROCESSING",
"config": [
{
"name": "datasource_key",
"type": "STRING",
"value": "awx-job-plain"
},
{
"name": "groovy_script",
"type": "STRING",
"value": "def result = []\ndata.each{job ->\n if (parameters['stage']) {\n job.stage = parameters.stage\n }\n result.add(job)\n}\nresult"
}
]
}

@ -36,7 +36,7 @@
"json" : "" "json" : ""
}, },
"data" : { "data" : {
"url" : "api/v1/scopes/{{context.scopeId}}/tags/{{context.scopeTag}}/datasources/awx-job-plain/query?id={{ row }}", "url" : "api/v1/scopes/{{context.scopeId}}/tags/{{context.scopeTag}}/datasources/awx-job/query?id={{ row }}&stage={{ data.cluster.stage }}",
"method" : "GET", "method" : "GET",
"values" : [ { } ] "values" : [ { } ]
}, },
@ -153,7 +153,7 @@
"tableView" : true, "tableView" : true,
"label" : "Column" "label" : "Column"
}, { }, {
"width" : 4, "width" : 2,
"offset" : 0, "offset" : 0,
"push" : 0, "push" : 0,
"pull" : 0, "pull" : 0,
@ -201,6 +201,7 @@
}, { }, {
"label" : "HTML", "label" : "HTML",
"labelPosition" : "left-left", "labelPosition" : "left-left",
"tag" : "div",
"className" : "pb-0", "className" : "pb-0",
"attrs" : [ { "attrs" : [ {
"attr" : "", "attr" : "",
@ -232,6 +233,122 @@
"refreshOn" : "data", "refreshOn" : "data",
"reorder" : false "reorder" : false
} ] } ]
}, {
"width" : 2,
"offset" : 0,
"push" : 0,
"pull" : 0,
"type" : "column",
"input" : false,
"hideOnChildrenHidden" : false,
"key" : "column",
"tableView" : true,
"label" : "Column",
"components" : [ {
"label" : "Id",
"hideLabel" : true,
"labelPosition" : "left-left",
"allowMultipleMasks" : false,
"showWordCount" : false,
"showCharCount" : false,
"clearOnHide" : false,
"hidden" : true,
"tableView" : true,
"alwaysEnabled" : false,
"type" : "textfield",
"input" : true,
"key" : "id",
"defaultValue" : "",
"validate" : {
"customMessage" : "",
"json" : ""
},
"conditional" : {
"show" : "",
"when" : "",
"json" : ""
},
"tabs" : null,
"properties" : { },
"tags" : [ ],
"inputFormat" : "plain",
"encrypted" : false,
"customConditional" : "",
"logic" : [ ],
"widget" : {
"type" : ""
},
"reorder" : false
}, {
"label" : "Stage",
"hideLabel" : true,
"labelPosition" : "left-left",
"allowMultipleMasks" : false,
"showWordCount" : false,
"showCharCount" : false,
"clearOnHide" : false,
"hidden" : true,
"tableView" : true,
"alwaysEnabled" : false,
"type" : "textfield",
"input" : true,
"key" : "stage",
"defaultValue" : "",
"validate" : {
"customMessage" : "",
"json" : ""
},
"conditional" : {
"show" : "",
"when" : "",
"json" : ""
},
"tabs" : null,
"properties" : { },
"tags" : [ ],
"inputFormat" : "plain",
"encrypted" : false,
"customConditional" : "",
"logic" : [ ],
"widget" : {
"type" : ""
},
"reorder" : false
}, {
"label" : "HTML",
"labelPosition" : "left-left",
"tag" : "div",
"className" : "pb-0",
"attrs" : [ {
"attr" : "",
"value" : ""
} ],
"content" : "<div class=\"h4\">\n <a href=\"https://{{ data.stage }}-awx.smardigo.digital/#/jobs/playbook/{{ data.id }}/output\" target=\"awx_job_{{ data.id }}\">öffnen</a>\n</div>",
"refreshOnChange" : true,
"mask" : false,
"tableView" : true,
"alwaysEnabled" : false,
"type" : "htmlelement",
"input" : false,
"key" : "html2",
"validate" : {
"customMessage" : "",
"json" : ""
},
"conditional" : {
"show" : "",
"when" : "",
"json" : ""
},
"tabs" : null,
"encrypted" : false,
"properties" : { },
"tags" : [ ],
"customConditional" : "",
"logic" : [ ],
"refreshOn" : "data",
"reorder" : false
} ]
} ], } ],
"customClass" : "pb-0", "customClass" : "pb-0",
"mask" : false, "mask" : false,

@ -3,17 +3,21 @@
"restApi": true, "restApi": true,
"configKey": "awx-job-plain", "configKey": "awx-job-plain",
"payloadType": "REST", "payloadType": "REST",
"config" : [ { "config": [
{
"name": "connection", "name": "connection",
"type": "CONNECTION", "type": "CONNECTION",
"value": "awx" "value": "awx"
}, { },
{
"name": "resource", "name": "resource",
"type": "STRING", "type": "STRING",
"value": "api/v2/jobs/${id}/" "value": "api/v2/jobs/${id}/"
}, { },
{
"name": "sqlStatement", "name": "sqlStatement",
"type": "STRING", "type": "STRING",
"value" : "SELECT status,failed,started,finished,name,description FROM default_table" "value": "SELECT id,status,failed,created,started,finished,name,description,elapsed,scm_revision FROM default_table"
} ] }
]
} }

@ -0,0 +1,18 @@
{
"name": "awx-job",
"restApi": true,
"configKey": "awx-job",
"payloadType": "POST_PROCESSING",
"config": [
{
"name": "datasource_key",
"type": "STRING",
"value": "awx-job-plain"
},
{
"name": "groovy_script",
"type": "STRING",
"value": "def result = []\ndata.each{job ->\n if (parameters['stage']) {\n job.stage = parameters.stage\n }\n result.add(job)\n}\nresult"
}
]
}

@ -36,7 +36,7 @@
"json" : "" "json" : ""
}, },
"data" : { "data" : {
"url" : "api/v1/scopes/{{context.scopeId}}/tags/{{context.scopeTag}}/datasources/awx-job-plain/query?id={{ row }}", "url" : "api/v1/scopes/{{context.scopeId}}/tags/{{context.scopeTag}}/datasources/awx-job/query?id={{ row }}&stage={{ data.cluster.stage }}",
"method" : "GET", "method" : "GET",
"values" : [ { } ] "values" : [ { } ]
}, },
@ -153,7 +153,7 @@
"tableView" : true, "tableView" : true,
"label" : "Column" "label" : "Column"
}, { }, {
"width" : 4, "width" : 2,
"offset" : 0, "offset" : 0,
"push" : 0, "push" : 0,
"pull" : 0, "pull" : 0,
@ -201,6 +201,7 @@
}, { }, {
"label" : "HTML", "label" : "HTML",
"labelPosition" : "left-left", "labelPosition" : "left-left",
"tag" : "div",
"className" : "pb-0", "className" : "pb-0",
"attrs" : [ { "attrs" : [ {
"attr" : "", "attr" : "",
@ -232,6 +233,122 @@
"refreshOn" : "data", "refreshOn" : "data",
"reorder" : false "reorder" : false
} ] } ]
}, {
"width" : 2,
"offset" : 0,
"push" : 0,
"pull" : 0,
"type" : "column",
"input" : false,
"hideOnChildrenHidden" : false,
"key" : "column",
"tableView" : true,
"label" : "Column",
"components" : [ {
"label" : "Id",
"hideLabel" : true,
"labelPosition" : "left-left",
"allowMultipleMasks" : false,
"showWordCount" : false,
"showCharCount" : false,
"clearOnHide" : false,
"hidden" : true,
"tableView" : true,
"alwaysEnabled" : false,
"type" : "textfield",
"input" : true,
"key" : "id",
"defaultValue" : "",
"validate" : {
"customMessage" : "",
"json" : ""
},
"conditional" : {
"show" : "",
"when" : "",
"json" : ""
},
"tabs" : null,
"properties" : { },
"tags" : [ ],
"inputFormat" : "plain",
"encrypted" : false,
"customConditional" : "",
"logic" : [ ],
"widget" : {
"type" : ""
},
"reorder" : false
}, {
"label" : "Stage",
"hideLabel" : true,
"labelPosition" : "left-left",
"allowMultipleMasks" : false,
"showWordCount" : false,
"showCharCount" : false,
"clearOnHide" : false,
"hidden" : true,
"tableView" : true,
"alwaysEnabled" : false,
"type" : "textfield",
"input" : true,
"key" : "stage",
"defaultValue" : "",
"validate" : {
"customMessage" : "",
"json" : ""
},
"conditional" : {
"show" : "",
"when" : "",
"json" : ""
},
"tabs" : null,
"properties" : { },
"tags" : [ ],
"inputFormat" : "plain",
"encrypted" : false,
"customConditional" : "",
"logic" : [ ],
"widget" : {
"type" : ""
},
"reorder" : false
}, {
"label" : "HTML",
"labelPosition" : "left-left",
"tag" : "div",
"className" : "pb-0",
"attrs" : [ {
"attr" : "",
"value" : ""
} ],
"content" : "<div class=\"h4\">\n <a href=\"https://{{ data.stage }}-awx.smardigo.digital/#/jobs/playbook/{{ data.id }}/output\" target=\"awx_job_{{ data.id }}\">öffnen</a>\n</div>",
"refreshOnChange" : true,
"mask" : false,
"tableView" : true,
"alwaysEnabled" : false,
"type" : "htmlelement",
"input" : false,
"key" : "html2",
"validate" : {
"customMessage" : "",
"json" : ""
},
"conditional" : {
"show" : "",
"when" : "",
"json" : ""
},
"tabs" : null,
"encrypted" : false,
"properties" : { },
"tags" : [ ],
"customConditional" : "",
"logic" : [ ],
"refreshOn" : "data",
"reorder" : false
} ]
} ], } ],
"customClass" : "pb-0", "customClass" : "pb-0",
"mask" : false, "mask" : false,

Loading…
Cancel
Save