MCPcopy Create free account

hub / github.com/devsoc-unsw/chaos / functions

Functions761 in github.com/devsoc-unsw/chaos

Methodget_campaigns
( organisation_id: i64, transaction: &mut Transaction<'_, Postgres>, )
backend/server/src/models/organisation.rs:894
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_user_role
( organisation_id: i64, user_id: i64, transaction: &mut Transaction<'_, Postgres>,
backend/server/src/models/organisation.rs:993
Methodget_user_role
( user: AuthUser, Path(id): Path<i64>, mut transaction: DBTransaction<'_>, )
backend/server/src/handler/organisation.rs:592
Methodget_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
Methodget_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
Functiongoogle_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
Functiongoogle_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
FunctionhandleAccept
()
frontend-nextjs/src/app/[lang]/dashboard/invite/[code]/invite-client.tsx:40
FunctionhandleApplicationSubmit
()
frontend-nextjs/src/app/[lang]/campaign/apply/[campaignId]/application/[applicationId]/application-answer.tsx:231
FunctionhandleBlur
()
frontend-nextjs/src/components/slug-input.tsx:22
FunctionhandleBlur
()
frontend-nextjs/src/components/application-answer/questions/shortanswer.tsx:51
FunctionhandleChange
(e: ChangeEvent<HTMLTextAreaElement>)
frontend-nextjs/src/components/application-answer/questions/shortanswer.tsx:36
FunctionhandleChange
(value: string)
frontend-nextjs/src/components/application-answer/questions/multichoice.tsx:41
FunctionhandleClick
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/members/columns.tsx:34
FunctionhandleCopy
()
frontend-nextjs/src/components/copy-button.tsx:17
FunctionhandleDateSelect
(selectedDate: Date | undefined)
frontend-nextjs/src/components/ui/date-picker.tsx:45
FunctionhandleDecision
(appId: string, roleId: string, status: ApplicationStatus)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/review/review-applications.tsx:78
FunctionhandleDeleteQuestion
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/questions/campaign-questions.tsx:353
FunctionhandleDragEnd
({ source, destination, draggableId }: DropResult)
frontend-nextjs/src/components/application-answer/role-selector.tsx:20
FunctionhandleDragEnd
(result: any)
frontend-nextjs/src/components/application-answer/questions/ranking.tsx:84
FunctionhandleDragEnd
(result: DropResult)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/questions/campaign-questions.tsx:310
FunctionhandleImageChange
(event: React.ChangeEvent<HTMLInputElement>)
frontend-nextjs/src/components/ui/image-upload.tsx:50
FunctionhandleInviteMember
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/members/members.tsx:79
FunctionhandleKeyDown
(event: KeyboardEvent)
frontend-nextjs/src/components/ui/sidebar.tsx:98
FunctionhandleKeyDown
(e: React.KeyboardEvent<HTMLTextAreaElement>)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/templates/template-form.tsx:119
FunctionhandleNext
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/review/review-applications.tsx:72
FunctionhandlePublish
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/campaign-details.tsx:101
FunctionhandlePublishClick
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/publish-campaign-dialog.tsx:30
FunctionhandleRemoveQuestionFromRole
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/questions/campaign-questions.tsx:357
FunctionhandleReply
(comment: CommentDetails)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/review/application-discussion-panel.tsx:162
FunctionhandleSelect
(selectedValue: string)
frontend-nextjs/src/components/application-answer/questions/dropdown.tsx:58
FunctionhandleSend
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/applications/send-email-modal.tsx:121
FunctionhandleSubmit
(e: React.FormEvent)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/review/application-discussion-panel.tsx:167
FunctionhandleTemplateChange
(templateId: string)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/applications/send-email-modal.tsx:109
FunctionhandleTextChange
(e: React.ChangeEvent<HTMLTextAreaElement>)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/templates/template-form.tsx:94
FunctionhandleTimeChange
(e: React.ChangeEvent<HTMLInputElement>)
frontend-nextjs/src/components/ui/date-picker.tsx:53
FunctionhandleUpdate
()
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/edit/campaign-settings.tsx:310
FunctionhandleUpdateMemberRole
(userId: string, newRole: "Admin" | "User")
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/members/members.tsx:46
Methodhash
(&self, state: &mut H)
backend/server/src/models/availabilities.rs:18
Methodinit
()
backend/server/src/models/seeder.rs:12
Methodinit_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
Methodinto_response
(self)
backend/server/src/models/app.rs:57
Methodinto_response
(self)
backend/server/src/models/auth.rs:69
Methodinto_response
(self)
backend/server/src/models/error.rs:137
Methodinvite_user
( organisation_id: i64, inviting_user_id: i64, email: String, email_credential
backend/server/src/models/organisation.rs:757
Methodinvite_user
( mut transaction: DBTransaction<'_>, Path(id): Path<i64>, admin: OrganisationAdmin,
backend/server/src/handler/organisation.rs:387
Methodis_superuser
Returns whether the current user is a superuser.
backend/server/src/handler/user.rs:171
Functionlogout
( State(state): State<AppState>, jar: CookieJar, )
backend/server/src/handler/auth.rs:175
Functionmain
()
backend/server/src/main.rs:12
Functionmain
()
backend/database-seeding/src/main.rs:15
Methodmark_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
Methodnew_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
Methodpreview_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
Methodpreview_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
Functionproxy
(request: NextRequest)
frontend-nextjs/src/proxy.ts:7
Methodpublish
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
Methodpublish
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
Methodqueue_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
FunctionremoveSelectedImage
()
frontend-nextjs/src/components/ui/image-upload.tsx:56
Methodremove_admin
( organisation_id: i64, admin_to_remove: i64, transaction: &mut Transaction<'_, Postgr
backend/server/src/models/organisation.rs:641
Methodremove_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
Methodremove_user
( organisation_id: i64, user_id: i64, transaction: &mut Transaction<'_, Postgres>,
backend/server/src/models/organisation.rs:683
Methodremove_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
Methodreply
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
Methodreply
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
Methodsend_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
Methodsend_next
( credentials: EmailCredentials, transaction: &mut Transaction<'_, Postgres>, )
backend/server/src/models/email.rs:195
Methodsend_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
Methodsend_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
Functionserialize
(value: &i64, serializer: S)
backend/server/src/models/serde_string.rs:8
Functionserialize_option
Serializes `Option<i64>` as `Option<string>` for JavaScript compatibility.
backend/server/src/models/serde_string.rs:40
Functionserialize_vec
(values: &Vec<i64>, serializer: S)
backend/server/src/models/serde_string.rs:15
Methodset_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
Methodset_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
Methodset_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
Methodset_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
← previousnext →601–700 of 761, ranked by callers