From 6869c896a0d207dc75b31153b39c96f01ab6a12f Mon Sep 17 00:00:00 2001 From: Blaize Kaye Date: Fri, 8 Apr 2022 11:56:12 +1200 Subject: [PATCH] Adds custom task argument documentation to docs --- .../custom-task-arguments.png | Bin 0 -> 13426 bytes .../custom-task-confirm.png | Bin 0 -> 9291 bytes docs/using-lagoon-advanced/custom-tasks.md | 62 +++++++++++++++++- 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 docs/using-lagoon-advanced/custom-task-arguments.png create mode 100644 docs/using-lagoon-advanced/custom-task-confirm.png diff --git a/docs/using-lagoon-advanced/custom-task-arguments.png b/docs/using-lagoon-advanced/custom-task-arguments.png new file mode 100644 index 0000000000000000000000000000000000000000..9b4ef4422e25c3f908d9eba1e3ef4b65f2331706 GIT binary patch literal 13426 zcmeHuXIN9)x-PoJf+7~0R4Ymok!q--f>Hts(n3)XkrEIIH53s6X(CIygd##H0@4D~ zvRpI)Ndke;L1{^-Lg<9#PS)M7yGiyr=efV`JK#%JT%3#a9qI}gnzk4;y9P%bZ)-(FTt-?ao>XM^9mFG>@(+$vP8u^ z@93gNRT7g&&x<6_`8-aW^rt6(Q(jAhW47Sy;}j54S#D*eZ0fPehXOM8n!D5cB9j>E z!sWgD4jwzL{+wmcuOC5eJW2BYk6{JL{Bm+~8xM%|e(oT?OhZW3kj_61`)hoz#hy&V zNdn<3!#DQqwG=rGo4)ERCGyXo-g(EU=s7O$nUm8arg<-)JO=VORmXF3*K&Yxvl zMxQI>uKrr$ueGWt9y*Aqjv9$PwA+L|d*j7V!}5m)_)h&A`pdqI_I)qGmYNGqOw+e< z9RuBWfksFD8v4svoZVgxZHOJXNnnrZrHtS`aw z5XiZ6zlQ!Y7M2Y7rJYol#5lddXJGoa!ot|&zlQ!Ywpv%6)NQwHrOP<||CF%U34;9T z@5OD#)GlI!EAjG>#-c%2K{Wj5kE-p;wH8*Sps+_BcgMoDjar?tcQp%~?UFKAUJIy* zTvlAEGOcw@Zzi@_EaCfn@$6%f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kUiEwlaZV?kO%ku8)S-N7kwM3-X@r#AG8Ux(>O6U!l3 zOL19n8?x!u?1RM(K>g?^TD?ji@pg|=o%&?z+j?OzvujZcsO1XXdw19HOI$z=R}zyB zB*mq8`%)=xO)Cmb;aUQG!HJe4R%uj6sxl;ed1`Q>QCmDfezpB5i`ru9;j@B6Dj9)v zZ;v*oP6CeHlxW?0bU#{VBw%5Fj#Ge}lP;AgzVX>W$+_;9azY6B2Kvf* z4n)@m*o!t#c)ZrWoqI&EE$RniMYd4+> z8Uy-S#CU#>C-8S5XzKXxUTE+h=!GXFb>%#DNJi238Mtb$5nye$G3rRm1(;aFd-B!Y z&MQPda880Dm>^IEL-cepnsw){Ilefpowh zx~vS|xCXq_mS@)=bCYDWdO?dw3d+QC*Q0BmKf5*@nRH^)vJ zoB$l~`=wy;?qUYaDW(HhZMGuIx7#JawTe4{BemZj0WsYl$dv%H$F2weWH(9z=DctQ zxKD4`i=8tCXZBci;7<4<}BLipOT+JC6aPj#bSHubOcoc6qqG?W+ z4J4I+8hsZ)NWj!2GHy2Y4B35rd$U8I=gFxJ4p4v#sek66x~kI|#~BRlg&s;D0R65X z0@iED4uyIiW=l;87$NY~FpX8uaA!>k)n#|JGW{7h?=YWCSgw`^)^D0Zf4Ugjyic$2 zp$7v=14>9a>lDY^6s3l|x*$U#W4Tmvw?%Gumo~C12d~7q-&ukZ_N73`abcS2e!-SH zSSb=E1W@D8h`$@qnYqR|T7Bc7#FI%wxYo}+TwZ48)Sn`IjNr*COb6MQRDu#P-qW{Z zfIE`enjyM^nJdh@G%=-4wx<@LXKhsII%QvBiP!TrAh|Cfm6&MolGB8>+x{ucv_ Bm6-ql literal 0 HcmV?d00001 diff --git a/docs/using-lagoon-advanced/custom-task-confirm.png b/docs/using-lagoon-advanced/custom-task-confirm.png new file mode 100644 index 0000000000000000000000000000000000000000..2055667a8a2b930193590645b93a0452ea0e42af GIT binary patch literal 9291 zcmeHtS5#B&)-EWYhzin?5}Nd?(m{%v(2LYig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;d5VUl-|JN!(X7c~ z(jrYmy;`gNqTr-f+Fp>#8YY^p4gc1atsr^T)sw5!m2&GA^DT98^Cu<#)j`*0eTnjtk^)}@ zuBSRS#GLkTow-_HiwSPznQaLjw_YA%PK|xwNv0JlhCnY0d?Sq)wsTEGK?;iBJqB|| z>259@yVQ_gUhDy-_1sf^dv@m5>|BrjmnWon3gKt;s+wxd+znfc(BUpe>Hy$PSP!w5hXs62!yiKgIgyu0DS3d*+Ya3VuID*`CLt<4h%vb0=AEbi E3&wp_qW}N^ literal 0 HcmV?d00001 diff --git a/docs/using-lagoon-advanced/custom-tasks.md b/docs/using-lagoon-advanced/custom-tasks.md index 19f6e2bc6e..27dd3feabf 100644 --- a/docs/using-lagoon-advanced/custom-tasks.md +++ b/docs/using-lagoon-advanced/custom-tasks.md @@ -34,11 +34,19 @@ Schematically, the call looks like this mutation addAdvancedTask { addAdvancedTaskDefinition(input:{ name: string, + confirmationText: string, type: [COMMAND|IMAGE], [project|environment]: int, description: string, service: string, - command: string + command: string, + advancedTaskDefinitionArguments: [ + { + name: "ENVIROMENT_VARIABLE_NAME", + displayName: "Friendly Name For Variable", + type: [STRING | ENVIRONMENT_SOURCE_NAME] + } + ] }) { ... on AdvancedTaskDefinitionImage { id @@ -46,6 +54,13 @@ mutation addAdvancedTask { description service image + confirmationText + advancedTaskDefinitionArguments { + type + range + name + displayName + } ... } ... on AdvancedTaskDefinitionCommand { @@ -54,6 +69,12 @@ mutation addAdvancedTask { description service command + advancedTaskDefinitionArguments { + type + range + name + displayName + } ... } } @@ -68,6 +89,45 @@ The `[project|environment]` set of fields will attach the task to either the `pr We put the service we'd like to target with our task in the `service` field, and `command` is the actual command that we'd like to run. +### Arguments passed to tasks + +In order to give more flexibility to the users invoking the tasks via the Lagoon UI, we support defining task arguments. These arguments are displayed as text boxes or drop downs and are required for the task to be invoked. + +Here is an example of how we might set up two arguments. + +``` +advancedTaskDefinitionArguments: [ + { + name: "ENV_VAR_NAME_SOURCE", + displayName: "Environment source", + type: ENVIRONMENT_SOURCE_NAME + + }, + { + name: "ENV_VAR_NAME_STRING", + displayName: "Echo value", + type: STRING + } + ] + }) +``` + +This fragment shows both types of arguments the system currently supports. +The first, `ENV_VAR_NAME_SOURCE` is an example of type `ENVIRONMENT_SOURCE_NAME`, which will present the user of the UI a dropdown of the different environments inside of a project. +The second `ENV_VAR_NAME_STRING` is of type `STRING` and will present the user with a textbox to fill in. + +The values that the user selects will be available as environment variables in the `COMMAND` type tasks when the task is run. + + +![Task Arguments](./custom-task-arguments.png) + + +### Confirmation + +When the `confirmationText` field has text, it will be displayed with a confirmation modal in the UI before the user is able to run the task. + +![Task Confirmation](./custom-task-confirm.png) + ## Invoking the task With the task now defined, the task should now show up in the tasks dropdown in the Lagoon UI.