-
Notifications
You must be signed in to change notification settings - Fork 8
feat: add batchAccept route to accept multiple hackers at once #629
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
Ty-Won
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.
Can we write some tests for this new route? The code seems okay at a glance but I would like to have something that checks the functionality
63d8cc8 to
2722d76
Compare
…unction, fix router
Ty-won is no longer part of HackMcGill
|
🚨DANGER🚨 We still don't know how to repeatedly fix DB incompatibilities that we suspect are caused by |
|
Lemme see if I can rewrite |
loreina
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.
lgtm, just had a few comments
also I don't think we should run npm run seed now with its issues. if we keep it as is, we should only run it once a year right before apps launch. it's pending a refactor sometime this year before apps do drop tho @pierreTklein if you can look into it that would be epic ❤️
|
for |
I disagree. If we can gain confidence in |
|
accident 🙃 |
loreina
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.
sorry didn't see hacker.middleware.js before, looks great !!
|
#652 fixes all of our worries about That being said, there is a brief moment when running the script where NOBODY has permissions (we basically do a DROP TABLE; CREATE TABLE), so it's probably worth disabling |
* feat: Add HACKER_UPDATE_BATCH success message * feat: Add promise.allsettled so that we can wait for many promises to complete * feat: Add findByHackerId function to Account * feat: Add updatedHackerBatch controller function, generalize validation function, fix router * fix: resolve bug where requests hang when response is null * feat: set route apiVersion number to be 3.0.0 * feat: create parseAcceptBatch Co-authored-by: Pierre Theo Klein <pierre.klein@mail.mcgill.ca>
* feat: Add HACKER_UPDATE_BATCH success message * feat: Add promise.allsettled so that we can wait for many promises to complete * feat: Add findByHackerId function to Account * feat: Add updatedHackerBatch controller function, generalize validation function, fix router * fix: resolve bug where requests hang when response is null * feat: set route apiVersion number to be 3.0.0 * feat: create parseAcceptBatch Co-authored-by: Pierre Theo Klein <pierre.klein@mail.mcgill.ca>
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
Questions for code reviewers?
Checklist: