Fix delete groups with Geo Fence references issue #223

Merged
pahansith merged 1 commits from ThilinaPremachandra/device-mgt-core:Bug#10236#issue36 into master 12 months ago

Purpose

Fix: 36th issue in https://roadmap.entgra.net/issues/10236 (If a group was selected in a geofence, we can't delete that group.)

Approach

  • update delete query
  • fix test failures - add related db scripts to "test/resources/sql/h2.sql" file
**Purpose** Fix: 36th issue in https://roadmap.entgra.net/issues/10236 (If a group was selected in a geofence, we can't delete that group.) **Approach** * update delete query * fix test failures - add related db scripts to "test/resources/sql/h2.sql" file
ThilinaPremachandra added 1 commit 1 year ago
pahansith reviewed 1 year ago
stmt.setInt(1, groupId);
stmt.setInt(2, tenantId);
stmt.executeUpdate();
sql = "DELETE FROM DM_DEVICE_EVENT_GROUP_MAPPING WHERE GROUP_ID = ?";
Owner

I'm seeing multiple delete queries in a single DAO method. What is the reason for adding this? What will happen if any of a delete fails?

I'm seeing multiple delete queries in a single DAO method. What is the reason for adding this? What will happen if any of a delete fails?
pahansith marked this conversation as resolved
pahansith merged commit 616c70face into master 12 months ago
The pull request has been merged as 616c70face.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: community/device-mgt-core#223
Loading…
There is no content yet.