Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-13294

Backport OPENIDM-13242: Updating relationship with the same object in a different relationship will not delete reverse references of the updated relationship.

    Details

    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      1

      Description

      Setup:

      1. Add a property to the managed user schema called favoriteManager which has the same relationship setup as "manager".
      2. Update manager and favoriteManager such that they return-by-default=true.
      3. Create 3 users. empolyee1, employee2, boss1.
      4. make the manager of employee1 and employee2 to be boss1.
      5. make the favoriteManager of employee1 and employee2 to be boss1.

      Request:

      1. read the employee1 object with
        managed/user/employee1?_fields=*

        . Note that both the manager and favoriteManager should return in the results.

      1. update the employee1's manager to be employee2:
        PUT openidm/managed/user/employee1 
        {
             [other user fields]...
             "manager": {"_ref","managed/user/employee2"} 
             "favoriteManager": {"_ref","managed/user/boss1"}
        }
        

      Verify:

      1. read the boss1 reports.
        managed/user/boss1?_fields=*,reports
      1. It should be expected that boss1 no longer has employee1 as a report.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                patrickdiligent patrick diligent
                Reporter:
                patrickdiligent patrick diligent
                QA Assignee:
                Vojtech Zamecnik [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: