Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插件调试参数与插件本身的参数不一致 #1488

Closed
5 of 7 tasks
bincooo opened this issue May 15, 2024 · 6 comments
Closed
5 of 7 tasks

插件调试参数与插件本身的参数不一致 #1488

bincooo opened this issue May 15, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@bincooo
Copy link

bincooo commented May 15, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号:
    v4.8 docker

问题描述, 日志截图
RT, 参数输入缺失:
Screenshot 2024-05-15 at 08 26 47

复现步骤

预期结果

相关截图

@bincooo bincooo added the bug Something isn't working label May 15, 2024
@c121914yu
Copy link
Collaborator

确实,现在只识别变量作为 debug 参数

@bincooo
Copy link
Author

bincooo commented May 15, 2024

@c121914yu 顺带一提,那个变量更新插件如果是chekbox,原值为true,如果想改为false,则不生效
Screenshot 2024-05-15 at 09 49 36
Screenshot 2024-05-15 at 09 57 12

@newfish-cmyk
Copy link
Collaborator

@c121914yu 顺带一提,那个变量更新插件如果是chekbox,原值为true,如果想改为false,则不生效 Screenshot 2024-05-15 at 09 49 36 Screenshot 2024-05-15 at 09 57 12

image 好像没复现

@bincooo
Copy link
Author

bincooo commented May 15, 2024

@newfish-cmyk 抱歉,我也复现不了了😅

@bincooo
Copy link
Author

bincooo commented May 15, 2024

@newfish-cmyk 哦,我点了两下那个checkbox,就出现了,你试试

{
  "nodes": [
    {
      "nodeId": "u573fjeevm8v",
      "name": "自定义插件输入",
      "intro": "自定义配置外部输入,使用插件时,仅暴露自定义配置的输入",
      "avatar": "/imgs/workflow/input.png",
      "flowNodeType": "pluginInput",
      "showStatus": false,
      "position": {
        "x": 134.77526762822555,
        "y": -121.06191783178224
      },
      "inputs": [
        {
          "key": "value",
          "valueType": "boolean",
          "label": "value",
          "renderTypeList": [
            "switch"
          ],
          "required": true,
          "description": "",
          "canEdit": true,
          "value": true,
          "editField": {
            "key": true
          },
          "maxLength": "",
          "dynamicParamDefaultValue": {
            "inputType": "reference",
            "valueType": "string",
            "required": true
          }
        }
      ],
      "outputs": [
        {
          "id": "yBmWibcXT0wp",
          "key": "value",
          "valueType": "boolean",
          "label": "value",
          "type": "static"
        }
      ]
    },
    {
      "nodeId": "io9uqucug9af",
      "name": "自定义插件输出",
      "intro": "自定义配置外部输出,使用插件时,仅暴露自定义配置的输出",
      "avatar": "/imgs/workflow/output.png",
      "flowNodeType": "pluginOutput",
      "showStatus": false,
      "position": {
        "x": 1814.0346435424676,
        "y": 27.59648082007898
      },
      "inputs": [
        {
          "key": "value",
          "valueType": "boolean",
          "label": "value",
          "renderTypeList": [
            "reference"
          ],
          "required": false,
          "description": "",
          "canEdit": true,
          "editField": {
            "key": true,
            "description": true,
            "valueType": true
          },
          "value": [
            "u573fjeevm8v",
            "yBmWibcXT0wp"
          ]
        }
      ],
      "outputs": []
    },
    {
      "nodeId": "amXeqwTAsOlC",
      "name": "判断器",
      "intro": "根据一定的条件,执行不同的分支。",
      "avatar": "/imgs/workflow/ifElse.svg",
      "flowNodeType": "ifElseNode",
      "showStatus": true,
      "position": {
        "x": 618.6600464624444,
        "y": -197.45465031469365
      },
      "inputs": [
        {
          "key": "ifElseList",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "any",
          "label": "",
          "value": [
            {
              "condition": "AND",
              "list": [
                {
                  "variable": [
                    "kNLuS6kgFmuw",
                    "mDkJns6K4ye6"
                  ],
                  "condition": "equalTo",
                  "value": "false"
                }
              ]
            }
          ]
        }
      ],
      "outputs": [
        {
          "id": "ifElseResult",
          "key": "ifElseResult",
          "label": "判断结果",
          "valueType": "string",
          "type": "static"
        }
      ]
    },
    {
      "nodeId": "ltu4TNVaP9s7",
      "name": "变量更新",
      "intro": "可以更新指定节点的输出值或更新全局变量",
      "avatar": "/imgs/workflow/variable.png",
      "flowNodeType": "variableUpdate",
      "showStatus": true,
      "position": {
        "x": 869.9429728352834,
        "y": 221.21370149856193
      },
      "inputs": [
        {
          "key": "updateList",
          "valueType": "any",
          "label": "",
          "renderTypeList": [
            "hidden"
          ],
          "editField": {
            "key": true,
            "valueType": true
          },
          "value": [
            {
              "variable": [
                "u573fjeevm8v",
                "yBmWibcXT0wp"
              ],
              "value": [
                "",
                "false"
              ],
              "renderType": "input"
            }
          ]
        }
      ],
      "outputs": []
    }
  ],
  "edges": [
    {
      "source": "amXeqwTAsOlC",
      "target": "io9uqucug9af",
      "sourceHandle": "amXeqwTAsOlC-source-IF",
      "targetHandle": "io9uqucug9af-target-left"
    },
    {
      "source": "amXeqwTAsOlC",
      "target": "ltu4TNVaP9s7",
      "sourceHandle": "amXeqwTAsOlC-source-ELSE",
      "targetHandle": "ltu4TNVaP9s7-target-top"
    },
    {
      "source": "ltu4TNVaP9s7",
      "target": "io9uqucug9af",
      "sourceHandle": "ltu4TNVaP9s7-source-right",
      "targetHandle": "io9uqucug9af-target-left"
    },
    {
      "source": "u573fjeevm8v",
      "target": "amXeqwTAsOlC",
      "sourceHandle": "u573fjeevm8v-source-right",
      "targetHandle": "amXeqwTAsOlC-target-left"
    }
  ]
}

@newfish-cmyk
Copy link
Collaborator

@newfish-cmyk 哦,我点了两下那个checkbox,就出现了,你试试

{
  "nodes": [
    {
      "nodeId": "u573fjeevm8v",
      "name": "自定义插件输入",
      "intro": "自定义配置外部输入,使用插件时,仅暴露自定义配置的输入",
      "avatar": "/imgs/workflow/input.png",
      "flowNodeType": "pluginInput",
      "showStatus": false,
      "position": {
        "x": 134.77526762822555,
        "y": -121.06191783178224
      },
      "inputs": [
        {
          "key": "value",
          "valueType": "boolean",
          "label": "value",
          "renderTypeList": [
            "switch"
          ],
          "required": true,
          "description": "",
          "canEdit": true,
          "value": true,
          "editField": {
            "key": true
          },
          "maxLength": "",
          "dynamicParamDefaultValue": {
            "inputType": "reference",
            "valueType": "string",
            "required": true
          }
        }
      ],
      "outputs": [
        {
          "id": "yBmWibcXT0wp",
          "key": "value",
          "valueType": "boolean",
          "label": "value",
          "type": "static"
        }
      ]
    },
    {
      "nodeId": "io9uqucug9af",
      "name": "自定义插件输出",
      "intro": "自定义配置外部输出,使用插件时,仅暴露自定义配置的输出",
      "avatar": "/imgs/workflow/output.png",
      "flowNodeType": "pluginOutput",
      "showStatus": false,
      "position": {
        "x": 1814.0346435424676,
        "y": 27.59648082007898
      },
      "inputs": [
        {
          "key": "value",
          "valueType": "boolean",
          "label": "value",
          "renderTypeList": [
            "reference"
          ],
          "required": false,
          "description": "",
          "canEdit": true,
          "editField": {
            "key": true,
            "description": true,
            "valueType": true
          },
          "value": [
            "u573fjeevm8v",
            "yBmWibcXT0wp"
          ]
        }
      ],
      "outputs": []
    },
    {
      "nodeId": "amXeqwTAsOlC",
      "name": "判断器",
      "intro": "根据一定的条件,执行不同的分支。",
      "avatar": "/imgs/workflow/ifElse.svg",
      "flowNodeType": "ifElseNode",
      "showStatus": true,
      "position": {
        "x": 618.6600464624444,
        "y": -197.45465031469365
      },
      "inputs": [
        {
          "key": "ifElseList",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "any",
          "label": "",
          "value": [
            {
              "condition": "AND",
              "list": [
                {
                  "variable": [
                    "kNLuS6kgFmuw",
                    "mDkJns6K4ye6"
                  ],
                  "condition": "equalTo",
                  "value": "false"
                }
              ]
            }
          ]
        }
      ],
      "outputs": [
        {
          "id": "ifElseResult",
          "key": "ifElseResult",
          "label": "判断结果",
          "valueType": "string",
          "type": "static"
        }
      ]
    },
    {
      "nodeId": "ltu4TNVaP9s7",
      "name": "变量更新",
      "intro": "可以更新指定节点的输出值或更新全局变量",
      "avatar": "/imgs/workflow/variable.png",
      "flowNodeType": "variableUpdate",
      "showStatus": true,
      "position": {
        "x": 869.9429728352834,
        "y": 221.21370149856193
      },
      "inputs": [
        {
          "key": "updateList",
          "valueType": "any",
          "label": "",
          "renderTypeList": [
            "hidden"
          ],
          "editField": {
            "key": true,
            "valueType": true
          },
          "value": [
            {
              "variable": [
                "u573fjeevm8v",
                "yBmWibcXT0wp"
              ],
              "value": [
                "",
                "false"
              ],
              "renderType": "input"
            }
          ]
        }
      ],
      "outputs": []
    }
  ],
  "edges": [
    {
      "source": "amXeqwTAsOlC",
      "target": "io9uqucug9af",
      "sourceHandle": "amXeqwTAsOlC-source-IF",
      "targetHandle": "io9uqucug9af-target-left"
    },
    {
      "source": "amXeqwTAsOlC",
      "target": "ltu4TNVaP9s7",
      "sourceHandle": "amXeqwTAsOlC-source-ELSE",
      "targetHandle": "ltu4TNVaP9s7-target-top"
    },
    {
      "source": "ltu4TNVaP9s7",
      "target": "io9uqucug9af",
      "sourceHandle": "ltu4TNVaP9s7-source-right",
      "targetHandle": "io9uqucug9af-target-left"
    },
    {
      "source": "u573fjeevm8v",
      "target": "amXeqwTAsOlC",
      "sourceHandle": "u573fjeevm8v-source-right",
      "targetHandle": "amXeqwTAsOlC-target-left"
    }
  ]
}

谢谢!复现了修复了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants