Bug: fetching all roles for super-user times out

Open
#879 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@oharsta is already working on this.

Since Nov 26, 2026.

Assessment

This issue has not been assessed yet.

Description

Fetching all roles for a super user, for the drop-down in new invitation, times out. For all roles from the database, data from manage is added. This causes the time-out.

The drop-down does not need all of this information. Write a new endpoint in RoleController with the same security check, that fetches id, name and description from the database. Refactor InvitationForm.jsx, to use this new endpoint and populate the drop-down of roles.

The applicationMaps are used in the inviter variant of the InvitationForm.jsx. So if the user is inviter, use the old code branch. Check for the use of the roles in InvitationForm.jsx, to see where the applicationMaps are also used.

Dominant language
Java
Stars
6
Forks
8
Avg merge
8h 1m
Merged PRs (30d)
13

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenConext/OpenConext-Invite

All issues in OpenConext/OpenConext-Invite

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.