Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-44611

Update Rolebinding by Subject API implementation

XMLWordPrintable

    • Product / Portfolio Work
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Unset
    • None
    • 8

      PUT /role-bindings/by-subject

      Apart of the V2 API work, we need a UPDATE "role-bindings/by-subject/<UUID>/" endpoint to edit role_binding

      Acceptance Criteria:

      • Should implement the API as documented by the spec
      • API should be consistent with other RBAC V2 APIs
      • Shared in the team-mgmt-fabric channel and reviewed by architects and leads
      • Have to consider this: https://issues.redhat.com/browse/RHCLOUD-37863
        • For implementing Serializable isolation, we introduced an @atomic decorator and a mixin to apply this across all APIs in a given namespace
        • Use the same pattern. The mixin may need to be updated to work for batch delete method
        • Something to note is that the decorator for an atomic transaction should be in the service layer method as well as the view.
      • Should follow hexagonal architecture principles. The attached diagram is a good reference of how to organize concerns between layers. Please use the CreateRole PR as a reference
      • Tests should be implemented for each layer.

              sgunta@redhat.com Sneha Gunta
              sgunta@redhat.com Sneha Gunta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: