Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: conditionally add device permissions #86

Merged
merged 3 commits into from
Sep 20, 2024

Conversation

edvujic
Copy link
Contributor

@edvujic edvujic commented Sep 19, 2024

Completes SPARK-563488

This PR introduces improvements and additions to the device management functionality, including conditional device permissions and unit tests. getDevices() function checks for all permissions irrespective of what the user has passed as deviceKind. This can cause unnecessary permission prompts for devices that aren't needed by the user.

This can be tested with: https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-539683

bbaldino
bbaldino previously approved these changes Sep 19, 2024
src/device/device-management.ts Outdated Show resolved Hide resolved
@edvujic edvujic self-assigned this Sep 20, 2024
@edvujic edvujic changed the title feat: conditionally add device permissions fix: conditionally add device permissions Sep 20, 2024
@edvujic edvujic requested a review from bbaldino September 20, 2024 07:15
@edvujic edvujic requested a review from antsukanova September 20, 2024 08:43
Copy link
Contributor

@antsukanova antsukanova left a comment

Choose a reason for hiding this comment

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

lgtm

@edvujic edvujic merged commit 9e2d55a into webex:main Sep 20, 2024
1 check passed
bbaldino pushed a commit that referenced this pull request Sep 20, 2024
## [2.10.3](v2.10.2...v2.10.3) (2024-09-20)

### Bug Fixes

* conditionally add device permissions ([#86](#86)) ([9e2d55a](9e2d55a))
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