Fix for incorrect statistics issue in App Store for User and Role. #542

Open
ruwin wants to merge 3 commits from ruwin/device-mgt-core:statistics-new into master
ruwin commented 2 weeks ago

Purpose

Description

This pull request addresses a bug fix to the incorrect device statistics shown in the app store for user and role subscription types and as well as for the webapps.

The following changes have been made:

  • Filtered and removed device ids irrelevant to the application supported os type which are getting for the calculation of statistics.
## Purpose * Fixed https://roadmap.entgra.net/issues/11657 ## Description This pull request addresses a bug fix to the incorrect device statistics shown in the app store for user and role subscription types and as well as for the webapps. The following changes have been made: * Filtered and removed device ids irrelevant to the application supported os type which are getting for the calculation of statistics.
ruwin added 2 commits 2 weeks ago
e547199706
Fix for incorrect statistics issue in User and Role
a149f64d13
Fix to display statistics in webapps
arshana790 reviewed 2 weeks ago
} catch (DeviceManagementDAOException e) {
String msg = String.format("Error encountered while accessing device management data for user: %s", user);
log.error(msg, e);
} catch (Exception e) {
Collaborator

don't use generic exceptions

don't use generic exceptions
ruwin marked this conversation as resolved
arshana790 reviewed 2 weeks ago
log.error(msg, e);
throw new ApplicationManagementException(msg, e);
} catch (DeviceManagementDAOException e) {
throw new RuntimeException(e);
Collaborator

dont throw runtime exception. there is a relevant exceptions can be thrown. check the above code in this class.

dont throw runtime exception. there is a relevant exceptions can be thrown. check the above code in this class.
ruwin marked this conversation as resolved
arshana790 reviewed 2 weeks ago
}
}
}
Collaborator

remove new lines

remove new lines
ruwin marked this conversation as resolved
arshana790 reviewed 2 weeks ago
} catch (ApplicationManagementDAOException e) {
String msg = "Error encountered while accessing application management data.";
log.error(msg, e);
throw new DeviceManagementException(msg, e);
Collaborator

is this thrown exception correct? can refer the above code in this class(icould be wrong, so please check)

is this thrown exception correct? can refer the above code in this class(icould be wrong, so please check)
ruwin marked this conversation as resolved
arshana790 reviewed 2 weeks ago
}
} catch (DeviceManagementDAOException e) {
String msg = String.format("Error encountered while accessing device management data for user: %s", user);
log.error(msg, e);
Collaborator

need to throw an exception here

need to throw an exception here
ruwin added 1 commit 5 days ago
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

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