Commit Graph

6796 Commits

Author SHA1 Message Date
Yohan Avishke
d885707046 Refactor code in a reusable way and change response messages
Removed repeated classes and implemented code to already existing classes and divided code into sub methods to limit repetitive code and increase readability. And the response messages were change in order to give users a better understating of the responses they get when calling the api endpoints.
2019-10-13 12:37:55 +05:30
Yohan Avishke
fe4e857639 Change exception codes of device stream events 2019-10-13 12:37:55 +05:30
Yohan Avishke
e643db08d1 Change event attribute mapping logic and error handling
Event attribute mapping logic was moved to service layer from the api layer and a created a meaningful error message.
2019-10-13 12:37:55 +05:30
Yohan Avishke
da2d95e7ac Change event attribute mapping logic and error handling
Event attribute mapping logic was moved to service layer from the api layer and a created a meaningful error message.
2019-10-13 12:37:55 +05:30
Yohan Avishke
f660bf9edd Add ApiParams to all the parameters 2019-10-13 12:37:55 +05:30
Yohan Avishke
e5963c79fd Override toString 2019-10-13 12:37:55 +05:30
Saad Sahibjan
1f907ea283 Merge branch 'delete-fix' into 'master'
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
2019-10-11 08:59:32 +00:00
Amanda Randombage
becaf35546 Permanent delete DAO fix 2019-10-11 08:59:31 +00:00
Dharmakeerthi Lasantha
90fd12d876 Merge branch 'delete-fix' into 'master'
Fix delete

See merge request entgra/carbon-device-mgt!300
2019-10-10 03:11:23 +00:00
Amanda
7b7d47a2bf Fix delete
- Fix delete button in UI
- Close connection in DAO
2019-10-10 07:56:29 +05:30
Entgra Builder
277b114f9c [maven-release-plugin] prepare for next development iteration 2019-10-09 10:41:21 +00:00
Entgra Builder
cd6ff02aff [maven-release-plugin] prepare release v3.2.12 2019-10-09 10:41:15 +00:00
Saad Sahibjan
ebf46f46e1 Merge branch 'permanent-delete' into 'master'
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
2019-10-09 10:19:55 +00:00
Amanda Randombage
e80589d3b1 Fix Permanent delete for multiple enrollments 2019-10-09 10:19:55 +00:00
Dharmakeerthi Lasantha
1abc701f20 Add UI feature to delete multiple devices permanently 2019-10-09 08:56:32 +00:00
Amanda Randombage
8a586eee2c Add UI feature to delete multiple devices permanently 2019-10-09 08:56:32 +00:00
Dharmakeerthi Lasantha
023e162f59 Merge branch 'entgra-175' into 'master'
Fix issue with re-configuring policy

Closes product-iots#175

See merge request entgra/carbon-device-mgt!294
2019-10-09 06:55:42 +00:00
Madawa Soysa
03c550d11b Fix issue with reconfiguring policy
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
2019-10-09 16:50:12 +11:00
Dharmakeerthi Lasantha
d98564c39b Change permanent delete HTTP method 2019-10-09 01:54:11 +00:00
Amanda Randombage
824403b97e Change permanent delete HTTP method 2019-10-09 01:54:08 +00:00
Dharmakeerthi Lasantha
d813888923 Merge branch 'retrieving-devices-fix' into 'master'
Fix issue in retrieving IoTS devices

See merge request entgra/carbon-device-mgt!290
2019-10-08 16:32:11 +00:00
Amanda
0aee974b35 Fix issue in retrieving IoTS devices 2019-10-08 17:33:24 +05:30
Entgra Builder
c1612446e4 [maven-release-plugin] prepare for next development iteration 2019-10-05 12:04:29 +00:00
Entgra Builder
3cecc16145 [maven-release-plugin] prepare release v3.2.11 2019-10-05 12:04:23 +00:00
Entgra Builder
36a91e0e62 [maven-release-plugin]prepare for next development iteration 2019-10-05 06:47:25 +00:00
Entgra Builder
d1cfd12185 [maven-release-plugin]prepare release v3.2.10 2019-10-05 06:47:19 +00:00
Entgra Builder
15b4b6ff37 [maven-release-plugin]prepare for next development iteration 2019-10-04 17:41:23 +00:00
Entgra Builder
bd6ca17381 [maven-release-plugin]prepare release v3.2.9 2019-10-04 17:41:17 +00:00
Pahansith Gunathilake
db8645e6c5 Add policy type 2019-10-03 17:26:31 +00:00
Saad Sahibjan
d683d0c93f Merge branch 'master' into 'master'
Fix incorrect device view issue for different ownerships.

Closes product-iots#135

See merge request entgra/carbon-device-mgt!273
2019-10-03 10:09:06 +00:00
lasanthaDLPDS
2d58d69d2f Fix incorrect device view issue for different ownerships. 2019-10-03 15:38:07 +05:30
Milan Perera
fe23ab711c Merge branch 'master' into 'master'
Master

Closes product-iots#172

See merge request entgra/carbon-device-mgt!267
2019-09-30 14:32:15 +00:00
milanperera
576ccd2363 Fix issues in fix-172 2019-09-30 15:54:12 +02:00
milanperera
a044bbd385 fix entgra/product-iots#172 2019-09-30 15:47:50 +02:00
Charitha Goonetilleke
4c78c1bf13 Merge branch 'master' into 'master'
Fix device-type features edit issue

See merge request entgra/carbon-device-mgt!266
2019-09-30 07:13:17 +00:00
Turcy
f28d42d7ce Fix device-type features edit issue 2019-09-30 12:14:35 +05:30
Dharmakeerthi Lasantha
6f21f472b6 Merge branch 'GroupNameCase' into 'master'
Fix Null pointer exception in group management

See merge request entgra/carbon-device-mgt!265
2019-09-27 15:46:41 +00:00
ausamriyaaz
2c27830ecc Fix Null pointer exception 2019-09-27 15:42:01 +05:30
Dharmakeerthi Lasantha
0dac130e91 Show the applied policies when click view button on policy compliance 2019-09-27 05:51:59 +00:00
Vinojini Paramasivam
3dcf19dffa Show the applied policies when click view button on policy compliance 2019-09-27 05:51:59 +00:00
Milan Perera
513b8efaee Merge branch 'fix-141' into 'master'
Fix build failure

See merge request entgra/carbon-device-mgt!263
2019-09-26 20:34:23 +00:00
milanperera
a716d28046 Fix build failure 2019-09-26 22:33:26 +02:00
Milan Perera
3747e98be3 Merge branch 'fix-141' into 'master'
Fix for entgra/product-iots#141

Closes product-iots#141

See merge request entgra/carbon-device-mgt!260
2019-09-26 09:33:29 +00:00
Dharmakeerthi Lasantha
6344ff4950 Change search by group name to case insensitive 2019-09-26 04:11:55 +00:00
Vinojini Paramasivam
8b61bbabea Change search by group name to case insensitive 2019-09-26 04:11:55 +00:00
milanperera
5e19455882 Fix for entgra/product-iots#141 2019-09-25 16:26:19 +02:00
Dharmakeerthi Lasantha
73793b5971 Fix device management test failures 2019-09-19 21:11:51 +00:00
Amanda Randombage
a82b4763e2 Fix device management test failures 2019-09-19 21:11:51 +00:00
Saad Sahibjan
d6bc33b0a2 Merge branch 'permanent-delete' into 'master'
Permanent delete API modification

## Purpose
> Delete multple devices from one API call.

## Goals
> Avoid invoking the API multiple times to delete a set of devices.

## Approach
> Delete the records of the devices as batch operations in the core level via a DEeviceDAO object and in the plugin level by creating a DeviceManager object for each device type.

## Documentation
> N/A

## Automation tests
 - Unit tests 
   > None
 - Integration tests
   > None

## 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
> https://gitlab.com/entgra/carbon-device-mgt/merge_requests/198

## Test environment
> N/A

## Learning
> N/A

See merge request entgra/carbon-device-mgt!241
2019-09-19 18:08:56 +00:00
Amanda Randombage
ff2c038688 Modify permanent delete API to support list of devices 2019-09-19 18:08:56 +00:00