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

Migrates project submission to judging #58

Draft
wants to merge 28 commits into
base: rewrite-nova
Choose a base branch
from

Conversation

anudaweerasinghe
Copy link
Member

resolves #54

Project details submit/save complete, need to do prize submission

Copy link

vercel bot commented Mar 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tartanhacks-judging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 30, 2024 7:34pm

src/components/projectSubmission/ProjectDetailsForm.tsx Outdated Show resolved Hide resolved
src/components/projectSubmission/ProjectDetailsForm.tsx Outdated Show resolved Hide resolved
src/server/api/routers/projects.ts Outdated Show resolved Hide resolved
src/server/api/routers/projects.ts Outdated Show resolved Hide resolved
setTeamMembers([email]);
}
}, [project, email]);
const { isLoading, mutate: saveProject } =
Copy link
Collaborator

Choose a reason for hiding this comment

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

need to have some failure logic to let the user know some of the inputs are incorrect

src/server/api/routers/projects.ts Outdated Show resolved Hide resolved
src/server/api/routers/projects.ts Outdated Show resolved Hide resolved
teamMembers = await Promise.all(teamMembersPromise);
} else {
const teamMembersPromise = input.teamMembers.map(async (email) => {
const user = await ctx.prisma.user.findFirst({
Copy link
Collaborator

Choose a reason for hiding this comment

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

what if the user is already in a team?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't understand what the concern is here. This is the local auth case, so all we're doing is checking that the provided team member emails are in the User collection.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think if the user is in a team, they will be reassigned to the new team, which shouldnt happen

);
}

const judgingInstance = await ctx.prisma.judgingInstance.upsert({
Copy link
Collaborator

Choose a reason for hiding this comment

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

need to set sigma to the sigma from the settings

Copy link
Member Author

Choose a reason for hiding this comment

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

Why are we letting the admin set sigma2 but not mu?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Mu is used for ranking, my understanding is as long as all mus are the same, the actual values don't matter. The sigmas represent how confident we are about the judging results, which is what we want to change

src/server/api/routers/projects.ts Show resolved Hide resolved
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.

None yet

2 participants