-
Couldn't load subscription status.
- Fork 223
[app-builder] 增加节点配置项更新的功能 #516
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
base: 1.3.x
Are you sure you want to change the base?
Conversation
| AppVersion update(String appId, AppBuilderFlowGraphDto graphDto, OperationContext context); | ||
|
|
||
| /** | ||
| * 根据传入的 {@link AppVersion} 数据更新流程. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
| this.appVersionService.updateGraph(latestVersion, flowGraphDto, context); | ||
| if (isPublished) { | ||
| AppBuilderAppDto appDto = this.converterFactory.convert(latestVersion, AppBuilderAppDto.class); | ||
| this.publish(appDto, context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
| Map<String, Object> pageConfigMap = ObjectUtils.cast(pageConfig); | ||
| Object shapesObj = pageConfigMap.get("shapes"); | ||
| if (!(shapesObj instanceof List)) { | ||
| throw new AippException(AippErrCode.NODE_CONFIG_UPDATE_FAILED, "Shapes is not an array type."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
| return ObjectUtils.cast(shape); | ||
| } | ||
| } | ||
| return new HashMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
| } | ||
| List<?> shapes = ObjectUtils.cast(shapesObj); | ||
| if (shapes.isEmpty()) { | ||
| throw new AippException(AippErrCode.NODE_CONFIG_UPDATE_FAILED, "shapes array is empty."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
| /** | ||
| * 节点配置更新失败 | ||
| */ | ||
| NODE_CONFIG_UPDATE_FAILED(90002146, "节点配置更新失败,失败原因:{1}。"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
| 90002143=没有权限操作该表单。 | ||
| 90002144=应用未打开游客模式。 | ||
| 90002145=大模型调用超时,请尝试更换默认模型。 | ||
| 90002146=节点配置更新失败,失败原因:{1}。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
010c7b0 to
7fa643e
Compare
| void updateNodeConfigs(AppBuilderNodeConfigsDto nodeConfigs, OperationContext context); | ||
|
|
||
| /** | ||
| * 更新节点的配置项。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7fa643e to
35081e7
Compare
35081e7 to
c4941c6
Compare







🔗 相关问题 / Related Issue
Issue 链接 / Issue Link: #515 👈👈
📋 变更类型 / Type of Change
📝 变更目的 / Purpose of the Change
📋 主要变更 / Brief Changelog
🧪 验证变更 / Verifying this Change
测试步骤 / Test Steps
测试覆盖 / Test Coverage
📸 截图 / Screenshots
✅ 贡献者检查清单 / Contributor Checklist
请确保你的 Pull Request 符合以下要求 / Please ensure your Pull Request meets the following requirements:
基本要求 / Basic Requirements:
代码质量 / Code Quality:
测试要求 / Testing Requirements:
mvn -B clean package -Dmaven.test.skip=true,npm install --force && npm run build:pro/ Basic checks passmvn clean install/ Unit tests pass文档和兼容性 / Documentation and Compatibility:
📋 附加信息 / Additional Notes
审查者注意事项 / Reviewer Notes: