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

Refactor user roles from admin site to main site #519

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

taesungh
Copy link
Member

Using enums to represent the different possible user roles to have stronger named references.
Resolves #516. Will create a new issue about reorganizing how Status is used in the Applicant Portal.

Changes

  • Create new enums for user roles for both the admin site and main site
  • Move status enums from useApplicant to the new userRecord.ts
  • Move isNonHacker check to ParticipantAction
  • The Portal still needs to be updated to use the new common enums

- Create new enums for user roles for both the admin site and main site
- Move status enums from `useApplicant` to the new `userRecord.ts`
- Move `isNonHacker` check to `ParticipantAction`
- The Portal still needs to be updated to use the new common enums
@taesungh taesungh force-pushed the refactor/user-record branch from b9c09a1 to 4dba257 Compare December 22, 2024 02:39
Copy link
Contributor

Deploy preview for irvinehacks-site-2025 ready!

Name IrvineHacks Site
Preview Visit Preview
Commit 4dba257

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 Taesung!

@waalbert waalbert merged commit ab1d081 into main Dec 23, 2024
4 checks passed
IanWearsHat added a commit that referenced this pull request Dec 23, 2024
commit ab1d081
Author: Taesung Hwang <[email protected]>
Date:   Sun Dec 22 21:37:33 2024 -0800

    Refactor user roles from admin site to main site (#519)

    - Create new enums for user roles for both the admin site and main site
    - Move status enums from `useApplicant` to the new `userRecord.ts`
    - Move `isNonHacker` check to `ParticipantAction`
    - The Portal still needs to be updated to use the new common enums

commit c8e1d0c
Author: Noah Kim <[email protected]>
Date:   Sun Dec 22 20:18:15 2024 -0800

    Remove Three.js (#498)

    * update dependencies

    * Remove other unnecessary dependencies and directories

    * Minor refactor
IanWearsHat added a commit that referenced this pull request Dec 23, 2024
* Added route for getting hacker applicants

* Added hacker applicants overview

* -Moved admin functions to applicant_review_processor.py
-Changed route to /applicants/hackers
-Updated test_admin

* Explicitly imported applicant_review_processor functions in test_admin

* - scoped usage of  functions from applicant_review_processor.py
- renamed applicant_review_processor function names
- moved applicant_review_processor unit tests to new file

* - Added placeholder page at /applicants
- Removed _omit_reviews
- Reverted _process_batch
- Moved all applicant_review_processor tests

* Merged main into current branch (squash):

commit ab1d081
Author: Taesung Hwang <[email protected]>
Date:   Sun Dec 22 21:37:33 2024 -0800

    Refactor user roles from admin site to main site (#519)

    - Create new enums for user roles for both the admin site and main site
    - Move status enums from `useApplicant` to the new `userRecord.ts`
    - Move `isNonHacker` check to `ParticipantAction`
    - The Portal still needs to be updated to use the new common enums

commit c8e1d0c
Author: Noah Kim <[email protected]>
Date:   Sun Dec 22 20:18:15 2024 -0800

    Remove Three.js (#498)

    * update dependencies

    * Remove other unnecessary dependencies and directories

    * Minor refactor

* Changed enum for useHackerApplicants.ts

* Revert "Changed enum for useHackerApplicants.ts"

This reverts commit 0d3d887.

* Revert "Merged main into current branch (squash):"

This reverts commit 92eaa86.

* deleted Applicants.tsx

* Changed enum for useHackerApplicants.ts
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.

Reorganize user roles in the Admin site into an enum
3 participants