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
Fix VC support for notification recipients #9827
Conversation
...in/java/org/thingsboard/server/service/notification/DefaultNotificationSchedulerService.java
Show resolved
Hide resolved
...in/java/org/thingsboard/server/service/notification/DefaultNotificationSchedulerService.java
Show resolved
Hide resolved
...a/org/thingsboard/server/service/sync/ie/importing/impl/NotificationTargetImportService.java
Show resolved
Hide resolved
@@ -43,6 +43,9 @@ protected void setRelatedEntities(EntitiesExportCtx<?> ctx, NotificationTarget n | |||
CustomerUsersFilter customerUsersFilter = (CustomerUsersFilter) usersFilter; | |||
customerUsersFilter.setCustomerId(getExternalIdOrElseInternal(ctx, new CustomerId(customerUsersFilter.getCustomerId())).getId()); | |||
break; | |||
case USER_LIST: | |||
// users list stays as is and is replaced with current user id on import (due to user entities not being supported by VC) | |||
break; |
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.
default:
do or blow something
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.
What do you suggest to do in the default
section?
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.
@ViacheslavKlimov do some default action or throw an exception that actually never fires until some new code changes appear. It's up to your business logic. Just have a default section
Pull Request description
Put your PR description here instead of this sentence.
General checklist
Front-End feature checklist
Back-End feature checklist