aws-connected-device-framework icon indicating copy to clipboard operation
aws-connected-device-framework copied to clipboard

CDF Asset Library Group Association Dupes

Open anish-kunduru opened this issue 2 years ago • 0 comments

Aws Connected Device Framework Affected Module(s):

asset-library

I'm submitting a ...

  • [X] bug report
  • [ ] feature request

Description:

There is a bug in associating a group with another group. Example given the following API call: PUT /groups/{sourceGroupPath}/{relationship}/groups/{targetGroupPath}

If the API is called multiple times, it does not check whether the relationship exists and instead creates multiple relationships. This creates problem when the user tries to list, as it shows same group multiple times.

Current behavior:

Multiple relationships are created without checking the current status.

Expected behavior:

Code checks to see whether a relationship exists before creating another one.

Steps to reproduce:

Additional Information:

anish-kunduru avatar Feb 16 '23 16:02 anish-kunduru