MCPcopy Create free account

hub / github.com/CitizenLabDotCo/citizenlab / functions

Functions15,961 in github.com/CitizenLabDotCo/citizenlab

↓ 14 callersFunctiongetCanonicalLink
()
front/app/utils/cl-router/getCanonicalLink.tsx:13
↓ 14 callersMethodhandle_title
Fallback to another locale title if current locale is missing
back/app/services/custom_field_service.rb:113
↓ 14 callersMethodheaders
back/app/services/segment_regulations_client.rb:71
↓ 14 callersFunctionindices
(n: number)
front/app/utils/helperUtils.ts:183
↓ 14 callersMethodinputs
The inputs of an analysis are those inputs that were created according to the form definition of the project or phase assigned to the analysis, that a
back/engines/commercial/analysis/app/models/analysis/analysis.rb:58
↓ 14 callersFunctionisTopBarNavActive
( basePath: string, pathname: string, tabUrl: string )
front/app/utils/helperUtils.ts:157
↓ 14 callersFunctiononChange
(event: ChangeEvent<HTMLInputElement>)
front/app/components/UI/FileUploader/FileInput.tsx:178
↓ 14 callersMethodpage?
back/app/models/nav_bar_item.rb:89
↓ 14 callersMethodproject_id
back/app/services/community_monitor_service.rb:8
↓ 14 callersMethodquestion_category
back/app/models/custom_field.rb:353
↓ 14 callersMethodresolve
back/engines/free/email_campaigns/app/policies/email_campaigns/consent_policy.rb:6
↓ 14 callersFunctionrun_task
(host: Tenant.current.host, idea_id: idea.id, n_reactions: 2)
back/engines/commercial/multi_tenancy/spec/tasks/demos/create_n_up_reactions_spec.rb:19
↓ 14 callersFunctionsetParam
( paramName: ParamName, paramValue: Parameters[ParamName] )
front/app/containers/Admin/projects/all/_shared/params.ts:35
↓ 14 callersMethodsuccess?
back/engines/commercial/idea_custom_fields/app/services/idea_custom_fields/update_all_service.rb:348
↓ 14 callersFunctionsum
(values: number[])
front/app/utils/math.ts:1
↓ 14 callersMethodsupports_survey_form?
back/lib/participation_method/base.rb:190
↓ 14 callersMethodtop_n
(n = 5, scope = Idea.all)
back/app/services/idea_feed/feed_service.rb:13
↓ 14 callersFunctionuseContentBuilderLayout
( contentBuildableType: ContentBuildableType = 'homepage', contentBuildableId: string = 'homepage', enab
front/app/api/content_builder/useContentBuilderLayout.ts:40
↓ 14 callersFunctionuseGraphDataUnits
( parameters: ParametersLive, { enabled = true, onSuccess }: Options = { enabled: true } )
front/app/api/graph_data_units/useGraphDataUnits.ts:59
↓ 14 callersFunctionuseInputTopics
( projectId?: string, filters?: InputTopicsParams['filters'] )
front/app/api/input_topics/useInputTopics.ts:27
↓ 14 callersFunctionuseProjectBySlug
(slug?: string | null)
front/app/api/projects/useProjectBySlug.ts:13
↓ 14 callersFunctionuseProjectMapConfig
(projectId?: string)
front/app/api/map_config/useProjectMapConfig.ts:15
↓ 14 callersFunctionvalidateAtLeastOneLocale
( message: string, { validateEachNonEmptyLocale }: Props = { validateEachNonEmptyLocale: (schema) => s
front/app/utils/yup/validateAtLeastOneLocale.ts:8
↓ 14 callersMethodvalue_from
(model)
back/app/services/export/custom_field_for_export.rb:19
↓ 14 callersMethodversions
back/app/serializers/web_api/v1/external/image_serializer.rb:6
↓ 13 callersMethodafter_create
(tag, user)
back/engines/commercial/analysis/app/services/analysis/side_fx_tag_service.rb:7
↓ 13 callersMethodbefore_create
(analysis, _user)
back/engines/commercial/analysis/app/services/analysis/side_fx_analysis_service.rb:7
↓ 13 callersMethodcall
--- TEMPLATE METHOD (Instance Method) --- This method defines the immutable workflow for all child services.
back/app/services/insights/base_phase_insights_service.rb:11
↓ 13 callersFunctioncapitalize
(string: string)
front/app/utils/textUtils.ts:6
↓ 13 callersMethodcomments
back/engines/commercial/analysis/app/lib/analysis/comments_summarization_method/base.rb:39
↓ 13 callersMethodcomments_count
back/engines/commercial/analysis/app/models/analysis/comments_summary.rb:46
↓ 13 callersMethodexecute
back/engines/commercial/multi_tenancy/db/seeds/runner.rb:70
↓ 13 callersMethodexport
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/exporters/base_form_exporter.rb:13
↓ 13 callersFunctionformatCountValue
(count: number)
front/app/components/admin/GraphCards/_utils/parse.ts:6
↓ 13 callersMethodgenerate_bins
Generates the bins for a given custom_field. Does nothing if they already exist. Should be overriden in subclasses and call super to ensure the defaul
back/app/models/custom_field_bin.rb:63
↓ 13 callersFunctiongetPermissionsDisabledMessage
( action: ActionDescriptorAction, disabledReason: DisabledReason | null | undefined, notFixableOnly?: bo
front/app/utils/actionDescriptors/index.ts:139
↓ 13 callersMethodheader_bg
back/app/serializers/web_api/v1/external/project_serializer.rb:12
↓ 13 callersMethodheaders
back/engines/commercial/matomo/app/services/matomo/client.rb:133
↓ 13 callersMethodincrement_if_necessary
(updated_user, current_user)
back/app/services/additional_seats_incrementer.rb:15
↓ 13 callersMethodindex
back/engines/commercial/admin_api/app/controllers/admin_api/areas_controller.rb:5
↓ 13 callersFunctionisLineOrPolygonInput
(inputType: MapInputType)
front/app/components/CustomFieldsForm/Fields/MapField/multiPointUtils.tsx:27
↓ 13 callersFunctionisProjectModerator
( user: IUser | undefined | null, projectId?: string )
front/app/utils/permissions/roles.ts:75
↓ 13 callersFunctionisSpaceModerator
( user: IUser | undefined | null, spaceId?: string )
front/app/utils/permissions/roles.ts:92
↓ 13 callersMethodlinkify_multiloc
Turns URLs in text into HTML links @param multiloc [Hash] A multiloc hash, its values will be linkified. @return [Hash] The multiloc hash with it's co
back/app/services/sanitization_service.rb:66
↓ 13 callersMethodmoderatable_project_ids
Returns an array of project IDs that the user, other than an admin, moderates, either directly, through a folder, or through a space. Admins can alway
back/app/models/concerns/user_roles.rb:179
↓ 13 callersMethodmoderates_something?
(user)
back/app/services/user_role_service.rb:89
↓ 13 callersMethodon_new_input
back/app/services/idea_feed/topic_modeling_scheduler.rb:32
↓ 13 callersMethodordered_transformed_options
back/app/models/custom_field.rb:329
↓ 13 callersMethodpage
(results)
back/engines/commercial/analytics/app/services/analytics/query_runner_service.rb:143
↓ 13 callersMethodparticipation_method
back/app/services/permissions/phase_permissions_service.rb:213
↓ 13 callersMethodperform
(delivery)
back/engines/commercial/webhooks/app/jobs/webhooks/delivery_job.rb:37
↓ 13 callersMethodproject_id
back/engines/commercial/public_api/app/serializers/public_api/v2/basket_serializer.rb:12
↓ 13 callersMethodproject_title_multiloc
back/app/serializers/web_api/v1/external/phase_serializer.rb:18
↓ 13 callersMethodprojects
Return a list of projects, with phases and content
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/extractors/project_extractor.rb:12
↓ 13 callersFunctionregisterDestination
(destinationConfig: IDestinationConfig)
front/app/components/ConsentManager/destinations.ts:40
↓ 13 callersFunctionreject
()
front/app/components/ConsentManager/ConsentManagerModal/index.tsx:111
↓ 13 callersMethodstart_date
back/app/models/phase.rb:257
↓ 13 callersFunctiontoMultiloc
( message: MessageDescriptor, values?: FormatMessageValues )
front/app/containers/Admin/reporting/components/ReportBuilder/Templates/PlatformTemplate/index.tsx:169
↓ 13 callersMethodupdate
back/engines/commercial/moderation/app/controllers/moderation/web_api/v1/moderations_controller.rb:20
↓ 13 callersMethodupdate_counts!
back/app/models/basket.rb:61
↓ 13 callersFunctionuseAnalysisFilterParams
()
front/app/containers/Admin/projects/project/analysis/hooks/useAnalysisFilterParams.ts:35
↓ 13 callersFunctionuseParam
( paramName: ParamName )
front/app/containers/Admin/projects/all/_shared/params.ts:49
↓ 13 callersFunctionuseProjects
( { pageNumber, pageSize, sort, areas, publicationStatuses, canModerate, project
front/app/api/projects/useProjects.ts:16
↓ 13 callersMethoduser_to_mention
(user)
back/app/services/mention_service.rb:6
↓ 13 callersMethodvisit_multiselect
(_field)
back/spec/models/custom_field_spec.rb:42
↓ 12 callersMethodaction_descriptors
back/app/services/permissions/idea_permissions_service.rb:60
↓ 12 callersMethodbeginning_of_day
(param)
back/lib/finder/helpers.rb:20
↓ 12 callersFunctioncreate_ai_file
Helper method to create a file with AI processing allowed, but without queuing a description generation job.
back/spec/services/files/description_generator_spec.rb:14
↓ 12 callersFunctioncreate_field
(ordering:)
back/spec/models/concerns/bulk_reorderable_spec.rb:10
↓ 12 callersMethodcurrent_or_backup_transitive_phase
(project, time = Time.now)
back/app/services/timeline_service.rb:36
↓ 12 callersMethodcustom_field_bins
(custom_field)
back/engines/commercial/analysis/app/services/analysis/auto_insights_service.rb:191
↓ 12 callersFunctionenterUserInfo
( cy: Cypress.Chainable, { firstName = randomString(), lastName = randomString(), password = r
front/cypress/support/auth.ts:43
↓ 12 callersFunctionexecute_cached_action
Helper to execute the caching around_action callbacks
back/spec/controllers/concerns/action_caching_spec.rb:58
↓ 12 callersFunctionexpect_user_rnn_result
(user, expected_result)
back/engines/commercial/custom_id_methods/spec/requests/acm_verification_spec.rb:111
↓ 12 callersFunctionexpect_user_to_be_verified
(user)
back/engines/commercial/custom_id_methods/spec/requests/acm_verification_spec.rb:87
↓ 12 callersMethodfollowable_type
back/app/controllers/web_api/v1/followers_controller.rb:45
↓ 12 callersMethodform
(form_id:)
back/engines/free/surveys/lib/surveys/typeform/api.rb:72
↓ 12 callersFunctiongenerateModifiers
({ selectedRange, disabledRanges, }: GenerateModifiersParams)
front/app/components/admin/DatePickers/DatePhasePicker/Calendar/utils/generateModifiers.ts:21
↓ 12 callersFunctiongetLocalisedDateString
(dateString: string | null | undefined)
front/app/utils/dateUtils.ts:287
↓ 12 callersFunctiongetPlainTextLengthFromHTML
( html: string | null | undefined )
front/app/components/UI/QuillEditor/utils.ts:18
↓ 12 callersMethodhash_array_to_xlsx
(hash_array)
back/app/services/xlsx_service.rb:10
↓ 12 callersMethodhour_of_day
(time_obj)
back/app/services/localization_service.rb:7
↓ 12 callersMethodideas_participants
(ideas, options = {})
back/app/services/participants_service.rb:25
↓ 12 callersFunctioninsertConfiguration
({ configuration, insertAfterName, insertBeforeName, }: InsertConfigurationOptions<T>)
front/app/utils/moduleUtils.tsx:310
↓ 12 callersFunctionisSuperAdmin
(user: IUser | undefined | null)
front/app/utils/permissions/roles.ts:63
↓ 12 callersMethodlog
(message)
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/importers/project_importer.rb:492
↓ 12 callersMethodprocess_field_value
Normalizes a field's value based on its input_type. Callers are expected to pre-process selection-type values into arrays and matrix values into hashe
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/parsers/idea_row_mapper.rb:49
↓ 12 callersFunctionremoveUrlLocale
(pathname: string)
front/app/utils/removeUrlLocale.ts:9
↓ 12 callersMethodresponse
back/app/services/custom_free_prompt_service.rb:11
↓ 12 callersFunctionrun_task
(execute: false, host: Tenant.current.host, locale: 'nl-NL')
back/engines/commercial/multi_tenancy/spec/tasks/demos/translate_analysis_tags_spec.rb:15
↓ 12 callersMethodsanitize_multiloc
(multiloc)
back/app/models/custom_form.rb:53
↓ 12 callersMethodshow_public_profile?
back/app/models/user.rb:330
↓ 12 callersFunctionstripHash
(color: string)
front/app/utils/word/utils/styleConstants.ts:8
↓ 12 callersMethodsubject_multiloc
For customisable regions we merge in the defaults for multilocs.
back/engines/free/email_campaigns/app/models/concerns/email_campaigns/content_configurable.rb:30
↓ 12 callersMethodsupported_email_campaigns
back/lib/participation_method/base.rb:97
↓ 12 callersFunctiontestEnv
(input: any)
front/app/component-library/utils/testUtils/testEnv.ts:1
↓ 12 callersFunctiontestShowModalOnAddingModerator
(previousNoOfUsedSeats: number)
front/cypress/e2e/admin/users/seat-billing.cy.ts:172
↓ 12 callersMethodtotal_visits
Totals only needs the sessions
back/app/services/insights/visits_service.rb:12
↓ 12 callersFunctionuseAnalyses
(params: IAnalysesQueryParams)
front/app/api/analyses/useAnalyses.ts:27
↓ 12 callersFunctionuseAreas
(queryParams: IAreasQueryParams)
front/app/api/areas/useAreas.ts:34
← previousnext →401–500 of 15,961, ranked by callers