• Icon: Sub-task Sub-task
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • System
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Engineering
    • 3scale 2020-03-09, 3scale 2020-03-23, Invalid Sprint

      This page is merging the Listing and Invitations pages in a single one, using tabs


      Listing tab

      Data needed:

      • Users: array of objects
        • User: object
          • id
          • name
          • email
          • role
          • permission groups
          • is_current_user
          • can_delete_user
          • can_invite_user
          • invitation_path We don't need to get this path from the response, it can live in a constants file
          • authenticated_through_sso

      Can we retrieve all those elements from our current MT API endpoints?

      Users List (provider account):

      /admin/api/users.xml
      

      Fields provided:

      • id
      • name
      • email
      • role

      Fields missing:

      • is_curent_user
      • can_see_users
      • can_delete_user
      • can_invite_user
      • invitation_path
      • authenticated_through_sso

      Issues:

      • can_see_users, can_delete_user, can_invite_user are always true for Role admin ?
        Can we just differentiate between admin and not-admin user?
      • We need to know if SSO Integrations are enabled, we need something similar to:
        show_provider_sso_status_for_user? method in app/helpers/users_helper.rb

      Permissions are available in the endpoint:

      /admin/api/users/{id}/permissions.xml
      

      It would be good to use only one endpoint instead of two (users list including also the permissions for every user)

      Actions:

      • Edit
      • Delete
      • Invite new user

      Invitations tab:

      Data needed:

      • Invitations: Array of objects
        • Invitation
          • id
          • email
          • sent_at
          • accepted
          • accepted_at

      Actions:

      • Resend
      • Delete
      • Invite

      There is no endpoint we could use for invitations
      Controller: app/controllers/provider/admin/account/invitations_controller.rb


      Relevant issues:
      Design: https://issues.redhat.com/browse/THREESCALE-4765
      Component: https://issues.redhat.com/browse/THREESCALE-4954
      Language strings: https://issues.redhat.com/browse/THREESCALE-4836

        1. users.png
          72 kB
          Damian Peralta

              Unassigned Unassigned
              damianpm Damian Peralta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: