-
Notifications
You must be signed in to change notification settings - Fork 8
feat: add previous hackathons field to application #670
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
Conversation
logan-r
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Haven't run locally tho, can you confirm that:
a) Tests pass
b) You can POST localhost:3000/api/hacker with
{
"accountId": "[AN EXISTING ACCOUNT ID]",
"application":{
"general":{
"school": "McGill University",
"degree": "Undergraduate",
"fieldOfStudy": ["Computer Science"],
"graduationYear": 2021,
"jobInterest":"Internship",
"URL":{
"resume":"resumes/1543458163426-5bff4d736f86be0a41badb91",
"github":"https://github.com/abcd",
"dropler":"https://dribbble.com/abcd",
"personal":"https://www.hi.com/",
"linkedIn":"https://linkedin.com/in/abcd",
"other":"https://github.com/hackmcgill/hackerAPI/issues/168"
}
},
"shortAnswer": {
"skills":["Javascript","Typescript"],
"question1": "I love McHacks",
"question2":"Pls accept me",
"comments":"hi!",
"previousHackathons": "0"
},
"other": {
"gender": "male",
"ethnicity": ["Asian or Pacific Islander"],
"privacyPolicy": true,
"codeOfConduct": true
},
"accommodation": {
"travel": 0,
"shirtSize": "S"
}
}
}
and it shows up in mongo
c) POSTing localhost:3000/api/hacker with
{
"accountId": "[AN EXISTING ACCOUNT ID]",
"application":{
"general":{
"school": "McGill University",
"degree": "Undergraduate",
"fieldOfStudy": ["Computer Science"],
"graduationYear": 2021,
"jobInterest":"Internship",
"URL":{
"resume":"resumes/1543458163426-5bff4d736f86be0a41badb91",
"github":"https://github.com/abcd",
"dropler":"https://dribbble.com/abcd",
"personal":"https://www.hi.com/",
"linkedIn":"https://linkedin.com/in/abcd",
"other":"https://github.com/hackmcgill/hackerAPI/issues/168"
}
},
"shortAnswer": {
"skills":["Javascript","Typescript"],
"question1": "I love McHacks",
"question2":"Pls accept me",
"comments":"hi!"
},
"other": {
"gender": "male",
"ethnicity": ["Asian or Pacific Islander"],
"privacyPolicy": true,
"codeOfConduct": true
},
"accommodation": {
"travel": 0,
"shirtSize": "S"
}
}
}
fails as it's missing previousHackathons
| return false; | ||
| } | ||
| if (!!model.searchableField(value)) { | ||
| if (model.searchableField(value)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this a boolean cast? !! is odd in an if, should be casting already, just want to make sure we don't break anything here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure, i think the lint took it off by itself, should i restore it to !!?
| "name": "hackerAPI", | ||
| "version": "3.0.0", | ||
| "private": true, | ||
| "scripts": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you exclude this file from the commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah sure! mybad haha
|
Are you able to debug the 500 error? |
|
Ran tests on latest @Tony9984 I'm finishing up a midterm today, can help debug tomorrow if this is still an issue |
|
|
hey guys! thanks for the updates! tried debugging it, couldn't find the issue, I'll try again tonight after my midterm. @logan-r good luck for yours!! hope everything goes well. |
logan-r
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!!


Tickets:
List of changes:
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Type of change
Please delete options that are not relevant.
How has this been tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Firmware version:
Hardware:
Toolchain:
SDK:
Questions for code reviewers?
Checklist: