Skip to content

Optimise queries to save Blocked Device Info in Repository#683

Merged
ASPS002 merged 7 commits intomainfrom
user/ujsrivastava/optimise_sql_query
Mar 12, 2025
Merged

Optimise queries to save Blocked Device Info in Repository#683
ASPS002 merged 7 commits intomainfrom
user/ujsrivastava/optimise_sql_query

Conversation

@ASPS002
Copy link
Collaborator

@ASPS002 ASPS002 commented Mar 12, 2025

Description

This pull request includes several changes to the DeviceAgentManagementService and its related repository to improve the handling of blocked devices. The most important changes involve replacing direct repository calls with Optional checks, consolidating delete operations, and simplifying imports.

Improvements to blocked device handling:

Repository improvements:

Codebase simplification:

Linked GitHub issue ID:

#685

Pull Request Checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Code compiles correctly with all tests are passed.
  • I've read the contributing guide and followed the recommended practices.
  • Wikis or README have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

If this introduces a breaking change for Hydra Lab users, please describe the impact and migration path.

  • Yes
  • No

How you tested it

Please make sure the change is tested, you can test it by adding UTs, do local test and share the screenshots, etc.
Yes , tested it multiple times by blocking and unblocking devices and using unit tests.

Blocking a device
block

Unblocking a device
unblock

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Technical design
  • Build related changes
  • Refactoring (no functional changes, no api changes)
  • Code style update (formatting, renaming) or Documentation content changes
  • Other (please describe):

Feature UI screenshots or Technical design diagrams

If this is a relatively large or complex change, kick it off by drawing the tech design with PlantUML and explaining why you chose the solution you did and what alternatives you considered, etc...

Ujjwal Srivastava and others added 6 commits March 10, 2025 14:19
…rsistence and fixed formatting error in HydraLabClientUtils
…where we need to make the isAllOffline to false before checing for blocked device in runTestTaskByGroup method.
@0b01
Copy link

0b01 commented Mar 12, 2025 via email

@ASPS002 ASPS002 marked this pull request as ready for review March 12, 2025 08:26
@ASPS002 ASPS002 enabled auto-merge (squash) March 12, 2025 08:37
@ASPS002 ASPS002 disabled auto-merge March 12, 2025 08:40
@zhou9584
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ASPS002 ASPS002 enabled auto-merge (squash) March 12, 2025 09:05
@ASPS002 ASPS002 merged commit 2ca49d6 into main Mar 12, 2025
8 checks passed
@ASPS002 ASPS002 deleted the user/ujsrivastava/optimise_sql_query branch March 12, 2025 09:23
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