misc TeamDynamix fixes

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor
    • 6.1.0, 4.22.1, 7.0.1
    • Affects Version/s: 7.0.1
    • Component/s: None
    • None

      TeamDynamixApiCommands.java (6 edits):

      1. "ExternalId" → "ExternalID" in the patchTeamDynamixUser field comparison (line 875)
      2. "SecurityRoleId" → "SecurityRoleID" in the patchTeamDynamixUser field comparison (line 879)
      3. Added leading / to PATCH path: operationNode.put("path", "/" + fieldToUpdate) (line 903)
      4. Added leading / to IsActive PATCH path: operationNode.put("path", "/IsActive") (line 912)
      5. "ExternalId" → "ExternalID" in first fieldsToUpdate map (line 407)
      6. "SecurityRoleId" → "SecurityRoleID" in first fieldsToUpdate map (line 409)
      7. "ExternalId" → "ExternalID" in second fieldsToUpdate map (line 440)
      8. "SecurityRoleId" → "SecurityRoleID" in second fieldsToUpdate map (line 442)

      TeamDynamixMockServiceHandler.java (3 edits):

      1. Added leading / stripping logic after reading the path from the JSON Patch operation
      2. "ExternalId" → "ExternalID" in path mapping (line 271)
      3. "SecurityRoleId" → "SecurityRoleID" in path mapping (line 277)

      These changes ensure:

      • PATCH operations send RFC 6902 compliant paths with leading / (e.g., "/FirstName" instead of "FirstName")
      • Field name casing matches the TeamDynamix API exactly (ExternalIDSecurityRoleID — both with uppercase "ID")
      • The mock handler strips the leading / so all its downstream field matching continues to work correctly
      • The fieldsToUpdate map keys match the updated comparisons in patchTeamDynamixUser, so updates won't be silently skipped

            Assignee:
            Chris Hyzer
            Reporter:
            Chris Hyzer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: