Skip to content
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

[Admin] Set hacker score thresholds #527

Merged
merged 4 commits into from
Jan 4, 2025
Merged

Conversation

IanWearsHat
Copy link
Member

Part of #510

  • Insert document in MongoDB under settings collection similar to the following:
{
    _id: 'hacker_score_thresholds',
    accept: 8,
    waitlist: 5
}
  • Insert document in MongoDB under users collection similar to the following:
{
    _id: 'edu.uci.app22',
    application_data: {
        pronouns: [
            'he',
            'she'
        ],
        ethnicity: 'Two-or-more',
        is_18_older: false,
        school: 'UC San Diego',
        education_level: 'third-year-undergrad',
        major: 'Software Engineering',
        is_first_hackathon: false,
        linkedin: null,
        portfolio: null,
        frq_change: 'dsad',
        frq_video_game: 'dsa',
        email: '[email protected]',
        resume_url: null,
        submission_time: ISODate('2024-12-20T17:32:59.973Z'),
        reviews: [
            [
                ISODate('2024-12-20T17:41:22.634Z'),
                'edu.uci.ian4',
                4
            ],
            [
                ISODate('2024-12-20T17:42:01.098Z'),
                'edu.uci.ian5',
                10
            ]
        ]
    },
    first_name: 'dwa',
    last_name: 'sds',
    roles: [
        'Applicant',
        'Hacker'
    ],
    status: 'ACCEPTED'
}
  • Navigate to /admin/applicants/hackers
  • Change the thresholds in the top right, reload, and see a change in the applicant's decision

- Added UI inputs in HackerApplicants.tsx
- Added /get-thresholds route
- Display current thresholds in HackerApplicants.tsx
Copy link
Contributor

github-actions bot commented Dec 23, 2024

Deploy preview for irvinehacks-site-2025 ready!

Name IrvineHacks Site
Preview Visit Preview
Commit f0b1fee

@IanWearsHat IanWearsHat requested a review from waalbert December 25, 2024 08:25
@IanWearsHat IanWearsHat requested a review from waalbert December 29, 2024 02:48
Copy link
Contributor

@waalbert waalbert left a comment

Choose a reason for hiding this comment

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

Thanks for tackling the last part of this huge task Ian!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants