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
delete
Deletes an organisation. This handler allows super users to delete organisations. # Arguments `state` - The application state `id` - The ID of the
backend/server/src/handler/organisation.rs:150
Method
delete
Deletes a rating and all associated category scores. # Arguments `rating_id` - The ID of the rating to delete `_admin` - The authenticated user (mus
backend/server/src/handler/rating.rs:286
Method
delete
Deletes a question. This handler allows question admins to delete questions. # Arguments `campaign_id` - The ID of the campaign `question_id` - The
backend/server/src/handler/question.rs:179
Method
delete
Deletes an email template. This handler allows email template admins to delete templates. # Arguments `_user` - The authenticated user (must be an
backend/server/src/handler/email_template.rs:90
Function
deleteCampaignAttachment
(attachmentId: number)
frontend-nextjs/src/models/campaign.ts:91
Function
deleteCategoryRating
(ratingId: string, categoryRatingId: string)
frontend-nextjs/src/models/rating.ts:108
Function
deleteRating
(ratingId: string)
frontend-nextjs/src/models/rating.ts:114
Method
delete_application_rating
Deletes an application_rating. # Arguments `rating_id` - The ID of the rating to delete `transaction` - A mutable reference to the database transacti
backend/server/src/models/rating.rs:379
Method
delete_attachment
Deletes an attachment. This handler allows campaign admins to delete attachments. # Arguments `transaction` - Database transaction `attachment_id`
backend/server/src/handler/campaign.rs:501
Method
delete_availabilities
Deletes the given availability slots for a given user # Arguments `user_id` - ID of the interviewer `campaign_id` - ID of the campaign in which the u
backend/server/src/models/availabilities.rs:191
Method
delete_by_code
Deletes an invite by code.
backend/server/src/models/invite.rs:131
Method
delete_category
Deletes a category
backend/server/src/models/rating.rs:274
Method
delete_category
Deletes a rating category from a campaign. # Arguments `campaign_id` - The ID of the campaign `category_id` - The ID of the category to delete `_adm
backend/server/src/handler/rating.rs:105
Method
delete_category_rating
Deletes an application category rating. # Arguments `application_category_rating_id` - The ID of the application category rating to delete `transacti
backend/server/src/models/rating.rs:635
Method
delete_category_rating
Deletes a specific category rating. # Arguments `rating_id` - The ID of the application rating `category_rating_id` - The ID of the category rating
backend/server/src/handler/rating.rs:306
Method
delete_comment
Deletes an existing comment. # Arguments `application_id` - ID of the application the comment belongs to. `comment_id` - ID of the comment to delete.
backend/server/src/handler/comment.rs:92
Method
delete_file
Deletes a file from S3 storage. # Arguments `path` - The path where the file is stored in the bucket `bucket` - A reference to the initialized S3 buc
backend/server/src/models/storage.rs:115
Function
deserialize_option
Deserializes `Option<string>` into `Option<i64>`.
backend/server/src/models/serde_string.rs:51
Function
deserialize_option_vec_to_vec
Deserializes Option<Vec<i64>> but converts None to empty Vec<i64> This allows Question to accept null roles in input but always have Vec<i64> internal
backend/server/src/models/serde_string.rs:84
Function
deserialize_vec
(deserializer: D)
backend/server/src/models/serde_string.rs:62
Method
dev_org_admin_login
( State(state): State<AppState>, jar: CookieJar, )
backend/server/src/handler/auth.rs:244
Method
dev_super_admin_login
( State(state): State<AppState>, jar: CookieJar, )
backend/server/src/handler/auth.rs:213
Method
dev_user_login
( State(state): State<AppState>, jar: CookieJar, )
backend/server/src/handler/auth.rs:275
Method
duplicate
Duplicates an email template. # Arguments `id` - The ID of the template to duplicate `pool` - A reference to the database connection pool # Returns
backend/server/src/models/email_template.rs:180
Method
duplicate
Duplicates an email template. This handler allows email template admins to duplicate templates. # Arguments `_user` - The authenticated user (must
backend/server/src/handler/email_template.rs:114
Function
editComment
( applicationId: string, commentId: string, body: string, )
frontend-nextjs/src/models/comment.ts:26
Method
edit_comment
Edits an existing comment. # Arguments `application_id` - ID of the application the comment belongs to. `comment_id` - ID of the comment to edit. `ad
backend/server/src/handler/comment.rs:62
Method
expecting
(&self, formatter: &mut std::fmt::Formatter)
backend/server/src/models/serde_string.rs:97
Method
find_by_email
( email: String, transaction: &mut Transaction<'_, Postgres>, )
backend/server/src/models/user.rs:150
Method
from_answer_raw_data
Creates an AnswerData instance from raw database data. # Arguments `question_type` - Type of the question `short_answer_answer` - Text answer for sh
backend/server/src/models/answer.rs:525
Method
from_question_data
(question_data: &QuestionData)
backend/server/src/models/question.rs:553
Method
from_question_raw_data
( question_type: QuestionType, multi_option_data: Option<sqlx::types::Json<Vec<MultiOptionQues
backend/server/src/models/question.rs:592
Method
from_question_type
Creates a new AnswerData instance based on a question type. # Arguments `question_type` - Type of the question # Returns `AnswerData` - New answer
backend/server/src/models/answer.rs:503
Method
from_question_type
(question_type: &QuestionType)
backend/server/src/models/question.rs:582
Method
from_request_parts
(parts: &mut Parts, state: &S)
backend/server/src/models/application.rs:993
Method
from_request_parts
(parts: &mut Parts, state: &S)
backend/server/src/models/campaign.rs:827
Method
from_request_parts
(parts: &mut Parts, state: &S)
backend/server/src/models/auth.rs:97
Method
from_request_parts
Extracts a new database transaction from the request state. # Arguments `_` - The request parts (unused) `state` - The application state containing t
backend/server/src/models/transaction.rs:46
Function
generateMetadata
( { params }: Props, )
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/layout.tsx:13
Method
generate_email
Generates an email using a template and provided data. # Arguments `name` - The recipient's name `role` - The role being applied for `organisation_na
backend/server/src/models/email_template.rs:217
Method
generate_get_url
Generates a pre-signed URL for downloading/retrieving a file from S3. # Arguments `path` - The path where the file is stored in the bucket `bucket` -
backend/server/src/models/storage.rs:100
Method
generate_put_url
Generates a pre-signed URL for uploading a file to S3. # Arguments `path` - The path where the file will be stored in the bucket `bucket` - A referen
backend/server/src/models/storage.rs:82
Method
get
Retrieves a comment by its ID. # Arguments `id` - The comment ID. `transaction` - Database transaction to use. # Returns The comment details.
backend/server/src/models/comment.rs:106
Method
get
Retrieves a campaign by its ID. # Arguments `id` - ID of the campaign to retrieve `transaction` - Database transaction to use # Returns `Result<Ca
backend/server/src/models/campaign.rs:343
Method
get
Retrieves an offer by its ID. # Arguments `id` - The ID of the offer to retrieve `transaction` - A mutable reference to the database transaction # R
backend/server/src/models/offer.rs:167
Method
get
Retrieves an answer by its ID. # Arguments `id` - ID of the answer to retrieve `transaction` - Database transaction to use # Returns `Result<Answe
backend/server/src/models/answer.rs:178
Method
get
Retrieves an organisation by its ID. # Arguments `id` - The ID of the organisation to retrieve `pool` - A reference to the database connection pool
backend/server/src/models/organisation.rs:322
Method
get
Retrieves a user by their ID. # Arguments `id` - ID of the user to retrieve `pool` - Database connection pool # Returns `Result<User, ChaosError>`
backend/server/src/models/user.rs:131
Method
get
( id: i64, transaction: &mut Transaction<'_, Postgres>, )
backend/server/src/models/question.rs:165
Method
get
Retrieves an email template by its ID. # Arguments `id` - The ID of the template to retrieve `transaction` - A mutable reference to the database tran
backend/server/src/models/email_template.rs:74
Method
get
Retrieves the details of a specific application. This handler allows application admins to view application details. # Arguments `application_id` -
backend/server/src/handler/application.rs:98
Method
get
Retrieves a campaign by its ID. This handler allows any authenticated user to view campaign details. # Arguments `transaction` - Database transacti
backend/server/src/handler/campaign.rs:46
Method
get
Retrieves the details of a specific offer. This handler allows offer admins to view offer details. # Arguments `transaction` - Database transaction
backend/server/src/handler/offer.rs:65
Method
get
Gets invite details for a given invite code. # Arguments `transaction` - Database transaction `code` - Invite code # Returns `Result<impl IntoResp
backend/server/src/handler/invite.rs:25
Method
get
Retrieves an organisation by its ID. This handler allows any authenticated user to view organisation details. # Arguments `state` - The application
backend/server/src/handler/organisation.rs:103
Method
get
Retrieves the details of the current user. This handler allows authenticated users to view their profile details. # Arguments `state` - The applica
backend/server/src/handler/user.rs:34
Method
get
Retrieves all availability slots for a given user_id and campaign_id # Arguments `user_id` - ID of the interviewer `campaign_id` - ID of the campaig
backend/server/src/handler/availabilities.rs:72
Method
get
Retrieves the details of a specific email template. This handler allows email template admins to view template details. # Arguments `transaction` -
backend/server/src/handler/email_template.rs:34
Function
getOrganisationAdmins
(orgId: string)
frontend-nextjs/src/models/organisation.ts:55
Function
getOrganisationUsers
(orgId: string)
frontend-nextjs/src/models/organisation.ts:77
Method
get_admins
Retrieves all administrators of an organisation. # Arguments `organisation_id` - The ID of the organisation `pool` - A reference to the database conn
backend/server/src/models/organisation.rs:453
Method
get_admins
Retrieves all admins of an organisation. This handler allows super users to view organisation admins. # Arguments `state` - The application state `
backend/server/src/handler/organisation.rs:197
Method
get_all
Retrieves all campaigns in the system. # Arguments `transaction` - Database transaction to use # Returns `Result<Vec<Campaign>, ChaosError>` - Lis
backend/server/src/models/campaign.rs:316
Method
get_all
( transaction: &mut Transaction<'_, Postgres>, )
backend/server/src/models/organisation.rs:341
Method
get_all
Retrieves all campaigns. This handler allows any authenticated user to view all campaigns. # Arguments `transaction` - Database transaction `_user`
backend/server/src/handler/campaign.rs:121
Method
get_all_by_application
Retrieves all ratings for an application. # Arguments `application_id` - The ID of the application `_admin` - The authenticated user (must be an app
backend/server/src/handler/rating.rs:189
Method
get_all_by_application_and_role
Retrieves all answers for an application and role. # Arguments `application_id` - ID of the application to get answers for `role_id` - ID of the rol
backend/server/src/models/answer.rs:324
Method
get_all_by_application_and_role
Retrieves all answers for a specific role in an application. This handler allows application owners to view role-specific answers. # Arguments `app
backend/server/src/handler/answer.rs:102
Method
get_all_by_campaign
( campaign_id: i64, transaction: &mut Transaction<'_, Postgres>, )
backend/server/src/models/question.rs:228
Method
get_all_by_campaign_and_role
( campaign_id: i64, role_id: i64, transaction: &mut Transaction<'_, Postgres>, )
backend/server/src/models/question.rs:297
Method
get_all_by_campaign_and_role
Retrieves all questions for a specific role in a campaign. This handler allows any authenticated user to view role-specific questions. # Arguments
backend/server/src/handler/question.rs:75
Method
get_all_by_organisation
Retrieves all email templates for a specific organisation. # Arguments `organisation_id` - The ID of the organisation `pool` - A reference to the dat
backend/server/src/models/email_template.rs:99
Method
get_all_category_ratings_from_application_rating_id
Gets all category ratings for an application rating ID, from application_ratrings # Arguments `application_rating_id` - The ID of the application rat
backend/server/src/models/rating.rs:606
Method
get_all_common_by_application
Retrieves all common answers for an application. Common answers are those that apply to all roles in the application. # Arguments `application_id`
backend/server/src/models/answer.rs:247
Method
get_all_common_by_application
Retrieves all common answers for an application. This handler allows application owners to view all common answers. # Arguments `application_id` -
backend/server/src/handler/answer.rs:75
Method
get_all_common_by_campaign
( campaign_id: i64, transaction: &mut Transaction<'_, Postgres>, )
backend/server/src/models/question.rs:373
Method
get_all_common_by_campaign
Retrieves all common questions for a campaign. This handler allows any authenticated user to view common questions. # Arguments `campaign_id` - The
backend/server/src/handler/question.rs:102
Method
get_all_email_templates
Retrieves all email templates for an organisation. This handler allows organisation admins to view all email templates. # Arguments `_user` - The a
backend/server/src/handler/organisation.rs:580
Method
get_all_for_application
Fetch all the per-campaign-role statuses for a given application. # Arguments `application_id` - The application to fetch the role statuses for. `tra
backend/server/src/models/role_status.rs:70
Method
get_all_for_campaign
Fetch all the per-campaign-role statuses for a given campaign. # Arguments `campaign_id` - The campaign to fetch the role statuses for. `transaction`
backend/server/src/models/role_status.rs:130
Method
get_all_for_campaign_role
Fetch all the per-campaign-role statuses for a given campaign role. # Arguments `campaign_role_id` - The campaign role to fetch the role statuses for
backend/server/src/models/role_status.rs:100
Method
get_all_for_user
Get all organisations that the logged in user is a Member of If user is Super User, get all organisations
backend/server/src/handler/organisation.rs:163
Method
get_all_in_campaign
Retrieves all roles in a specific campaign. # Arguments `campaign_id` - The ID of the campaign to get roles from `transaction` - A mutable reference
backend/server/src/models/role.rs:227
Method
get_all_ratings_from_application_id
Retrieves all ratings for an application with all category ratings included # Arguments `application_id` - The ID of the application `transaction` -
backend/server/src/models/rating.rs:452
Method
get_all_ratings_from_rater_id
Retrieves all ratings that user/admin has rated with all category ratings included # Arguments `rater_id` - The ID of the rater `transaction` - A mut
backend/server/src/models/rating.rs:492
Method
get_application_ratings_summary
( campaign_id: i64, transaction: &mut Transaction<'_, Postgres>, )
backend/server/src/models/application.rs:673
Method
get_application_ratings_summary
Retrieves the average ratings for all users in an application. This handler allows application reviewers to view the average ratings for all users in
backend/server/src/handler/application.rs:436
Method
get_applications
Retrieves all applications for a specific role. This handler allows role admins to view all applications for a role. # Arguments `id` - The ID of t
backend/server/src/handler/role.rs:109
Method
get_applications
Retrieves all applications for a campaign. This handler allows campaign admins to view all applications. # Arguments `id` - The ID of the campaign
backend/server/src/handler/campaign.rs:332
Method
get_attachments
Retrieves the attachments for a campaign. This handler allows any authenticated user to view the attachments. Returns an empty list if no documents e
backend/server/src/handler/campaign.rs:419
Method
get_availability_slots
Gets all available slots for a given UC pair # Arguments `user_id` - ID of the interviewer `campaign_id` - ID of the campaign in which the user will
backend/server/src/models/availabilities.rs:127
Method
get_by_campaign
Retrieves the attachments for a campaign. # Arguments `campaign_id` - ID of the campaign `transaction` - Database transaction to use # Returns `Re
backend/server/src/models/campaign.rs:652
Method
get_by_campaign
Retrieves all offers for a specific campaign. # Arguments `campaign_id` - The ID of the campaign to get offers from `transaction` - A mutable referen
backend/server/src/models/offer.rs:210
Method
get_by_code
Fetches an invite by its code. # Arguments `code` - Invite code `transaction` - Database transaction to use # Returns `Result<Invite, ChaosError>`
backend/server/src/models/invite.rs:68
Method
get_by_id
Retrieves an attachment by its ID. # Arguments `attachment_id` - ID of the attachment `transaction` - Database transaction to use # Returns `Resul
backend/server/src/models/campaign.rs:681
Method
get_by_member
Retrieves all organisations that a user is a member of. # Arguments `user_id` - The ID of the user to retrieve organisations for `transaction` - A mu
backend/server/src/models/organisation.rs:396
Method
get_by_slug
Retrieves an organisation by its slug. # Arguments `slug` - The slug of the organisation to retrieve `pool` - A reference to the database connection
backend/server/src/models/organisation.rs:367
Method
get_by_slug
Retrieves an organisation by its slug. This handler allows any authenticated user to view organisation details using a slug. # Arguments `state` -
backend/server/src/handler/organisation.rs:126
Method
get_by_slugs
Retrieves a campaign by its organization and campaign slugs. # Arguments `organisation_slug` - Slug of the organization `campaign_slug` - Slug of th
backend/server/src/models/campaign.rs:421
Method
get_by_slugs
Retrieves a campaign by its organisation and campaign slugs. This handler allows any authenticated user to view campaign details using slugs. # Argu
backend/server/src/handler/campaign.rs:83
← previous
next →
501–600 of 761, ranked by callers