Skip to content

Conversation

@AndreyLatysh
Copy link
Contributor

Add subcriptions update on device delete action.

Add subcriptions update on device delete action.

public class DeviceDeleteRequest extends Body {

private DeviceVO device;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sending whole device object is excessively

//TODO: only migrated to genericDAO, need to migrate Device PK to DeviceId and use directly GenericDAO#remove
@Transactional
public boolean deleteDevice(@NotNull String deviceId) {
DeviceDeleteRequest deviceDeleteRequest = new DeviceDeleteRequest(findById(deviceId));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Device's existence should be checked before creating and calling request

Filter clean up on device delete fixed.
@apanevin apanevin merged commit 9ddf0dc into development Nov 30, 2017
@apanevin apanevin deleted the DEV-192 branch November 30, 2017 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants