MCPcopy Create free account

hub / github.com/CitizenLabDotCo/citizenlab / functions

Functions15,961 in github.com/CitizenLabDotCo/citizenlab

↓ 33 callersMethodobserveEvent
(eventName: string)
front/app/utils/eventEmitter.ts:22
↓ 33 callersMethodrun_filter_hooks
(activity: nil, time: nil)
back/engines/free/email_campaigns/app/models/email_campaigns/campaign.rb:132
↓ 33 callersMethodstatus
back/app/models/que_job.rb:61
↓ 33 callersFunctionupdateFormData
(fn: SetFn)
front/app/containers/Admin/projects/project/phaseSetup/components/PhaseParticipationConfig/index.tsx:115
↓ 32 callersMethodbefore_update
(idea, user)
back/app/services/side_fx_idea_service.rb:34
↓ 32 callersMethodchat
(prompt, **params)
back/engines/commercial/analysis/app/lib/analysis/LLM/base.rb:36
↓ 32 callersFunctionresult_index
Helper methods
back/spec/services/surveys/shared/survey_setup.rb:455
↓ 32 callersFunctionuseUserById
(userId?: string | null, keepPreviousData?: boolean)
front/app/api/users/useUserById.ts:15
↓ 31 callersMethoddeactivate_feature!
(feature, config: nil)
back/app/services/settings_service.rb:81
↓ 31 callersFunctiontimeAgo
(dateInput: number, locale: SupportedLocale)
front/app/utils/dateUtils.ts:61
↓ 30 callersMethodcall
back/spec/support/mock_admin_publications_tree.rb:8
↓ 30 callersFunctionisFixableByAuthentication
(disabledReason: string)
front/app/utils/actionDescriptors/index.ts:19
↓ 30 callersMethodstatus
back/engines/commercial/public_api/app/serializers/public_api/v2/idea_serializer.rb:55
↓ 29 callersMethodconfirm!
back/app/models/email_confirmation.rb:27
↓ 29 callersMethodgenerate_result_for_field
Get the results for a single survey question
back/app/services/surveys/results_generator.rb:23
↓ 29 callersMethodname
Subclasses MUST override these.
back/engines/commercial/mcp_server/app/lib/mcp_server/base_tool.rb:15
↓ 28 callersMethodassign_defaults
back/app/models/idea.rb:363
↓ 28 callersMethodfull_name
back/app/models/user.rb:271
↓ 28 callersMethodinput
back/app/services/custom_free_prompt_service.rb:21
↓ 28 callersMethodmatch?
(string1, string2)
back/engines/commercial/custom_id_methods/app/lib/custom_id_methods/franceconnect/attributes_matcher.rb:9
↓ 28 callersMethodsanitize
Sanitizes a string from malicious and unwanted input. @param sanitize [String] string input to be sanitized @param features [Array<Symbol>] A list of
back/app/services/sanitization_service.rb:17
↓ 28 callersMethodswitch
(tenant_name)
back/config/environments/development.rb:2
↓ 28 callersMethodup
back/db/migrate/20210119144531_add_que.rb:4
↓ 28 callersMethodurl
back/app/serializers/web_api/v1/external/idea_serializer.rb:9
↓ 27 callersMethodcreate_periodic_activities
(now: Time.current, since: 1.hour)
back/app/services/activities_service.rb:4
↓ 27 callersMethodfolder
back/app/models/project.rb:251
↓ 27 callersFunctionisPage
(pageKey: pageKeys, pathName: string)
front/app/utils/helperUtils.ts:54
↓ 27 callersFunctionisString
(s: unknown)
front/app/utils/helperUtils.ts:153
↓ 27 callersMethodsettings
back/engines/commercial/admin_api/app/graphql/admin_api/types/tenant_type.rb:107
↓ 26 callersMethodadmin?
back/app/models/concerns/user_roles.rb:152
↓ 26 callersFunctioncanModerateProject
( project: IProjectData, user: IUser | undefined | null )
front/app/utils/permissions/rules/projectPermissions.ts:56
↓ 26 callersMethodcan_moderate_project?
(project, user)
back/app/services/user_role_service.rb:30
↓ 26 callersMethodcomments_count
back/app/controllers/web_api/v1/users_controller.rb:277
↓ 26 callersMethodideas_count
back/app/controllers/web_api/v1/users_controller.rb:267
↓ 26 callersMethodin_bin?
Does the given value fall into this bin. - `value` is the custom_field_value for the custom_field, as extracted from the custom_field_values
back/app/models/custom_field_bin.rb:45
↓ 26 callersMethodinput_term
back/app/models/idea.rb:351
↓ 26 callersMethodparticipation_method_on_creation
back/app/models/idea.rb:359
↓ 26 callersMethodto_token_payload
back/engines/commercial/public_api/app/models/public_api/api_client.rb:38
↓ 26 callersMethodvalidate
back/engines/commercial/analytics/app/services/analytics/query.rb:34
↓ 25 callersMethodbase_backend_uri
back/app/models/app_configuration.rb:177
↓ 25 callersMethoderror
(text)
back/engines/commercial/mcp_server/app/lib/mcp_server/base_tool/response_helpers.rb:15
↓ 25 callersMethodmessages
(prompt, assistant_prefix)
back/engines/commercial/analysis/app/lib/analysis/LLM/bedrock.rb:64
↓ 25 callersMethodmoderator?
back/app/models/concerns/user_roles.rb:164
↓ 25 callersMethodproject_moderator?
(project_id = nil)
back/app/models/concerns/user_roles.rb:160
↓ 24 callersMethodcreate
back/lib/auth_token/auth_token_controller.rb:10
↓ 24 callersFunctiondate
(str: string)
front/app/components/UI/GanttChart/utils.test.ts:19
↓ 24 callersMethoddisplay_name!
nil-friendly version of #display_name. Return nil when 'user' is nil without logging a warning. @param [User,nil] user @return [String,nil]
back/app/services/user_display_name_service.rb:36
↓ 24 callersMethodjson_schema
back/app/models/app_configuration.rb:43
↓ 24 callersMethodprojects
back/app/models/project_folders/folder.rb:79
↓ 24 callersMethodreport_msg
(msg, extra: {})
back/lib/error_reporter.rb:46
↓ 24 callersFunctionroundPercentages
(values: number[], decimals = 0)
front/app/utils/math.ts:10
↓ 24 callersFunctionrun_task
(host: Tenant.current.host, execute: false)
back/engines/commercial/multi_tenancy/spec/tasks/replace_de_at_with_de_de_task_spec.rb:14
↓ 24 callersFunctionrun_task
(host: Tenant.current.host, execute: false)
back/engines/commercial/multi_tenancy/spec/tasks/replace_de_de_with_de_at_task_spec.rb:14
↓ 23 callersMethodcreate?
back/app/policies/user_policy.rb:42
↓ 23 callersMethodcustom_form
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/parsers/pdf/idea_pdf_template_reader.rb:225
↓ 23 callersFunctiondefinePermissionRule
( resourceType: TResourceType, action: TAction, rule: PermissionRule )
front/app/utils/permissions/permissions.ts:38
↓ 23 callersMethodmerge!
(users, project_sets: nil)
back/app/services/user_reduce_service.rb:44
↓ 23 callersMethodomniauth_setup
@param [AppConfiguration] configuration
back/engines/commercial/custom_id_methods/app/lib/custom_id_methods/acm/acm_omniauth.rb:38
↓ 23 callersFunctionparseBackendDateString
(_dateString: string)
front/app/utils/dateUtils.ts:302
↓ 23 callersFunctionparsePopulationValue
(value: string)
front/app/utils/representativeness/options.ts:17
↓ 23 callersMethodremove
(errors, attribute, message = :invalid, options = {})
back/app/services/errors_service.rb:4
↓ 23 callersMethodrender_data_images_multiloc
Applies {#render_data_images} to each multiloc value in the given multiloc.
back/app/services/content_image_service.rb:110
↓ 23 callersFunctionrequestBlob
( url: string, type: | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' | 'text
front/app/utils/requestBlob.ts:6
↓ 23 callersFunctionserialize
()
front/app/containers/Admin/projects/project/insights/word/WordExportableInsight.tsx:33
↓ 22 callersMethodbefore_create
(idea, user)
back/app/services/side_fx_idea_service.rb:12
↓ 22 callersFunctionboolean
(value: unknown)
front/app/components/admin/PostManager/useInputManagerSearchParams.ts:203
↓ 22 callersMethodcall
(activity)
back/engines/commercial/webhooks/app/services/webhooks/enqueue_service.rb:5
↓ 22 callersMethodcan_moderate?
(target = nil)
back/app/policies/application_policy.rb:21
↓ 22 callersFunctionconvertUrlToUploadFile
( url: string, fileId?: string | null, filename?: string | null )
front/app/utils/fileUtils.ts:54
↓ 22 callersMethoddefault_fields
(_custom_form)
back/lib/participation_method/base.rb:74
↓ 22 callersMethodexport
( project, local_copy: false, include_ideas: false, max_ideas: nil, anonymize_users: true,
back/app/services/project_copy_service.rb:29
↓ 22 callersMethodmethod_str
back/lib/participation_method/poll.rb:5
↓ 22 callersFunctiononChange
(assigneeOption: TAssigneeOption)
front/app/modules/commercial/idea_assignment/admin/components/AssigneeFilter.tsx:91
↓ 22 callersFunctiononClick
(event: React.MouseEvent)
front/app/components/IdeaButton/index.tsx:102
↓ 22 callersFunctiononSubmit
(event: React.FormEvent)
front/app/containers/Admin/projects/new/ProjectSetupForm.tsx:250
↓ 22 callersMethodpopulate_types
back/engines/commercial/analytics/app/services/analytics/populate_dimensions_service.rb:13
↓ 22 callersFunctionrangesValid
( { from, to }: Partial<DateRange>, disabledRanges: DateRange[] )
front/app/components/admin/DatePickers/DatePhasePicker/Calendar/utils/rangesValid.ts:29
↓ 22 callersMethodremote_ip
back/config/initializers/rack_attack.rb:13
↓ 22 callersFunctionvalidateMultilocForEveryLocale
(message: string)
front/app/utils/yup/validateMultilocForEveryLocale.ts:8
↓ 21 callersMethodavatar
back/app/serializers/web_api/v1/external/user_serializer.rb:6
↓ 21 callersFunctioncreate_field_before
(sym, form)
back/spec/tasks/single_use/migrate_forms_separate_title_description_pages_spec.ignore.rb:219
↓ 21 callersFunctiongetInputTermMessage
( inputType: InputTerm, messages: IInputTermMessages )
front/app/utils/i18n.ts:14
↓ 21 callersFunctionroundPercentage
(num: number, denom: number, decimals = 0)
front/app/utils/math.ts:3
↓ 20 callersMethodadmin?
back/app/services/user_display_name_service.rb:92
↓ 20 callersMethodassign_defaults_for_phase
back/lib/voting_method/base.rb:9
↓ 20 callersMethodban!
(email, reason: nil, banned_by: nil)
back/app/models/email_ban.rb:37
↓ 20 callersMethodcontent_buildable
back/engines/commercial/content_builder/app/controllers/content_builder/web_api/v1/content_builder_layouts_controller.rb:33
↓ 20 callersMethodcustom_fields
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/extractors/user_extractor.rb:31
↓ 20 callersMethoddrop
()
front/cypress/support/dnd.ts:20
↓ 20 callersFunctionkeys
(obj: T)
front/app/utils/helperUtils.ts:176
↓ 20 callersFunctiononChange
(inputValue: string)
front/app/components/admin/InternalComments/InternalChildCommentForm.tsx:146
↓ 20 callersMethodproject_id
back/engines/commercial/custom_maps/app/models/custom_maps/map_config.rb:50
↓ 20 callersMethodsupports_serializing?
(attribute)
back/lib/voting_method/base.rb:41
↓ 20 callersFunctiontruncate
(str: string, length?: number)
front/app/component-library/utils/textUtils.ts:1
↓ 20 callersFunctionupdatePermission
({ adminJwt, phaseId, permitted_by, user_fields_in_form, user_data_collection, permission = 'posti
front/cypress/support/permitted_by_utils.ts:89
↓ 20 callersFunctionuseUserCustomFields
(queryParameters?: IQueryParameters)
front/app/api/user_custom_fields/useUserCustomFields.ts:20
↓ 19 callersMethodbefore_destroy
(resource, user)
back/app/services/base_side_fx_service.rb:18
↓ 19 callersMethodbudget_in_form?
(_user)
back/lib/voting_method/base.rb:21
↓ 19 callersFunctioncreateBreakdownTable
( items: WordBreakdownItem[], options: BreakdownTableOptions = {} )
front/app/utils/word/converters/breakdownBarConverter.ts:36
↓ 19 callersFunctiondetermineNextPageNumber
({ pages, currentPage, formData, }: { pages: Pages; currentPage: IFlatCustomField; formData?: Reco
front/app/components/CustomFieldsForm/SurveyForm/logic.ts:95
← previousnext →201–300 of 15,961, ranked by callers