icgc-argo / icgc-argo/program-service
InviteUser - You should not be able to invite a user to join a program with a "Banned" role
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3
- Forks
- 0
- Avg merge
- 14h 34m
- Merged PRs (30d)
- 2
Description
When a request is made to invite a user to a group, the role is provided as an enum in the request message.
enum UserRole {
COLLABORATOR = 0;
ADMIN = 1;
CURATOR = 2;
SUBMITTER = 3;
BANNED = 4;
}
You should not be able to send an invitation request for a user to have a "Banned" role, and have it complete successfully.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the invite request handling that consumes the UserRole enum, focusing on how invitation requests are validated. Done means an invitation using the BANNED role is rejected rather than completing successfully; add or update coverage for that behavior if the existing test location is found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- authorization, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100