Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
831b82c
not finished create app rev
JamieXiao Feb 22, 2025
46a2e8e
Reviewer status: 1/2 works (needs to enter twice??)
JamieXiao Mar 31, 2025
e0ee561
Hacker Reviewer Feature
JamieXiao Apr 1, 2025
6c77c84
Cleaner code
JamieXiao Apr 4, 2025
eae9218
remove uneccessary comments
JamieXiao Sep 30, 2025
f3a8957
not finished create app rev
JamieXiao Feb 22, 2025
659cd9e
Reviewer status: 1/2 works (needs to enter twice??)
JamieXiao Mar 31, 2025
61de1a3
Hacker Reviewer Feature
JamieXiao Apr 1, 2025
b9e15fb
Cleaner code
JamieXiao Apr 4, 2025
5c0b4d1
remove uneccessary comments
JamieXiao Sep 30, 2025
ec2ac9a
Merge branch 'feat/create_application_review' of https://github.com/h…
JamieXiao Oct 16, 2025
c69b1c9
not finished create app rev
JamieXiao Feb 22, 2025
726100f
Reviewer status: 1/2 works (needs to enter twice??)
JamieXiao Mar 31, 2025
733a487
Hacker Reviewer Feature
JamieXiao Apr 1, 2025
9966525
Cleaner code
JamieXiao Apr 4, 2025
0a20112
remove uneccessary comments
JamieXiao Sep 30, 2025
5098e87
not finished create app rev
JamieXiao Feb 22, 2025
58a40c9
Reviewer status: 1/2 works (needs to enter twice??)
JamieXiao Mar 31, 2025
597cd00
Hacker Reviewer Feature
JamieXiao Apr 1, 2025
5bf4867
Cleaner code
JamieXiao Apr 4, 2025
49170d9
Merge branch 'feat/create_application_review' of https://github.com/h…
JamieXiao Nov 13, 2025
7150e54
Fixed Application Error: implemented reviewers values from feat/revie…
JamieXiao Nov 17, 2025
b312388
Fixed Application Error: implemented reviewers values from feat/revie…
JamieXiao Nov 17, 2025
003db27
Assign 2 reviewers per unreviewed Hacker submitted before cutoff time…
JamieXiao Nov 17, 2025
379f387
removed to requirement that the reviewer name has to be empty (now it…
JamieXiao Nov 17, 2025
0d4fab0
clean
JamieXiao Nov 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions constants/general.constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,68 @@ const HACKER_STATUSES = [
HACKER_STATUS_CHECKED_IN,
HACKER_STATUS_DECLINED
];

const HACKER_REVIEWER_STATUS_NONE = 'None';
const HACKER_REVIEWER_STATUS_POOR = 'Poor';
const HACKER_REVIEWER_STATUS_WEAK = 'Weak';
const HACKER_REVIEWER_STATUS_AVERAGE = 'Average';
const HACKER_REVIEWER_STATUS_STRONG = 'Strong';
const HACKER_REVIEWER_STATUS_OUTSTANDING = 'Outstanding';
const HACKER_REVIEWER_STATUS_WHITELIST = 'Whitelist';
const HACKER_REVIEWER_STATUSES = [
HACKER_REVIEWER_STATUS_NONE,
HACKER_REVIEWER_STATUS_POOR,
HACKER_REVIEWER_STATUS_WEAK,
HACKER_REVIEWER_STATUS_AVERAGE,
HACKER_REVIEWER_STATUS_STRONG,
HACKER_REVIEWER_STATUS_OUTSTANDING,
HACKER_REVIEWER_STATUS_WHITELIST,
];

const HACKER_REVIEWER_NAMES = [
'',
'Amy',
'Carolyn',
'Clara',
'Debo',
'Deon',
'Doaa',
'Emily',
'Emma',
'Ethan',
'Evan',
'Finnley',
'Gabriel',
'Ian',
'Inaya',
'Jake',
'Jamie',
'Jane J.',
'Jane K.',
'Jeffrey',
'Joshua',
'Jyothsna',
'Khyati',
'Michael',
'Mika',
'Mubeen',
'Mira',
'Oishika',
'Olivia',
'Qi',
'Rémi',
'Sebastian',
'Shirley',
'Sihan',
'Siva',
'Snigdha',
'Stephanie',
'Tavi',
'Tina',
'Vipul',
'Yue Qian',
];

// This date is Jan 6, 2020 00:00:00 GMT -0500
const APPLICATION_CLOSE_TIME = 1578286800000;

Expand Down Expand Up @@ -185,7 +247,16 @@ module.exports = {
HACKER_STATUS_CONFIRMED: HACKER_STATUS_CONFIRMED,
HACKER_STATUS_WITHDRAWN: HACKER_STATUS_WITHDRAWN,
HACKER_STATUS_CHECKED_IN: HACKER_STATUS_CHECKED_IN,
HACKER_REVIEWER_STATUS_NONE: HACKER_REVIEWER_STATUS_NONE,
HACKER_REVIEWER_STATUS_POOR: HACKER_REVIEWER_STATUS_POOR,
HACKER_REVIEWER_STATUS_WEAK: HACKER_REVIEWER_STATUS_WEAK,
HACKER_REVIEWER_STATUS_AVERAGE: HACKER_REVIEWER_STATUS_AVERAGE,
HACKER_REVIEWER_STATUS_STRONG: HACKER_REVIEWER_STATUS_STRONG,
HACKER_REVIEWER_STATUS_OUTSTANDING: HACKER_REVIEWER_STATUS_OUTSTANDING,
HACKER_REVIEWER_STATUS_WHITELIST: HACKER_REVIEWER_STATUS_WHITELIST,
HACKER_STATUSES: HACKER_STATUSES,
HACKER_REVIEWER_STATUSES: HACKER_REVIEWER_STATUSES,
HACKER_REVIEWER_NAMES: HACKER_REVIEWER_NAMES,
TRAVEL_STATUS_NONE: TRAVEL_STATUS_NONE,
TRAVEL_STATUS_BUS: TRAVEL_STATUS_BUS,
TRAVEL_STATUS_POLICY: TRAVEL_STATUS_POLICY,
Expand Down
30 changes: 30 additions & 0 deletions constants/routes.constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,36 @@ const hackerRoutes = {
uri: "/api/hacker/status/" + Constants.ROLE_CATEGORIES.SELF,
_id: mongoose.Types.ObjectId.createFromTime(125)
},
patchAnyReviewerStatusById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/reviewerStatus/" + Constants.ROLE_CATEGORIES.ALL,
_id: mongoose.Types.ObjectId.createFromTime(168)
},
patchSelfReviewerStatusById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/reviewerStatus/" + Constants.ROLE_CATEGORIES.SELF,
_id: mongoose.Types.ObjectId.createFromTime(169)
},
patchAnyReviewerStatus2ById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/reviewerStatus2/" + Constants.ROLE_CATEGORIES.ALL,
_id: mongoose.Types.ObjectId.createFromTime(168)
},
patchSelfReviewerStatus2ById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/reviewerStatus2/" + Constants.ROLE_CATEGORIES.SELF,
_id: mongoose.Types.ObjectId.createFromTime(169)
},
// patchAnyReviewerNameById: {
// requestType: Constants.REQUEST_TYPES.PATCH,
// uri: "/api/hacker/reviewerName/" + Constants.ROLE_CATEGORIES.ALL,
// _id: mongoose.Types.ObjectId.createFromTime(168)
// },
// patchSelfReviewerNameById: {
// requestType: Constants.REQUEST_TYPES.PATCH,
// uri: "/api/hacker/reviewerName/" + Constants.ROLE_CATEGORIES.SELF,
// _id: mongoose.Types.ObjectId.createFromTime(169)
// },
patchSelfCheckInById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/checkin/" + Constants.ROLE_CATEGORIES.SELF,
Expand Down
18 changes: 18 additions & 0 deletions controllers/hacker.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,27 @@ function updatedHackerBatch(req, res) {
});
}

/**
* @function assignReviewers
* @param {*} req
* @param {*} res
* @return {JSON} Success or error status
* @description
* Assign reviewers to hackers who've not yet been assigned reviewers and submitted applications before the deadline.
* Returns a 200 status after bulk assignment reviewers.
* The assignments are located in req.body.
*/
function assignedReviewers(req, res) {
return res.status(200).json({
message: 'Successfully assigned reviewers to hackers',
data: req.body
});
}

module.exports = {
updatedHacker: updatedHacker,
updatedHackerBatch: updatedHackerBatch,
assignedReviewers: assignedReviewers,
createdHacker: createdHacker,
uploadedResume: uploadedResume,
downloadedResume: downloadedResume,
Expand Down
Loading
Loading