Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/devsoc-unsw/chaos
/ functions
Functions
761 in github.com/devsoc-unsw/chaos
⨍
Functions
761
◇
Types & classes
207
Method
get_campaigns
( organisation_id: i64, transaction: &mut Transaction<'_, Postgres>, )
backend/server/src/models/organisation.rs:894
Method
get_campaigns
Retrieves all campaigns for an organisation. This handler allows any authenticated user to view organisation campaigns. # Arguments `state` - The a
backend/server/src/handler/organisation.rs:448
Method
get_categories_by_campaign
Gets all categories for a campaign # Arguments `transaction` - Database transaction to use # Returns `Result<Vec<Campaign>, ChaosError>` - List o
backend/server/src/models/rating.rs:222
Method
get_categories_by_campaign
Retrieves all rating categories for a campaign. # Arguments `campaign_id` - The ID of the campaign `_admin` - The authenticated user (must be a camp
backend/server/src/handler/rating.rs:62
Method
get_comments_by_application
Updates an existing comment. The update is scoped to both the comment ID and the author, so users can only edit their own comments. # Arguments `app
backend/server/src/models/comment.rs:137
Method
get_comments_by_application
Get all comments for an application. # Arguments `application_id` - ID of the application to fetch the comments for. `_admin` - Authenticated user al
backend/server/src/handler/comment.rs:119
Method
get_from_campaign_id
Retrieves all applications for a specific campaign. # Arguments `campaign_id` - ID of the campaign to get applications for `transaction` - Database
backend/server/src/models/application.rs:603
Method
get_from_curr_user
Retrieves all applications for the current user. This handler returns all applications created by the authenticated user. # Arguments `user` - The
backend/server/src/handler/application.rs:195
Method
get_from_role_id
Retrieves all applications for a specific role. # Arguments `role_id` - ID of the role to get applications for `transaction` - Database transaction
backend/server/src/models/application.rs:523
Method
get_from_user_id
Retrieves all applications submitted by a specific user. # Arguments `user_id` - ID of the user to get applications for `transaction` - Database tra
backend/server/src/models/application.rs:745
Method
get_in_progress
Retrieves an application by its ID regardless of submission status. This handler allows regular applicants to view application details in the answer s
backend/server/src/models/application.rs:445
Method
get_in_progress
Retrieves the details of a specific application regardless of submission status. This handler allows regular applicants to view application details i
backend/server/src/handler/application.rs:122
Method
get_members
Retrieves all members of an organisation. # Arguments `organisation_id` - The ID of the organisation `pool` - A reference to the database connection
backend/server/src/models/organisation.rs:515
Method
get_members
Retrieves all members of an organisation. This handler allows organisation admins to view all members. # Arguments `state` - The application state
backend/server/src/handler/organisation.rs:245
Method
get_offers
Retrieves all offers for a campaign. This handler allows campaign admins to view all offers. # Arguments `transaction` - Database transaction `id`
backend/server/src/handler/campaign.rs:393
Method
get_rating_by_current_user
Retrieves the rating for an application given by the current user. This handler allows application reviewers to view their rating for an application.
backend/server/src/handler/application.rs:297
Method
get_rating_details
Retrieves detailed rating information with all category ratings given application and rater # Arguments `application_id` - The ID of the application
backend/server/src/models/rating.rs:411
Method
get_ratings
Retrieves all ratings for an application. This handler allows application reviewers to view all ratings for an application. # Arguments `applicatio
backend/server/src/handler/application.rs:411
Method
get_role_statuses_for_application
Get all per-campaign-role statuses for an application. # Arguments `application_id` - ID of the application to fetch the per-campaign-role statuses f
backend/server/src/handler/role_status.rs:59
Method
get_role_statuses_for_campaign
Get all per-campaign-role statuses for a campaign. # Arguments `campaign_id` - ID of the campaign to fetch the per-campaign-role statuses for. `_admi
backend/server/src/handler/role_status.rs:106
Method
get_role_statuses_for_campaign_role
Get all per-campaign-role statuses for a campaign role. # Arguments `campaign_id` - ID of the campaign to fetch the per-campaign-role statuses for. `
backend/server/src/handler/role_status.rs:83
Method
get_roles
Retrieves all roles associated with a specific application. This function queries the database to get all application roles for a given application I
backend/server/src/models/application.rs:889
Method
get_roles
Retrieves all roles associated with a specific application. This handler allows application owners to view all roles they have applied for in a speci
backend/server/src/handler/application.rs:219
Method
get_roles
Retrieves all roles in a campaign. This handler allows any authenticated user to view all roles in a campaign. # Arguments `transaction` - Database
backend/server/src/handler/campaign.rs:273
Method
get_user_campaign_id
Gets the UC id for a given user_id and campaign id # Arguments `user_id` - ID of the interviewer `campaign_id` - ID of the campaign in which the user
backend/server/src/models/availabilities.rs:157
Method
get_user_role
( organisation_id: i64, user_id: i64, transaction: &mut Transaction<'_, Postgres>,
backend/server/src/models/organisation.rs:993
Method
get_user_role
( user: AuthUser, Path(id): Path<i64>, mut transaction: DBTransaction<'_>, )
backend/server/src/handler/organisation.rs:592
Method
get_users
Retrieves all users of an organisation. # Arguments `organisation_id` - The ID of the organisation `pool` - A reference to the database connection po
backend/server/src/models/organisation.rs:484
Method
get_users
Retrieves all users (role) of an organisation. This handler allows organisation admins to view all members with the role "User". # Arguments `state
backend/server/src/handler/organisation.rs:221
Function
google_auth_init
Handles the Google OAuth2 callback. This handler processes the OAuth2 code received from Google after user authorization. It exchanges the code for a
backend/server/src/handler/auth.rs:47
Function
google_callback
Handles the Google OAuth2 callback. This handler processes the OAuth2 code received from Google after user authorization. It exchanges the code for a
backend/server/src/handler/auth.rs:93
Function
handleAccept
()
frontend-nextjs/src/app/[lang]/dashboard/invite/[code]/invite-client.tsx:40
Function
handleApplicationSubmit
()
frontend-nextjs/src/app/[lang]/campaign/apply/[campaignId]/application/[applicationId]/application-answer.tsx:231
Function
handleBlur
()
frontend-nextjs/src/components/slug-input.tsx:22
Function
handleBlur
()
frontend-nextjs/src/components/application-answer/questions/shortanswer.tsx:51
Function
handleChange
(e: ChangeEvent<HTMLTextAreaElement>)
frontend-nextjs/src/components/application-answer/questions/shortanswer.tsx:36
Function
handleChange
(value: string)
frontend-nextjs/src/components/application-answer/questions/multichoice.tsx:41
Function
handleClick
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/members/columns.tsx:34
Function
handleCopy
()
frontend-nextjs/src/components/copy-button.tsx:17
Function
handleDateSelect
(selectedDate: Date | undefined)
frontend-nextjs/src/components/ui/date-picker.tsx:45
Function
handleDecision
(appId: string, roleId: string, status: ApplicationStatus)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/review/review-applications.tsx:78
Function
handleDeleteQuestion
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/questions/campaign-questions.tsx:353
Function
handleDragEnd
({ source, destination, draggableId }: DropResult)
frontend-nextjs/src/components/application-answer/role-selector.tsx:20
Function
handleDragEnd
(result: any)
frontend-nextjs/src/components/application-answer/questions/ranking.tsx:84
Function
handleDragEnd
(result: DropResult)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/questions/campaign-questions.tsx:310
Function
handleImageChange
(event: React.ChangeEvent<HTMLInputElement>)
frontend-nextjs/src/components/ui/image-upload.tsx:50
Function
handleInviteMember
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/members/members.tsx:79
Function
handleKeyDown
(event: KeyboardEvent)
frontend-nextjs/src/components/ui/sidebar.tsx:98
Function
handleKeyDown
(e: React.KeyboardEvent<HTMLTextAreaElement>)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/templates/template-form.tsx:119
Function
handleNext
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/review/review-applications.tsx:72
Function
handlePublish
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/campaign-details.tsx:101
Function
handlePublishClick
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/publish-campaign-dialog.tsx:30
Function
handleRemoveQuestionFromRole
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/questions/campaign-questions.tsx:357
Function
handleReply
(comment: CommentDetails)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/review/application-discussion-panel.tsx:162
Function
handleSelect
(selectedValue: string)
frontend-nextjs/src/components/application-answer/questions/dropdown.tsx:58
Function
handleSend
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/applications/send-email-modal.tsx:121
Function
handleSubmit
(e: React.FormEvent)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/review/application-discussion-panel.tsx:167
Function
handleTemplateChange
(templateId: string)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/applications/send-email-modal.tsx:109
Function
handleTextChange
(e: React.ChangeEvent<HTMLTextAreaElement>)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/templates/template-form.tsx:94
Function
handleTimeChange
(e: React.ChangeEvent<HTMLInputElement>)
frontend-nextjs/src/components/ui/date-picker.tsx:53
Function
handleUpdate
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/edit/campaign-settings.tsx:310
Function
handleUpdateMemberRole
(userId: string, newRole: "Admin" | "User")
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/members/members.tsx:46
Method
hash
(&self, state: &mut H)
backend/server/src/models/availabilities.rs:18
Method
init
()
backend/server/src/models/seeder.rs:12
Method
init_bucket
Initializes a new S3 bucket connection using environment variables. # Environment Variables `S3_BUCKET_NAME` - The name of the S3 bucket `S3_ACCESS_K
backend/server/src/models/storage.rs:32
Method
into_response
(self)
backend/server/src/models/app.rs:57
Method
into_response
(self)
backend/server/src/models/auth.rs:69
Method
into_response
(self)
backend/server/src/models/error.rs:137
Method
invite_user
( organisation_id: i64, inviting_user_id: i64, email: String, email_credential
backend/server/src/models/organisation.rs:757
Method
invite_user
( mut transaction: DBTransaction<'_>, Path(id): Path<i64>, admin: OrganisationAdmin,
backend/server/src/handler/organisation.rs:387
Method
is_superuser
Returns whether the current user is a superuser.
backend/server/src/handler/user.rs:171
Function
logout
( State(state): State<AppState>, jar: CookieJar, )
backend/server/src/handler/auth.rs:175
Function
main
()
backend/server/src/main.rs:12
Function
main
()
backend/database-seeding/src/main.rs:15
Method
mark_used
Marks an invite as used by a user. # Arguments `code` - Invite code `user_id` - User redeeming the invite `transaction` - Database transaction to us
backend/server/src/models/invite.rs:108
Method
new_connection
Creates a new SMTP connection with the provided credentials. # Arguments `credentials` - The email credentials to use for the connection # Returns R
backend/server/src/models/email.rs:113
Method
preview_email
Generates a preview of the offer email. # Arguments `id` - The ID of the offer to preview `transaction` - A mutable reference to the database transac
backend/server/src/models/offer.rs:315
Method
preview_email
Previews the email that will be sent for an offer. This handler allows offer admins to preview the offer email before sending. # Arguments `transac
backend/server/src/handler/offer.rs:139
Function
proxy
(request: NextRequest)
frontend-nextjs/src/proxy.ts:7
Method
publish
Publishes a campaign by setting its published field to true. # Arguments `id` - ID of the campaign to publish `transaction` - Database transaction t
backend/server/src/models/campaign.rs:511
Method
publish
Publishes a campaign by setting its published field to true. This handler allows campaign admins to publish campaigns. # Arguments `transaction` -
backend/server/src/handler/campaign.rs:168
Method
queue_outcome_emails
Queues outcome emails for the worker (`EmailQueue`, same pipeline as offer email queue). Auth matches viewing application ratings summary: org member
backend/server/src/handler/offer.rs:179
Function
removeSelectedImage
()
frontend-nextjs/src/components/ui/image-upload.tsx:56
Method
remove_admin
( organisation_id: i64, admin_to_remove: i64, transaction: &mut Transaction<'_, Postgr
backend/server/src/models/organisation.rs:641
Method
remove_admin
Removes an admin from an organisation. This handler allows super users to remove admins. # Arguments `transaction` - Database transaction `id` - Th
backend/server/src/handler/organisation.rs:345
Method
remove_user
( organisation_id: i64, user_id: i64, transaction: &mut Transaction<'_, Postgres>,
backend/server/src/models/organisation.rs:683
Method
remove_user
Removes a user from an organisation. This handler allows organisation admins to remove members with role "User". # Arguments `transaction` - Databa
backend/server/src/handler/organisation.rs:373
Method
reply
Processes a response to an offer. # Arguments `id` - The ID of the offer to respond to `accept` - Whether the offer is being accepted `transaction` -
backend/server/src/models/offer.rs:278
Method
reply
Allows a recipient to reply to an offer. This handler allows offer recipients to accept or decline offers. # Arguments `transaction` - Database tra
backend/server/src/handler/offer.rs:114
Method
send_message
Sends an email message. # Arguments `recipient_name` - The name of the email recipient `recipient_email_address` - The email address of the recipient
backend/server/src/models/email.rs:137
Method
send_next
( credentials: EmailCredentials, transaction: &mut Transaction<'_, Postgres>, )
backend/server/src/models/email.rs:195
Method
send_offer
Sends an offer email to the applicant. # Arguments `id` - The ID of the offer to send `transaction` - A mutable reference to the database transaction
backend/server/src/models/offer.rs:345
Method
send_offer
Sends an offer email to the recipient. This handler allows offer admins to send offer emails. # Arguments `transaction` - Database transaction `id`
backend/server/src/handler/offer.rs:164
Function
serialize
(value: &i64, serializer: S)
backend/server/src/models/serde_string.rs:8
Function
serialize_option
Serializes `Option<i64>` as `Option<string>` for JavaScript compatibility.
backend/server/src/models/serde_string.rs:40
Function
serialize_vec
(values: &Vec<i64>, serializer: S)
backend/server/src/models/serde_string.rs:15
Method
set_private_status
Updates the private status of an application. # Arguments `id` - ID of the application to update `new_status` - New status to set `pool` - Database
backend/server/src/models/application.rs:855
Method
set_private_status
Updates the private status of an application. This handler allows application admins to update the application's private status. # Arguments `state
backend/server/src/handler/application.rs:172
Method
set_status
Updates the public status of an application. # Arguments `id` - ID of the application to update `new_status` - New status to set `pool` - Database c
backend/server/src/models/application.rs:824
Method
set_status
Updates the status of an application. This handler allows application admins to update the application's status. # Arguments `state` - The applicat
backend/server/src/handler/application.rs:147
← previous
next →
601–700 of 761, ranked by callers