Northeastern-Electric-Racing / Northeastern-Electric-Racing/FinishLine
[BUG] - team not properly listed in a head's finishline settings
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 36
- Forks
- 9
- Avg merge
- 4d 21h
- Merged PRs (30d)
- 11
Description
Observed Behavior
If someone with a head role is selected as the head of one team and a lead of another team, it will only display the name of the team they are head of in their finishline settings. For example, in the following screenshot, the user is the head of the Avatar team and a lead on the Ravens team. However, it just displays teams: Avatar: The Last Airbender
Expected Behavior
It should display all the teams that the user is a part of, including teams that they are a lead on.
Steps to Reproduce
- run
yarn prisma:resetin the terminal to ensure your data is consistent - log in as thomas emrax
- navigate to the admin settings and change spongebob to be a head
- change spongebob to the head of any team, and add him to the leads of any other team
- log out of thomas emrax and log into spongebob's account, and go to his settings.
- You should only see one team on the settings page, even though spongebob is on two teams.
Notes
if you find any similar errors while testing for this, please fix those as well.
Contributor guide
No contributing guide indexed for this repository
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 reproducing the issue through the admin and user settings pages using the listed team-role steps. Trace how the settings page gathers and displays a user's teams; done means it lists every team where the user is a head or lead, including both teams in the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100