I, as the user, should be able to mark teams as public and private. Private teams should only be viewed by the user who create them. Public teams should be able to be viewed by all authenticated users.
Acceptance Criteria
AS NOTATED BY STRETCH GOAL THREE
[STRETCH 3: Public / Private Teams]
A team can be marked public or private
If a team is public, any authenticated user can view the team and its members along with creator details
Dependencies
This issue is dependent on accurate test data that's created for both teams and members. Teams should have a bool that marks 'True' for public and 'False' for private.
Dev Notes
I'm a bit puzzle with how to approach this. However, I feel like it has something to do with the UID/the API call. The getTeam() API call that needs to be written may need to take into account if a team is private or whether it's public. If team.public, do this, else do that.
PSUEDO CODE
if (team.public) {
getPublicTeam()
} else {
// something that's filtered by uid?
getPrivateTeam(uid)
}
User Story
I, as the user, should be able to mark teams as public and private. Private teams should only be viewed by the user who create them. Public teams should be able to be viewed by all authenticated users.
Acceptance Criteria
AS NOTATED BY STRETCH GOAL THREE
Dependencies
This issue is dependent on accurate test data that's created for both teams and members. Teams should have a bool that marks 'True' for public and 'False' for private.
Dev Notes
I'm a bit puzzle with how to approach this. However, I feel like it has something to do with the UID/the API call. The getTeam() API call that needs to be written may need to take into account if a team is private or whether it's public. If team.public, do this, else do that.
PSUEDO CODE