Skip to content

Retrieve Devices Based on Tags#41

Open
uddhikaish wants to merge 9 commits into
entgra:masterfrom
uddhikaish:retrieve_tags_latest
Open

Retrieve Devices Based on Tags#41
uddhikaish wants to merge 9 commits into
entgra:masterfrom
uddhikaish:retrieve_tags_latest

Conversation

@uddhikaish

Copy link
Copy Markdown

This implementation Regarding,

  • Changes to the Get Device API to fetch device details with related tags.

  • Implemented a method to exclude devices with a given tag.

+ "e.DATE_OF_ENROLMENT, "
+ "e.ID AS ENROLMENT_ID "
+ "e.ID AS ENROLMENT_ID, "
+ "( SELECT GROUP_CONCAT(t.NAME ORDER BY t.NAME SEPARATOR ', ') "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove unnecessary space

try (ResultSet rs = stmt.executeQuery()) {
if (rs.next()) {
device = DeviceManagementDAOUtil.loadMatchingDevice(rs, false);
device = DeviceManagementDAOUtil.loadMatchingDevice(rs, false, true);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is the criterion for marking this as true? There's no clear identification that a tag is given

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