Skip to content
Merged
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
3b31298
fixed authorization issues by adding all routes to routes.constant.js…
tektaxi Nov 17, 2025
92b2b97
Merge branch 'dev' into feat/create_application_review
tektaxi Nov 17, 2025
244180b
disable emails on status change by admin
tektaxi Nov 18, 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 = [
Copy link
Contributor

Choose a reason for hiding this comment

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

non-blocking:
instead of doing this as a list of variables, couldn't lines 28-44 be wrapped into one {} object?
ie. HACKER_REVIEW_STATUSES = {NONE : 'None', POOR : 'Poor', etc.}

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
62 changes: 61 additions & 1 deletion constants/routes.constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* ===***===***===***===***===***===***===***===***===
*
* If you are adding a route to this list, update this number
* next avaiable createFromTime value: 170
* next avaiable createFromTime value: 180
*
* If you are deleting a route from this list, please add the ID to the list of 'reserved' IDs,
* so that we don't accidentally assign someone to a given ID.
Expand Down Expand Up @@ -153,6 +153,66 @@ 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(170)
},
patchSelfReviewerStatus2ById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/reviewerStatus2/" + Constants.ROLE_CATEGORIES.SELF,
_id: mongoose.Types.ObjectId.createFromTime(171)
},
patchAnyReviewerNameById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/reviewerName/" + Constants.ROLE_CATEGORIES.ALL,
_id: mongoose.Types.ObjectId.createFromTime(172)
},
patchSelfReviewerNameById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/reviewerName/" + Constants.ROLE_CATEGORIES.SELF,
_id: mongoose.Types.ObjectId.createFromTime(173)
},
patchAnyReviewerName2ById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/reviewerName2/" + Constants.ROLE_CATEGORIES.ALL,
_id: mongoose.Types.ObjectId.createFromTime(174)
},
patchSelfReviewerName2ById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/reviewerName2/" + Constants.ROLE_CATEGORIES.SELF,
_id: mongoose.Types.ObjectId.createFromTime(175)
},
patchAnyReviewerCommentsById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/reviewerComments/" + Constants.ROLE_CATEGORIES.ALL,
_id: mongoose.Types.ObjectId.createFromTime(176)
},
patchSelfReviewerCommentsById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/reviewerComments/" + Constants.ROLE_CATEGORIES.SELF,
_id: mongoose.Types.ObjectId.createFromTime(177)
},
patchAnyReviewerComments2ById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/reviewerComments2/" + Constants.ROLE_CATEGORIES.ALL,
_id: mongoose.Types.ObjectId.createFromTime(178)
},
patchSelfReviewerComments2ById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/reviewerComments2/" + Constants.ROLE_CATEGORIES.SELF,
_id: mongoose.Types.ObjectId.createFromTime(179)
},
patchSelfCheckInById: {
requestType: Constants.REQUEST_TYPES.PATCH,
uri: "/api/hacker/checkin/" + Constants.ROLE_CATEGORIES.SELF,
Expand Down
Loading
Loading