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
setup_credentials
Sets up email credentials from environment variables. # Environment Variables `SMTP_USERNAME` - The SMTP username `SMTP_PASSWORD` - The SMTP password
backend/server/src/models/email.rs:73
Method
submit
Submits an application, marking it as ready for review. # Arguments `id` - ID of the application to submit `transaction` - Database transaction to u
backend/server/src/models/application.rs:962
Method
submit
Submits an application for review. This handler allows application owners to submit their application. The application must be open and not already s
backend/server/src/handler/application.rs:273
Function
submitData
( templateId: string, name: string, subject: string, body: string )
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/templates/[templateId]/edit/edit-template.tsx:23
Function
toggleRequired
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/questions/campaign-questions.tsx:362
Method
update
Updates an existing role. # Arguments `id` - The ID of the role to update `role_data` - The new data for the role `pool` - A reference to the databas
backend/server/src/models/role.rs:191
Method
update
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 `id`
backend/server/src/models/comment.rs:165
Method
update
Updates an existing campaign. # Arguments `id` - ID of the campaign to update `update` - New campaign data `transaction` - Database transaction to u
backend/server/src/models/campaign.rs:464
Method
update
Updates an existing answer. # Arguments `id` - ID of the answer to update `answer_data` - New answer data `transaction` - Database transaction to us
backend/server/src/models/answer.rs:404
Method
update
( id: i64, title: String, description: Option<String>, common: bool, r
backend/server/src/models/question.rs:442
Method
update
Updates an existing email template. # Arguments `id` - The ID of the template to update `name` - The new name for the template `template_subject` - T
backend/server/src/models/email_template.rs:127
Method
update
Updates a role. This handler allows role admins to update role details. # Arguments `state` - The application state `id` - The ID of the role to up
backend/server/src/handler/role.rs:84
Method
update
Updates a campaign. This handler allows campaign admins to update campaign details. # Arguments `transaction` - Database transaction `id` - The ID
backend/server/src/handler/campaign.rs:144
Method
update
Updates an existing answer. This handler allows answer owners to update their answers. The application must be open and not already submitted. # Arg
backend/server/src/handler/answer.rs:132
Method
update
Updates a question. This handler allows question admins to update question details. # Arguments `state` - The application state `campaign_id` - The
backend/server/src/handler/question.rs:131
Method
update
Modifies availabilities for a given user in a campaign # Arguments `user_id` - ID of the interviewer `campaign_id` - ID of the campaign in which the
backend/server/src/handler/availabilities.rs:110
Method
update
Updates an email template. This handler allows email template admins to update template details. # Arguments `_user` - The authenticated user (must
backend/server/src/handler/email_template.rs:58
Function
updateApplicationRating
( applicationId: string, rating?: number, comment?: string, )
frontend-nextjs/src/models/application.ts:66
Function
updateApplicationStatus
( applicationId: string, status: ApplicationStatus, )
frontend-nextjs/src/models/application.ts:130
Function
updateOrganisationAdmins
(orgId: string, memberIds: string[])
frontend-nextjs/src/models/organisation.ts:59
Function
updateQuestionAnswer
(newQA: QuestionAndAnswer)
frontend-nextjs/src/app/[lang]/campaign/apply/[campaignId]/application/[applicationId]/application-answer.tsx:116
Function
updateRoles
(nextSelectedRoles: string[])
frontend-nextjs/src/app/[lang]/campaign/apply/[campaignId]/application/[applicationId]/application-answer.tsx:162
Method
update_admins
Updates the list of administrators for an organisation. # Arguments `organisation_id` - The ID of the organisation `admin_id_list` - List of user IDs
backend/server/src/models/organisation.rs:546
Method
update_admins
Updates the admin list of an organisation. This handler allows super users to update organisation admins. # Arguments `id` - The ID of the organisa
backend/server/src/handler/organisation.rs:270
Method
update_application_rating
Updates an existing application_rating ONLY THRU COMMENT. # Arguments `rating_id` - The ID of the rating to update `updated_rating` - The new rating
backend/server/src/models/rating.rs:345
Method
update_banner
Updates a campaign's banner image. # Arguments `id` - ID of the campaign to update `transaction` - Database transaction to use `storage_bucket` - S3
backend/server/src/models/campaign.rs:544
Method
update_banner
Updates a campaign's banner image. This handler allows campaign admins to update the campaign's banner image. # Arguments `transaction` - Database
backend/server/src/handler/campaign.rs:192
Method
update_category
Updates an existing category name by category. # Arguments `category_id` - The ID of the category to update `updated_category` - The new category (ON
backend/server/src/models/rating.rs:252
Method
update_category
Updates a category's name. # Arguments `campaign_id` - The ID of the campaign `category_id` - The ID of the category to update `_admin` - The Campai
backend/server/src/handler/rating.rs:84
Method
update_category_rating
Updates an existing category application rating. # Arguments `category_rating_id` - The ID of the category rating to update `updated_rating` - The ne
backend/server/src/models/rating.rs:572
Method
update_category_rating
Updates a specific category rating score. # Arguments `rating_id` - The ID of the application rating `category_rating_id` - The ID of the category r
backend/server/src/handler/rating.rs:263
Method
update_comment
Updates a rating's comment. # Arguments `rating_id` - The ID of the rating to update `_admin` - The authenticated user (must be the rating creator)
backend/server/src/handler/rating.rs:211
Method
update_degree
Updates a user's degree information. # Arguments `id` - ID of the user to update `degree_name` - New degree name for the user `degree_starting_year`
backend/server/src/models/user.rs:297
Method
update_degree
Updates the user's degree information. This handler allows users to update their degree details. # Arguments `state` - The application state `user`
backend/server/src/handler/user.rs:153
Method
update_gender
Updates a user's gender. # Arguments `id` - ID of the user to update `gender` - New gender for the user `pool` - Database connection pool # Returns
backend/server/src/models/user.rs:238
Method
update_gender
Updates the user's gender. This handler allows users to update their gender. # Arguments `state` - The application state `user` - The authenticated
backend/server/src/handler/user.rs:105
Method
update_logo
( id: i64, transaction: &mut Transaction<'_, Postgres>, storage_bucket: &Bucket, )
backend/server/src/models/organisation.rs:866
Method
update_logo
Updates an organisation's logo. This handler allows organisation admins to update the logo. # Arguments `state` - The application state `id` - The
backend/server/src/handler/organisation.rs:422
Method
update_member
Updates a single member's role (promote to Admin or demote to User). Superusers only.
backend/server/src/handler/organisation.rs:313
Method
update_member_role
Updates a single member's role (promote to Admin or demote to User). The user must already be in the organisation.
backend/server/src/models/organisation.rs:656
Method
update_members
Updates the list of members for an organisation. # Arguments `organisation_id` - The ID of the organisation `member_id_list` - List of user IDs to be
backend/server/src/models/organisation.rs:604
Method
update_members
Updates the member list of an organisation. This handler allows organisation admins to update members. # Arguments `transaction` - Database transac
backend/server/src/handler/organisation.rs:298
Method
update_name
Updates a user's name. # Arguments `id` - ID of the user to update `name` - New name for the user `pool` - Database connection pool # Returns `Res
backend/server/src/models/user.rs:180
Method
update_name
Updates the user's name. This handler allows users to update their name. # Arguments `state` - The application state `user` - The authenticated use
backend/server/src/handler/user.rs:57
Method
update_pronouns
Updates a user's pronouns. # Arguments `id` - ID of the user to update `pronouns` - New pronouns for the user `pool` - Database connection pool # R
backend/server/src/models/user.rs:209
Method
update_pronouns
Updates the user's pronouns. This handler allows users to update their pronouns. # Arguments `state` - The application state `user` - The authentic
backend/server/src/handler/user.rs:81
Method
update_rating
( State(mut state): State<AppState>, Path(application_id): Path<i64>, admin: Applicati
backend/server/src/handler/application.rs:356
Method
update_role_status
Set the per-campaign-role status for a given application. # Arguments `application_id` - ID of the application whose status is being set. `campaign_r
backend/server/src/handler/role_status.rs:28
Method
update_roles
Updates the role preferences for an application. # Arguments `id` - ID of the application to update `roles` - New list of role preferences `transact
backend/server/src/models/application.rs:920
Method
update_roles
Updates the roles associated with an application. This handler allows application owners to update the roles they're applying for. # Arguments `_us
backend/server/src/handler/application.rs:244
Method
update_status
Update the status of an applicant for a specific campaign role. # Arguments `application_id` - The application to modify the status for. `campaign_ro
backend/server/src/models/role_status.rs:40
Method
update_zid
Updates a user's zID. # Arguments `id` - ID of the user to update `zid` - New zID for the user `pool` - Database connection pool # Returns `Result
backend/server/src/models/user.rs:267
Method
update_zid
Updates the user's zid. This handler allows users to update their zid. # Arguments `state` - The application state `user` - The authenticated user
backend/server/src/handler/user.rs:129
Function
uploadAttachments
(campaignId: string, files: File[])
frontend-nextjs/src/models/campaign.ts:80
Method
upload_attachments
Creates or updates an attachment for a campaign. This handler allows campaign admins to upload role documents. It generates a pre-signed URL for uplo
backend/server/src/handler/campaign.rs:469
Method
use_invite
Accepts an invite for the current authenticated user. Validates the invite is not expired/used, then marks it as used. # Arguments `transaction` -
backend/server/src/handler/invite.rs:48
Function
user_exists_by_email
Verifies if a user exists based on the given email This function checks the database to see if a user exists with the given email. Returns an id if s
backend/server/src/service/user.rs:23
Method
visit_none
(self)
backend/server/src/models/serde_string.rs:101
Method
visit_seq
(self, mut seq: A)
backend/server/src/models/serde_string.rs:132
Method
visit_some
(self, deserializer: D)
backend/server/src/models/serde_string.rs:115
Method
visit_unit
(self)
backend/server/src/models/serde_string.rs:108
← previous
701–761 of 761, ranked by callers