kipshi commented on code in PR #4712:
URL: https://github.com/apache/inlong/pull/4712#discussion_r902514591
##########
inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/impl/InlongGroupImpl.java:
##########
@@ -102,8 +107,19 @@ public InlongGroupContext init() throws Exception {
processView.getStatus()));
// init must be NewGroupProcessForm
+ // compile with old cluster
+ JSONObject formDataJson =
+
JsonUtils.parseObject(JsonUtils.toJsonString(JsonUtils.toJsonString(processView.getFormData())),
Review Comment:
same as above
##########
inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/inner/InnerInlongManagerClient.java:
##########
@@ -144,12 +149,21 @@ public Boolean isGroupExists(String inlongGroupId) {
/**
* Get information of group.
*/
+ @SneakyThrows
public InlongGroupInfo getGroupInfo(String inlongGroupId) {
AssertUtils.notEmpty(inlongGroupId, "InlongGroupId should not be
empty");
- Response<InlongGroupInfo> responseBody =
executeHttpCall(inlongGroupApi.getGroupInfo(inlongGroupId));
+ Response<Object> responseBody =
executeHttpCall(inlongGroupApi.getGroupInfo(inlongGroupId));
if (responseBody.isSuccess()) {
- return responseBody.getData();
+ JSONObject groupInfoJson = JsonUtils.parseObject(
+
JsonUtils.toJsonString(JsonUtils.toJsonString(responseBody.getData())),
Review Comment:
body is hashMap
first ( toJsonString ) make it string
second( toJsonString ) make it json_string
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]