Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#373 newProject accounts for team #514

Merged
merged 18 commits into from Jan 5, 2023
Merged

#373 newProject accounts for team #514

merged 18 commits into from Jan 5, 2023

Conversation

nezamj03
Copy link
Contributor

Changes

Made a check to see if the request body includes teamId. If it does not include teamId, a project is similarly created without any teamId, but if it is provided, it verifies for a valid teamId and if it is not, it will send a 404. if it is, it will create the project with the teamId.

Notes

n/a

Test Cases

passed all tests

To Do

require a teamId in order to not check for an unprovided one.. transition to requiring teamIds

Closes #373

Copy link
Collaborator

@anthonybernardi anthonybernardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, works perfectly! only thing is I think we should add a test for if the team isn't found. lmk if you need help with that

Copy link
Collaborator

@anthonybernardi anthonybernardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super tiny thing

src/backend/tests/projects.test.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@anthonybernardi anthonybernardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome!

@anthonybernardi anthonybernardi merged commit 22a9f72 into develop Jan 5, 2023
@anthonybernardi anthonybernardi deleted the #373-New-Proj branch January 5, 2023 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Teams - Modify Create Project to include Teams
2 participants