MCPcopy Create free account

hub / github.com/CitizenLabDotCo/citizenlab / functions

Functions15,961 in github.com/CitizenLabDotCo/citizenlab

↓ 19 callersMethodfind_records
back/lib/finder/base.rb:20
↓ 19 callersFunctionformatCurrency
( locale: SupportedLocale, currency: TCountryCurrency | undefined, amount: number, { maximumFractionDi
front/app/utils/currency/formatCurrency.ts:5
↓ 19 callersFunctiononClose
()
front/app/containers/App/ModalQueue/modals/CommunityMonitor/Modal.tsx:27
↓ 19 callersFunctionperform_update
Runs `update_in_sso!` against a doubled authver method whose behaviour is configured by the table columns.
back/spec/services/user_service_spec.rb:117
↓ 19 callersMethodrand_description_multiloc
back/engines/commercial/multi_tenancy/db/seeds/runner.rb:173
↓ 19 callersMethodremove_empty_trailing_tags
Remove any empty `EDITOR_STRUCTURE_TAGS` positioned as last children of an html string and returns the resulting html string. ===== Examples sanitat
back/app/services/sanitization_service.rb:49
↓ 19 callersMethodreset
back/app/models/app_configuration.rb:89
↓ 19 callersMethodrun
back/engines/commercial/analytics/app/services/analytics/query.rb:40
↓ 19 callersFunctionsectionsToDocxBlob
( sections: WordSection[], options: RendererOptions = {} )
front/app/containers/Admin/projects/project/insights/word/wordRenderer.ts:32
↓ 19 callersMethodswitch!
back/engines/commercial/multi_tenancy/app/models/tenant.rb:160
↓ 19 callersFunctionuseAdminPublications
( queryParams: IQueryParameters, { enabled = true } = {} )
front/app/api/admin_publications/useAdminPublications.ts:49
↓ 18 callersMethodcall
(env)
back/engines/commercial/multi_tenancy/config/initializers/apartment.rb:113
↓ 18 callersMethodcreate_default_form!
back/lib/participation_method/base.rb:61
↓ 18 callersMethodcreate_for_tenant_locales
@return[Hash] A multiloc hash with translations
back/engines/commercial/multi_tenancy/db/seeds/runner.rb:160
↓ 18 callersMethodevent
back/engines/free/email_campaigns/app/mailers/email_campaigns/application_mailer.rb:53
↓ 18 callersMethodgenerate
(unit: 'inputs', tags: detect_tags, user_custom_fields: detect_user_custom_fields, input_custom_fields: detect
back/engines/commercial/analysis/app/services/analysis/auto_insights_service.rb:15
↓ 18 callersFunctiongetJwt
()
front/app/utils/auth/jwt.ts:18
↓ 18 callersMethodrecord
back/engines/commercial/mcp_server/app/lib/mcp_server/tools/update_resource.rb:94
↓ 18 callersMethodresolve
back/engines/commercial/report_builder/app/policies/report_builder/report_policy.rb:6
↓ 18 callersFunctionsignUpEmailConformation
( cy: Cypress.Chainable, email: string = randomEmail() )
front/cypress/support/auth.ts:35
↓ 18 callersMethodtransfer
(visitor_hash:, user:)
back/app/services/idea_exposure_transfer_service.rb:13
↓ 18 callersFunctionupdateIdea
({ id, requestBody }: IUpdateIdeaObject)
front/app/api/ideas/useUpdateIdea.ts:23
↓ 17 callersMethodauthor_in_form?
(_user)
back/lib/participation_method/base.rb:49
↓ 17 callersMethodauthor_name
back/app/models/idea.rb:405
↓ 17 callersMethodcache_store
back/app/controllers/concerns/action_caching.rb:84
↓ 17 callersFunctioncreate_project
( start_at: nil, end_at: nil, start_at2: nil, end_at2: nil, created_at: nil )
back/spec/services/projects_finder_admin_service_spec.rb:4
↓ 17 callersMethodencode
(card_id)
back/engines/commercial/custom_id_methods/app/services/custom_id_methods/id_card_lookup/id_card_service.rb:5
↓ 17 callersMethodfilters
(filter_params = params)
back/engines/commercial/analysis/app/controllers/concerns/analysis/filter_params_extraction.rb:10
↓ 17 callersFunctiongetInputTerm
( phases: IPhaseData[] | undefined, phase?: IPhaseData | undefined | null | Error )
front/app/api/phases/utils.ts:138
↓ 17 callersFunctiongetLowerBoundLimits
(bins: Bins, binIndex: number)
front/app/utils/representativeness/bins.ts:62
↓ 17 callersFunctiongetMethodConfig
( participationMethod: ParticipationMethod, setting?: { showIdeaFilters?: boolean } )
front/app/utils/configs/participationMethodConfig/index.tsx:387
↓ 17 callersMethodimport
(template, folder: nil, local_copy: false)
back/app/services/project_copy_service.rb:4
↓ 17 callersMethodimport
(idea_rows)
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/importers/idea_importer.rb:8
↓ 17 callersMethodlast_name!
nil-friendly version of #last_name. Returns nil when 'user' is nil without logging a warning. @param [User, nil] user @return [String]
back/app/services/user_display_name_service.rb:62
↓ 17 callersFunctiononSubmit
({ formValues, isSubmitPage, }: { formValues: FormValues; isSubmitPage: boolean; })
front/app/components/CustomFieldsForm/SurveyForm/index.tsx:69
↓ 17 callersMethodproject_folder_moderator?
(project_folder_id = nil)
back/app/models/concerns/user_roles.rb:156
↓ 17 callersMethodstats
back/app/services/common_ground/results_service.rb:32
↓ 17 callersMethodsupports_reacting?
@param mode [String, nil] One of the values in Reaction::MODES. If nil, checks whether any reaction modes are supported.
back/lib/participation_method/base.rb:163
↓ 17 callersFunctionuseCommunityMonitorProject
({ enabled, }: UseCommunityMonitorProjectOptions)
front/app/api/community_monitor/useCommunityMonitorProject.ts:21
↓ 16 callersMethodaccuracy
Float in 0..1 that denotes how relatively accurate the llm is. 1 would be perfect accuracy.
back/engines/commercial/analysis/app/lib/analysis/LLM/base.rb:32
↓ 16 callersMethodattributes
(record)
back/engines/commercial/mcp_server/app/lib/mcp_server/serializers/base.rb:97
↓ 16 callersMethodbelongs_to
(_preloaded = {})
back/engines/commercial/moderation/app/models/moderation/moderation.rb:57
↓ 16 callersMethodconstraints
back/lib/participation_method/base.rb:57
↓ 16 callersFunctiongetColor
({ checkedColor, checkedOrIndeterminate, element, usePrimaryBorder = false, }: Props)
front/app/component-library/components/Checkbox/utils.tsx:18
↓ 16 callersFunctiongetPercentageDifference
( thisPeriodAvg?: number | null, lastPeriodAvg?: number | null )
front/app/components/admin/FormResults/FormResultsQuestion/SentimentQuestion/utils.tsx:91
↓ 16 callersMethodmime_type
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/exporters/base_form_exporter.rb:21
↓ 16 callersFunctionmodalQueueReducer
( state: ModalQueueState, action: ModalQueueAction )
front/app/containers/App/ModalQueue/modalQueueReducer.ts:24
↓ 16 callersFunctionname
back/engines/commercial/smart_groups/spec/models/email_campaigns/concerns/recipient_configurable_spec.rb:9
↓ 16 callersMethodoutput_schema
Returns a JSON Schema hash for structured LLM output
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/parsers/pdf/form_sync_schema_builder.rb:15
↓ 16 callersMethodrun
We use YAML to pass the template data to the job to be able to preserve the internal references (that are encoded with anchors and aliases in the YAML
back/engines/commercial/admin_api/app/jobs/admin_api/copy_project_job.rb:11
↓ 16 callersMethodslugify
(str)
back/app/services/slug_service.rb:62
↓ 16 callersMethodspace_moderator?
(space_id = nil)
back/app/models/concerns/user_roles.rb:168
↓ 16 callersFunctionuseAnalysis
(id: string)
front/app/api/analyses/useAnalysis.ts:12
↓ 16 callersFunctionusePermission
({ item, action, context, }: { item: TPermissionItem | null; action: string; context?: any; })
front/app/utils/permissions/permissions.ts:55
↓ 16 callersMethodxlsx_to_hash_array
Converts this xlsx: | name | size | age | | Ron | xl | | | John | | 35 | into this hash array: [{'name' => 'Ron', 'size' => 'xl'), {'n
back/app/services/xlsx_service.rb:34
↓ 15 callersMethodadd_feature
@param [CitizenLab::Mixins::FeatureSpecification] specification
back/app/models/app_configuration.rb:71
↓ 15 callersMethodadd_node
rubocop:disable Metrics/ParameterLists
back/engines/commercial/content_builder/app/services/content_builder/craftjs/state.rb:15
↓ 15 callersMethodadd_span_around
@param [String] text @param [User] user @return [String] text with plain mentions replaced by mention tags.
back/app/services/mention_service.rb:24
↓ 15 callersMethodauthor_name
back/engines/free/email_campaigns/app/mailers/email_campaigns/mention_in_official_feedback_mailer.rb:38
↓ 15 callersMethodbase_frontend_uri
back/app/models/app_configuration.rb:173
↓ 15 callersMethodcheck
(password)
back/app/models/common_password.rb:31
↓ 15 callersMethodclosest_locale_to
(locale)
back/app/models/app_configuration.rb:147
↓ 15 callersFunctioncreateEmptyParagraph
(height?: number)
front/app/utils/word/converters/textConverter.ts:90
↓ 15 callersMethodcurrent_campaign
(user)
back/engines/free/onboarding/app/services/onboarding/onboarding_service.rb:9
↓ 15 callersMethoddeserialize
(template, validate: true, max_time: nil, local_copy: false)
back/engines/commercial/multi_tenancy/app/services/multi_tenancy/templates/tenant_deserializer.rb:22
↓ 15 callersMethoddown
back/db/migrate/20210119144531_add_que.rb:9
↓ 15 callersMethodend_at
back/engines/commercial/public_api/app/serializers/public_api/v2/phase_serializer.rb:32
↓ 15 callersMethodfind_by_cimail
Returns the user record from the database which matches the specified email address (case-insensitive) or `nil`. @param email [String] The email of th
back/app/models/user.rb:100
↓ 15 callersMethodfuture_enabled_phase
Future enabled phases
back/app/services/permissions/project_permissions_service.rb:30
↓ 15 callersMethodgenerate_slug
(record, string, excluded: [])
back/app/services/slug_service.rb:6
↓ 15 callersMethodgenerate_tree
back/app/services/tree_view_service.rb:8
↓ 15 callersMethodhighest_role
back/app/models/concerns/user_roles.rb:132
↓ 15 callersMethodin_any_groups?
(groups_to_check)
back/app/models/concerns/user_groups.rb:34
↓ 15 callersMethodinspect
back/app/services/invites/invite_error.rb:30
↓ 15 callersFunctionisDraft
(campaign: ICampaignData)
front/app/api/campaigns/util.ts:3
↓ 15 callersFunctionisEmptyMultiloc
(multiloc: Multiloc)
front/app/utils/helperUtils.ts:24
↓ 15 callersMethodmembers
back/app/models/group.rb:66
↓ 15 callersFunctiononChange
(option)
front/app/components/CustomFieldsForm/Fields/ImageMultichoiceField/index.tsx:81
↓ 15 callersFunctionparseMargin
( margin: Margin | undefined, legend: Legend | undefined, legendDimensions: LegendDimensions | undefined
front/app/components/admin/Graphs/utils.ts:35
↓ 15 callersMethodproject_id
back/engines/free/polls/app/models/polls/response.rb:70
↓ 15 callersMethodremove_multiloc_empty_trailing_tags
(multiloc)
back/app/services/sanitization_service.rb:36
↓ 15 callersMethodreport
Avoid passing manually created errors here like `ErrorReporter.report(RuntimeError.new('message')` (though it would work), because it does not contain
back/lib/error_reporter.rb:60
↓ 15 callersFunctionreportError
(error: any)
front/app/utils/loggingUtils.ts:15
↓ 15 callersMethodrules
back/engines/commercial/smart_groups/app/services/concerns/smart_groups/rulable_service.rb:12
↓ 15 callersFunctionrun_task
(execute: false, host: Tenant.current.host, locale: 'nl-BE')
back/engines/commercial/multi_tenancy/spec/tasks/demos/translate_slugs_spec.rb:15
↓ 15 callersFunctionscrollToElement
({ id, behavior, offset, shouldFocus, }: IScrollToElementParams)
front/app/utils/scroll.ts:10
↓ 15 callersMethodsuccess?
back/app/services/user_confirmation_service.rb:28
↓ 15 callersMethodsupports_public_visibility?
back/lib/participation_method/base.rb:157
↓ 15 callersFunctionuseIdeaStatuses
({ enabled = true, queryParams, }: { enabled?: boolean; queryParams: IdeaStatusesQueryParams; })
front/app/api/idea_statuses/useIdeaStatuses.ts:20
↓ 15 callersFunctionuseProjectFolderById
(projectFolderId?: string | null)
front/app/api/project_folders/useProjectFolderById.ts:15
↓ 14 callersMethodall_fields
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/exporters/idea_html_form_exporter.rb:30
↓ 14 callersMethodcalculate
Calculates age statistics for a set of users or custom field values @param [ActiveRecord::Relation, Array<Hash>] records_or_values - Either: - ActiveR
back/engines/commercial/user_custom_fields/app/models/user_custom_fields/age_stats.rb:20
↓ 14 callersFunctionconfigure_locales
(locales)
back/engines/commercial/multi_tenancy/spec/tasks/replace_de_at_with_de_de_task_spec.rb:18
↓ 14 callersFunctionconfigure_locales
(locales)
back/engines/commercial/multi_tenancy/spec/tasks/replace_de_de_with_de_at_task_spec.rb:18
↓ 14 callersFunctioncreateMultiloc
( locales: SupportedLocale[], getValue: (locale: SupportedLocale) => string )
front/app/hooks/useAppConfigurationLocales.ts:19
↓ 14 callersMethoddelete_all
back/engines/commercial/bulk_import_ideas/app/controllers/bulk_import_ideas/web_api/v1/bulk_import_controller.rb:95
↓ 14 callersMethodend_date
back/app/models/phase.rb:261
↓ 14 callersFunctionfetch
(customFieldId?: string)
front/app/api/user_custom_fields/useUserCustomField.ts:9
↓ 14 callersMethodgenerate_results
Get the results for all survey questions
back/app/services/surveys/results_generator.rb:30
↓ 14 callersFunctiongetAlternateLinks
( tenantLocales: SupportedLocale[] | undefined )
front/app/utils/cl-router/getAlternateLinks.tsx:9
← previousnext →301–400 of 15,961, ranked by callers