Fix deleted,removed devices appearing in subscription table #447

Merged
pahansith merged 5 commits from prathabanKavin/device-mgt-core:removeddevicefix into master 3 months ago

Purpose

Description

  • Add device filters similar as installation table to Subscription Details table
## Purpose * Fixes https://roadmap.entgra.net/issues/11444, https://roadmap.entgra.net/issues/11445 ## Description * Add device filters similar as installation table to Subscription Details table
prathabanKavin added 2 commits 3 months ago
prathabanKavin added 1 commit 3 months ago
pahansith requested changes 3 months ago
ApplicationDTO applicationDTO = this.applicationDAO.getAppWithRelatedRelease(uuid, tenantId);
int appReleaseId = applicationReleaseDTO.getId();
int deviceTypeId = applicationDTO.getDeviceTypeId();
Owner

Seems we don't require to get this value into a variable

Seems we don't require to get this value into a variable
prathabanKavin marked this conversation as resolved
ApplicationDTO applicationDTO = this.applicationDAO.getAppWithRelatedRelease(uuid, tenantId);
int appReleaseId = applicationReleaseDTO.getId();
int deviceTypeId = applicationDTO.getDeviceTypeId();
Owner

Seems we don't require to get this value into a variable

Seems we don't require to get this value into a variable
prathabanKavin marked this conversation as resolved
* @throws DeviceManagementDAOException if an error occurs while fetching the data
*/
OwnerWithDeviceDTO getOwnersWithDevices(String owner, int tenantId) throws DeviceManagementDAOException;
OwnerWithDeviceDTO getOwnersWithDevices(String owner, List<String> allowingDeviceStatuses, int tenantId, int deviceTypeId) throws DeviceManagementDAOException;
Owner

Format code

Format code
prathabanKavin marked this conversation as resolved
* @throws GroupManagementDAOException if an error occurs while retrieving the group details and devices
*/
GroupDetailsDTO getGroupDetailsWithDevices(String groupName, int tenantId, int offset, int limit)
GroupDetailsDTO getGroupDetailsWithDevices(String groupName, List<String> allowingDeviceStatuses, int deviceTypeId, int tenantId, int offset, int limit)
Owner

Format code

Format code
prathabanKavin marked this conversation as resolved
@Override
public GroupDetailsDTO getGroupDetailsWithDevices(String groupName, int tenantId, int offset, int limit)
public GroupDetailsDTO getGroupDetailsWithDevices(String groupName, List<String> allowedStatuses, int deviceTypeId, int tenantId, int offset, int limit)
Owner

Format code

Format code
prathabanKavin marked this conversation as resolved
try {
GroupManagementDAOFactory.openConnection();
groupDetailsWithDevices = this.groupDAO.getGroupDetailsWithDevices(groupName, tenantId, offset, limit);
groupDetailsWithDevices = this.groupDAO.getGroupDetailsWithDevices(groupName, allowingDeviceStatuses, deviceTypeId, tenantId, offset, limit);
Owner

Format code

Format code
prathabanKavin marked this conversation as resolved
prathabanKavin added 1 commit 3 months ago
prathabanKavin added 1 commit 3 months ago
pahansith merged commit 090c5d22df into master 3 months ago

Reviewers

pahansith requested changes 3 months ago
The pull request has been merged as 090c5d22df.
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#447
Loading…
There is no content yet.