Commit 32b608e10d701f7679b9a925ffbe99587d9f50eb

Authored by Volodymyr Babak
2 parents a1d6cee7 b52d2aae

Merge remote-tracking branch 'origin/develop/2.6-edge' into develop/3.3-edge

... ... @@ -59,7 +59,6 @@ CREATE TABLE IF NOT EXISTS thingsboard.edge (
59 59 secret text,
60 60 edge_license_key text,
61 61 cloud_endpoint text,
62   - configuration text,
63 62 additional_info text,
64 63 PRIMARY KEY (id, tenant_id, customer_id, type)
65 64 );
... ...
... ... @@ -19,7 +19,6 @@ CREATE TABLE IF NOT EXISTS edge (
19 19 additional_info varchar,
20 20 customer_id varchar(31),
21 21 root_rule_chain_id varchar(31),
22   - configuration varchar(10000000),
23 22 type varchar(255),
24 23 name varchar(255),
25 24 label varchar(255),
... ...
... ... @@ -976,7 +976,7 @@ public final class EdgeGrpcSession implements Closeable {
976 976 .setSecret(edge.getSecret())
977 977 .setEdgeLicenseKey(edge.getEdgeLicenseKey())
978 978 .setCloudEndpoint(edge.getCloudEndpoint())
979   - .setConfiguration(JacksonUtil.toString(edge.getConfiguration()))
  979 + .setAdditionalInfo(JacksonUtil.toString(edge.getAdditionalInfo()))
980 980 .setCloudType("CE");
981 981 if (edge.getCustomerId() != null) {
982 982 builder.setCustomerIdMSB(edge.getCustomerId().getId().getMostSignificantBits())
... ...
... ... @@ -47,7 +47,6 @@ public class Edge extends SearchTextBasedWithAdditionalInfo<EdgeId> implements H
47 47 private String secret;
48 48 private String edgeLicenseKey;
49 49 private String cloudEndpoint;
50   - private transient JsonNode configuration;
51 50
52 51 public Edge() {
53 52 super();
... ... @@ -68,7 +67,6 @@ public class Edge extends SearchTextBasedWithAdditionalInfo<EdgeId> implements H
68 67 this.secret = edge.getSecret();
69 68 this.edgeLicenseKey = edge.getEdgeLicenseKey();
70 69 this.cloudEndpoint = edge.getCloudEndpoint();
71   - this.configuration = edge.getConfiguration();
72 70 }
73 71
74 72 @Override
... ...
... ... @@ -87,7 +87,7 @@ message EdgeConfiguration {
87 87 string secret = 10;
88 88 string edgeLicenseKey = 11;
89 89 string cloudEndpoint = 12;
90   - string configuration = 13;
  90 + string additionalInfo = 13;
91 91 string cloudType = 14;
92 92 }
93 93
... ...
... ... @@ -465,7 +465,6 @@ public class ModelConstants {
465 465 public static final String EDGE_NAME_PROPERTY = "name";
466 466 public static final String EDGE_LABEL_PROPERTY = "label";
467 467 public static final String EDGE_TYPE_PROPERTY = "type";
468   - public static final String EDGE_CONFIGURATION_PROPERTY = "configuration";
469 468 public static final String EDGE_ADDITIONAL_INFO_PROPERTY = ADDITIONAL_INFO_PROPERTY;
470 469 public static final String EDGE_BY_TENANT_AND_SEARCH_TEXT_COLUMN_FAMILY_NAME = "edge_by_tenant_and_search_text";
471 470 public static final String EDGE_BY_TENANT_BY_TYPE_AND_SEARCH_TEXT_COLUMN_FAMILY_NAME = "edge_by_tenant_by_type_and_search_text";
... ...
... ... @@ -87,10 +87,6 @@ public abstract class AbstractEdgeEntity<T extends Edge> extends BaseSqlEntity<T
87 87 private String cloudEndpoint;
88 88
89 89 @Type(type = "json")
90   - @Column(name = ModelConstants.EDGE_CONFIGURATION_PROPERTY)
91   - private JsonNode configuration;
92   -
93   - @Type(type = "json")
94 90 @Column(name = ModelConstants.EDGE_ADDITIONAL_INFO_PROPERTY)
95 91 private JsonNode additionalInfo;
96 92
... ... @@ -118,7 +114,6 @@ public abstract class AbstractEdgeEntity<T extends Edge> extends BaseSqlEntity<T
118 114 this.secret = edge.getSecret();
119 115 this.edgeLicenseKey = edge.getEdgeLicenseKey();
120 116 this.cloudEndpoint = edge.getCloudEndpoint();
121   - this.configuration = edge.getConfiguration();
122 117 this.additionalInfo = edge.getAdditionalInfo();
123 118 }
124 119
... ... @@ -135,7 +130,6 @@ public abstract class AbstractEdgeEntity<T extends Edge> extends BaseSqlEntity<T
135 130 this.secret = edgeEntity.getSecret();
136 131 this.edgeLicenseKey = edgeEntity.getEdgeLicenseKey();
137 132 this.cloudEndpoint = edgeEntity.getCloudEndpoint();
138   - this.configuration = edgeEntity.getConfiguration();
139 133 this.additionalInfo = edgeEntity.getAdditionalInfo();
140 134 }
141 135
... ... @@ -172,7 +166,6 @@ public abstract class AbstractEdgeEntity<T extends Edge> extends BaseSqlEntity<T
172 166 edge.setSecret(secret);
173 167 edge.setEdgeLicenseKey(edgeLicenseKey);
174 168 edge.setCloudEndpoint(cloudEndpoint);
175   - edge.setConfiguration(configuration);
176 169 edge.setAdditionalInfo(additionalInfo);
177 170 return edge;
178 171 }
... ...
... ... @@ -427,7 +427,6 @@ CREATE TABLE IF NOT EXISTS edge (
427 427 additional_info varchar,
428 428 customer_id uuid,
429 429 root_rule_chain_id uuid,
430   - configuration varchar(10000000),
431 430 type varchar(255),
432 431 name varchar(255),
433 432 label varchar(255),
... ...
... ... @@ -454,7 +454,6 @@ CREATE TABLE IF NOT EXISTS edge (
454 454 additional_info varchar,
455 455 customer_id uuid,
456 456 root_rule_chain_id uuid,
457   - configuration varchar(10000000),
458 457 type varchar(255),
459 458 name varchar(255),
460 459 label varchar(255),
... ...