Merge remote-tracking branch 'opensource/master' into UITests
This commit is contained in:
		
						commit
						8b0e9fb48b
					
				@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>thingsboard</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <artifactId>application</artifactId>
 | 
			
		||||
 | 
			
		||||
@ -51,6 +51,7 @@ CREATE TABLE IF NOT EXISTS audit_log (
 | 
			
		||||
    action_failure_details varchar(1000000)
 | 
			
		||||
) PARTITION BY RANGE (created_time);
 | 
			
		||||
CREATE INDEX IF NOT EXISTS idx_audit_log_tenant_id_and_created_time ON audit_log(tenant_id, created_time DESC);
 | 
			
		||||
CREATE INDEX IF NOT EXISTS idx_audit_log_id ON audit_log(id);
 | 
			
		||||
 | 
			
		||||
CREATE OR REPLACE PROCEDURE migrate_audit_logs(IN start_time_ms BIGINT, IN end_time_ms BIGINT, IN partition_size_ms BIGINT)
 | 
			
		||||
    LANGUAGE plpgsql AS
 | 
			
		||||
@ -111,6 +112,7 @@ CREATE TABLE IF NOT EXISTS edge_event (
 | 
			
		||||
    ts bigint NOT NULL
 | 
			
		||||
    ) PARTITION BY RANGE (created_time);
 | 
			
		||||
CREATE INDEX IF NOT EXISTS idx_edge_event_tenant_id_and_created_time ON edge_event(tenant_id, created_time DESC);
 | 
			
		||||
CREATE INDEX IF NOT EXISTS idx_edge_event_id ON edge_event(id);
 | 
			
		||||
 | 
			
		||||
CREATE OR REPLACE PROCEDURE migrate_edge_event(IN start_time_ms BIGINT, IN end_time_ms BIGINT, IN partition_size_ms BIGINT)
 | 
			
		||||
    LANGUAGE plpgsql AS
 | 
			
		||||
 | 
			
		||||
@ -31,6 +31,7 @@ import org.thingsboard.server.common.data.id.AssetId;
 | 
			
		||||
import org.thingsboard.server.common.data.id.CustomerId;
 | 
			
		||||
import org.thingsboard.server.common.data.id.EdgeId;
 | 
			
		||||
import org.thingsboard.server.common.data.id.TenantId;
 | 
			
		||||
import org.thingsboard.server.common.data.plugin.ComponentLifecycleEvent;
 | 
			
		||||
import org.thingsboard.server.dao.asset.AssetService;
 | 
			
		||||
import org.thingsboard.server.service.entitiy.AbstractTbEntityService;
 | 
			
		||||
import org.thingsboard.server.service.profile.TbAssetProfileCache;
 | 
			
		||||
@ -63,6 +64,8 @@ public class DefaultTbAssetService extends AbstractTbEntityService implements Tb
 | 
			
		||||
            autoCommit(user, savedAsset.getId());
 | 
			
		||||
            notificationEntityService.notifyCreateOrUpdateEntity(tenantId, savedAsset.getId(), savedAsset,
 | 
			
		||||
                    asset.getCustomerId(), actionType, user);
 | 
			
		||||
            tbClusterService.broadcastEntityStateChangeEvent(tenantId, savedAsset.getId(),
 | 
			
		||||
                    asset.getId() == null ? ComponentLifecycleEvent.CREATED : ComponentLifecycleEvent.UPDATED);
 | 
			
		||||
            return savedAsset;
 | 
			
		||||
        } catch (Exception e) {
 | 
			
		||||
            notificationEntityService.logEntityAction(tenantId, emptyId(EntityType.ASSET), asset, actionType, user, e);
 | 
			
		||||
@ -79,7 +82,7 @@ public class DefaultTbAssetService extends AbstractTbEntityService implements Tb
 | 
			
		||||
            assetService.deleteAsset(tenantId, assetId);
 | 
			
		||||
            notificationEntityService.notifyDeleteEntity(tenantId, assetId, asset, asset.getCustomerId(),
 | 
			
		||||
                    ActionType.DELETED, relatedEdgeIds, user, assetId.toString());
 | 
			
		||||
 | 
			
		||||
            tbClusterService.broadcastEntityStateChangeEvent(tenantId, assetId, ComponentLifecycleEvent.DELETED);
 | 
			
		||||
            return removeAlarmsByEntityId(tenantId, assetId);
 | 
			
		||||
        } catch (Exception e) {
 | 
			
		||||
            notificationEntityService.logEntityAction(tenantId, emptyId(EntityType.ASSET), ActionType.DELETED, user, e,
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>common</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								common/cache/pom.xml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								common/cache/pom.xml
									
									
									
									
										vendored
									
									
								
							@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>common</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>common</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
 | 
			
		||||
@ -22,7 +22,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>common</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>common</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>common</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>common</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>common</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>thingsboard</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <artifactId>common</artifactId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>common</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>common</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>script</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common.script</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>script</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common.script</groupId>
 | 
			
		||||
 | 
			
		||||
@ -22,7 +22,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>common</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common.transport</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common.transport</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common.transport</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common.transport</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>common</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
 | 
			
		||||
@ -21,7 +21,7 @@
 | 
			
		||||
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common.transport</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>common</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>common</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.common</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>thingsboard</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <artifactId>dao</artifactId>
 | 
			
		||||
 | 
			
		||||
@ -50,8 +50,12 @@ CREATE INDEX IF NOT EXISTS idx_attribute_kv_by_key_and_last_update_ts ON attribu
 | 
			
		||||
 | 
			
		||||
CREATE INDEX IF NOT EXISTS idx_audit_log_tenant_id_and_created_time ON audit_log(tenant_id, created_time DESC);
 | 
			
		||||
 | 
			
		||||
CREATE INDEX IF NOT EXISTS idx_audit_log_id ON audit_log(id);
 | 
			
		||||
 | 
			
		||||
CREATE INDEX IF NOT EXISTS idx_edge_event_tenant_id_and_created_time ON edge_event(tenant_id, created_time DESC);
 | 
			
		||||
 | 
			
		||||
CREATE INDEX IF NOT EXISTS idx_edge_event_id ON edge_event(id);
 | 
			
		||||
 | 
			
		||||
CREATE INDEX IF NOT EXISTS idx_rpc_tenant_id_device_id ON rpc(tenant_id, device_id);
 | 
			
		||||
 | 
			
		||||
CREATE INDEX IF NOT EXISTS idx_device_external_id ON device(tenant_id, external_id);
 | 
			
		||||
 | 
			
		||||
@ -21,7 +21,7 @@
 | 
			
		||||
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>msa</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.msa</groupId>
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "thingsboard-js-executor",
 | 
			
		||||
  "private": true,
 | 
			
		||||
  "version": "3.4.2",
 | 
			
		||||
  "version": "3.4.3",
 | 
			
		||||
  "description": "ThingsBoard JavaScript Executor Microservice",
 | 
			
		||||
  "main": "server.ts",
 | 
			
		||||
  "bin": "server.js",
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>msa</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.msa</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>thingsboard</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <artifactId>msa</artifactId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>msa</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.msa</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>msa</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.msa</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard.msa</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.msa.transport</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard.msa</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.msa.transport</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard.msa</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.msa.transport</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard.msa</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.msa.transport</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>msa</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.msa</groupId>
 | 
			
		||||
 | 
			
		||||
@ -21,7 +21,7 @@
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard.msa</groupId>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
    </parent>
 | 
			
		||||
 | 
			
		||||
    <groupId>org.thingsboard.msa.transport</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>msa</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.msa</groupId>
 | 
			
		||||
 | 
			
		||||
@ -21,7 +21,7 @@
 | 
			
		||||
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>msa</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.msa</groupId>
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "thingsboard-web-ui",
 | 
			
		||||
  "private": true,
 | 
			
		||||
  "version": "3.4.2",
 | 
			
		||||
  "version": "3.4.3",
 | 
			
		||||
  "description": "ThingsBoard Web UI Microservice",
 | 
			
		||||
  "main": "server.ts",
 | 
			
		||||
  "bin": "server.js",
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>msa</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.msa</groupId>
 | 
			
		||||
 | 
			
		||||
@ -19,11 +19,11 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>thingsboard</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <artifactId>netty-mqtt</artifactId>
 | 
			
		||||
    <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
    <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
    <packaging>jar</packaging>
 | 
			
		||||
 | 
			
		||||
    <name>Netty MQTT Client</name>
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								pom.xml
									
									
									
									
									
								
							@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <groupId>org.thingsboard</groupId>
 | 
			
		||||
    <artifactId>thingsboard</artifactId>
 | 
			
		||||
    <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
    <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
    <packaging>pom</packaging>
 | 
			
		||||
 | 
			
		||||
    <name>Thingsboard</name>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>thingsboard</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <artifactId>rest-client</artifactId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>thingsboard</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <artifactId>rule-engine</artifactId>
 | 
			
		||||
 | 
			
		||||
@ -22,7 +22,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>rule-engine</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.rule-engine</groupId>
 | 
			
		||||
 | 
			
		||||
@ -22,7 +22,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>rule-engine</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.rule-engine</groupId>
 | 
			
		||||
 | 
			
		||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>thingsboard</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <artifactId>tools</artifactId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.transport</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.transport</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.transport</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard.transport</groupId>
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>thingsboard</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <artifactId>transport</artifactId>
 | 
			
		||||
 | 
			
		||||
@ -21,7 +21,7 @@
 | 
			
		||||
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>transport</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "thingsboard",
 | 
			
		||||
  "version": "3.4.2",
 | 
			
		||||
  "version": "3.4.3",
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "ng": "ng",
 | 
			
		||||
    "start": "node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve --configuration development --host 0.0.0.0 --open",
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>org.thingsboard</groupId>
 | 
			
		||||
        <version>3.4.2-SNAPSHOT</version>
 | 
			
		||||
        <version>3.4.3-SNAPSHOT</version>
 | 
			
		||||
        <artifactId>thingsboard</artifactId>
 | 
			
		||||
    </parent>
 | 
			
		||||
    <groupId>org.thingsboard</groupId>
 | 
			
		||||
 | 
			
		||||
@ -56,7 +56,7 @@ import { WINDOW } from '@core/services/window.service';
 | 
			
		||||
import { WindowMessage } from '@shared/models/window-message.model';
 | 
			
		||||
import { deepClone, guid, isDefined, isDefinedAndNotNull, isNotEmptyStr } from '@app/core/utils';
 | 
			
		||||
import {
 | 
			
		||||
  DashboardContext,
 | 
			
		||||
  DashboardContext, DashboardPageInitData,
 | 
			
		||||
  DashboardPageLayout,
 | 
			
		||||
  DashboardPageLayoutContext,
 | 
			
		||||
  DashboardPageLayouts,
 | 
			
		||||
@ -365,15 +365,23 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
 | 
			
		||||
  ngOnInit() {
 | 
			
		||||
    this.rxSubscriptions.push(this.route.data.subscribe(
 | 
			
		||||
      (data) => {
 | 
			
		||||
        let dashboardPageInitData: DashboardPageInitData;
 | 
			
		||||
        if (this.embedded) {
 | 
			
		||||
          data.dashboard = this.dashboardUtils.validateAndUpdateDashboard(this.dashboard);
 | 
			
		||||
          data.currentDashboardId = this.dashboard.id ? this.dashboard.id.id : null;
 | 
			
		||||
          data.widgetEditMode = false;
 | 
			
		||||
          data.singlePageMode = false;
 | 
			
		||||
          dashboardPageInitData = {
 | 
			
		||||
            dashboard: this.dashboardUtils.validateAndUpdateDashboard(this.dashboard),
 | 
			
		||||
            currentDashboardId: this.dashboard.id ? this.dashboard.id.id : null,
 | 
			
		||||
            widgetEditMode: false,
 | 
			
		||||
            singlePageMode: false
 | 
			
		||||
          };
 | 
			
		||||
        } else {
 | 
			
		||||
          data.currentDashboardId = this.route.snapshot.params.dashboardId;
 | 
			
		||||
          dashboardPageInitData = {
 | 
			
		||||
            dashboard: data.dashboard,
 | 
			
		||||
            currentDashboardId: this.route.snapshot.params.dashboardId,
 | 
			
		||||
            widgetEditMode: data.widgetEditMode,
 | 
			
		||||
            singlePageMode: data.singlePageMode
 | 
			
		||||
          };
 | 
			
		||||
        }
 | 
			
		||||
        this.init(data);
 | 
			
		||||
        this.init(dashboardPageInitData);
 | 
			
		||||
        this.runChangeDetection();
 | 
			
		||||
      }
 | 
			
		||||
    ));
 | 
			
		||||
@ -406,7 +414,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  private init(data: any) {
 | 
			
		||||
  private init(data: DashboardPageInitData) {
 | 
			
		||||
 | 
			
		||||
    this.reset();
 | 
			
		||||
 | 
			
		||||
@ -1492,11 +1500,12 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
 | 
			
		||||
      versionControlPopover.tbComponentRef.instance.versionRestored.subscribe(() => {
 | 
			
		||||
        this.dashboardService.getDashboard(this.currentDashboardId).subscribe((dashboard) => {
 | 
			
		||||
          dashboard = this.dashboardUtils.validateAndUpdateDashboard(dashboard);
 | 
			
		||||
          const data = {
 | 
			
		||||
          const data: DashboardPageInitData = {
 | 
			
		||||
            dashboard,
 | 
			
		||||
            widgetEditMode: false,
 | 
			
		||||
            currentDashboardId: this.currentDashboardId
 | 
			
		||||
          } as any;
 | 
			
		||||
            currentDashboardId: this.currentDashboardId,
 | 
			
		||||
            widgetEditMode: this.widgetEditMode,
 | 
			
		||||
            singlePageMode: this.singlePageMode
 | 
			
		||||
          };
 | 
			
		||||
          this.init(data);
 | 
			
		||||
          this.dashboardCtx.stateController.cleanupPreservedStates();
 | 
			
		||||
          this.dashboardCtx.stateController.resetState();
 | 
			
		||||
 | 
			
		||||
@ -24,6 +24,13 @@ import { Observable } from 'rxjs';
 | 
			
		||||
 | 
			
		||||
export declare type DashboardPageScope = 'tenant' | 'customer';
 | 
			
		||||
 | 
			
		||||
export interface DashboardPageInitData {
 | 
			
		||||
  dashboard: Dashboard;
 | 
			
		||||
  currentDashboardId?: string;
 | 
			
		||||
  widgetEditMode?: boolean;
 | 
			
		||||
  singlePageMode?: boolean;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export interface DashboardContext {
 | 
			
		||||
  instanceId: string;
 | 
			
		||||
  state: string;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user