ERRORs processing DEVICE PROFILE
- Added saving the DELETED action when the edge is offline. - Added synchronization of Device Profile twice for its relation with Ota Package.
This commit is contained in:
parent
4a474f10c9
commit
0f7142cfef
@ -87,6 +87,7 @@ public class EdgeSyncCursor {
|
||||
fetchers.add(new SystemWidgetsBundlesEdgeEventFetcher(ctx.getWidgetsBundleService()));
|
||||
fetchers.add(new TenantWidgetsBundlesEdgeEventFetcher(ctx.getWidgetsBundleService()));
|
||||
fetchers.add(new OtaPackagesEdgeEventFetcher(ctx.getOtaPackageService()));
|
||||
fetchers.add(new DeviceProfilesEdgeEventFetcher(ctx.getDeviceProfileService()));
|
||||
fetchers.add(new TenantResourcesEdgeEventFetcher(ctx.getResourceService()));
|
||||
fetchers.add(new OAuth2EdgeEventFetcher(ctx.getDomainService()));
|
||||
}
|
||||
|
||||
@ -120,7 +120,7 @@ public abstract class BaseEdgeProcessor {
|
||||
private boolean doSaveIfEdgeIsOffline(EdgeEventType type, EdgeEventActionType action) {
|
||||
return switch (action) {
|
||||
case TIMESERIES_UPDATED, ALARM_ACK, ALARM_CLEAR, ALARM_ASSIGNED, ALARM_UNASSIGNED, ADDED_COMMENT,
|
||||
UPDATED_COMMENT -> true;
|
||||
UPDATED_COMMENT, DELETED -> true;
|
||||
default -> switch (type) {
|
||||
case ALARM, ALARM_COMMENT, RULE_CHAIN, RULE_CHAIN_METADATA, USER, CUSTOMER, TENANT, TENANT_PROFILE,
|
||||
WIDGETS_BUNDLE, WIDGET_TYPE, ADMIN_SETTINGS, OTA_PACKAGE, QUEUE, RELATION, NOTIFICATION_TEMPLATE, NOTIFICATION_TARGET,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user