-
Notifications
You must be signed in to change notification settings - Fork 157
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
feat: upload job offer 💰 #77
Conversation
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.
Hey @hebronmekuria - I was able to take a look at the build errors and it was actually quite difficult to track down because Kysely's error messages weren't the best. But the root of the issue was that student_id
is non-nullable in the database, but in our Zod object it was nullish. The camelCase/snake_case conversion didn't seem to be the issue.
Also, in running things locally, I realized that I need to fix the test setup for the database - it's not properly working now that we have multiple test files that use the database (I think I know why).
I pushed up a fix right now for the type error, and I also removed the test file temporarily. I want to get your PR in, and then we can circle back to add the appropriate tests after I get a fix in. Be sure to keep a copy of your test file somewhere so we can follow back up on that!
If you can just merge my changes into your branch, and update the PR title so that it shows a feat
instead of a chore
(this is proper backend feature work 🙂), we should be good to merge this in!
Also, in the future if the PR has some errors or anything like that, feel free to leave it out of the PR description and instead you can add comments directly in your code in the "Files Changed" tab so that everything is colocated. That way we can keep the PR description clean and only describing the feature itself! |
Okay, great! Also, can company id be null? I also have that as nullist in the Zod object |
Never mind, comapny id is nullable in the database! So to get this straight, I should do a PR without the test file, even though the tests still don't pass right? |
Yup, |
Yup, just remove the test file and that will actually make the tests pass! |
Nice, all the tests passed....but the tests that are running pretain to a different file right, or are we testing and confirming if uploadjoboffer works? |
Yup the tests are from elsewhere in the codebase! |
Okay, nice, just pushed the changes. so are we al good for uploadjoboffers, and should I start on listjoboffers? |
I cleaned up the PR too. Let me know if I should be more description Omar's recent PR came in clutch 💯 |
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.
LGTM! 🚀
Yes, you're all good to go on |
Description ✏️
Uploads a student's job offer to the job_offers table in the database.
Closes #4.
Type of Change 🐞
Checklist ✅