Permanent delete DAO fix
## Purpose
Fix issue in deleting duplicate deviceIds from tables
## Security checks
* Followed secure coding standards? yes
* Ran FindSecurityBugs plugin and verified report? no
* Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes
See merge request entgra/carbon-device-mgt!302
Fix Permanent delete for multiple enrollments
## Purpose
To enable permanent deletion of a sinlge device with multiple enroolmemts
## Goals
> (Goals achieved by feature)
## Approach
## Documentation
## Automation tests
## Security checks
- Followed secure coding standards? (yes/no)
- Ran FindSecurityBugs plugin and verified report? (yes/no)
- Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? (yes/no)
## Related MRs
## Test environment
## Learning
See merge request entgra/carbon-device-mgt!296
Improve APIM's edit release view and fix install/uninstall's timestamp issue
## Purpose
The purpose is to fix the following issues with this PR.
1. In the current APPM Publisher UI's edit release section, there is no way to preview selected images. Also, the supported versions are hardcoded.
2. There is an issue after adding a scheduled install/uninstall feature to the UI, which tries to send a query param with null timestamp value with non-scheduled operations.
## Goals
- Add previews of selected images to upload
- Add supported OS versions field
- Fix timestamp issue in scheduled install/uninstall operation in APPM UI
## Approach
- Used the same approach to add image previews and supported OS versions field which used in the "Add New Release" view in APPM publisher UI.
- Removed the inline function which caused the timestamp issue & created a new function to handle the operation.
## Documentation
> N/A
## Automation tests
> N/A
## Security checks
- Followed secure coding standards? (yes)
- Ran FindSecurityBugs plugin and verified report? (no)
- Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? (yes)
## Related MRs
> (Any other related Merge Requests)
## Test environment
> (Context and environment where development was performed)
## Learning
> (Any additional learning resources)
See merge request entgra/carbon-device-mgt!295
The cause of the issue is not passing the newly introduced parameter 'policyType' in the policy edit payload. This parameter is marked @NotNull. Hence throwing an error.
This fix sets the policyType parameter from the existing payload (Doesn't allow to edit as there is no UI interface to edit this parameter ATM
Fixes: entgra/product-iots#175