Northeastern-Electric-Racing / Northeastern-Electric-Racing/FinishLine

[BUG] - team not properly listed in a head's finishline settings

Open
#2,782 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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
image

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
  1. run yarn prisma:reset in the terminal to ensure your data is consistent
  2. log in as thomas emrax
  3. navigate to the admin settings and change spongebob to be a head
  4. change spongebob to the head of any team, and add him to the leads of any other team
  5. log out of thomas emrax and log into spongebob's account, and go to his settings.
  6. 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

  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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.