Skip to content

fix(): Added missing states to UserStateEnum

What does this MR do and why?

This MR adds the banned, ldap_blocked and blocked_pending_approval values to the UserStateEnum in graphQL queries. The problem is that when user information is retrieved for users with these missing states now results in an Internal server error.

Screenshots or screen recordings

Screenshot_2023-10-05_at_09.41.07

How to set up and validate locally

Create a graphQL query to retrieve user information, including state, for all group members for a group that includes a user with f.e. the banned state.

Example query:

query getGroupMembers($group: ID! $relations: [GroupMemberRelation!]) {
  group(fullPath: $group) {
    groupMembers(relations: $relations) {
      nodes {
        user {
          id
          username
          state
        }
      }
    }
  }
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jasper Boeijenga

Merge request reports

Loading