MCPcopy Create free account

hub / github.com/CitizenLabDotCo/citizenlab / functions

Functions15,961 in github.com/CitizenLabDotCo/citizenlab

↓ 7 callersMethodfilter_by_bin
Returns the given ActiveRecord scope, filtered for items that are in this bin The resource covered by the scope needs to have a `custom_field_values`
back/app/models/custom_field_bin.rb:51
↓ 7 callersFunctionfindRowLink
()
front/app/containers/Admin/projects/all/Projects/Table/Row.test.tsx:71
↓ 7 callersMethodfor_homepage_filter
(current_user)
back/app/services/projects_filtering_service.rb:9
↓ 7 callersFunctionformatDate
(dateString: string)
front/app/components/admin/GraphCards/_utils/query.ts:17
↓ 7 callersMethodgenerate_ics
(events, preferred_locale)
back/app/services/events/ics_generator.rb:10
↓ 7 callersMethodgenerate_rules_json_schema
back/engines/commercial/smart_groups/app/services/smart_groups/rules_service.rb:79
↓ 7 callersMethodgenerate_xlsx
( phase, volunteers, view_private_attributes: false )
back/engines/free/volunteering/app/services/volunteering/xlsx_service.rb:7
↓ 7 callersFunctiongetActiveDestinations
( appConfiguration: IAppConfigurationData | NilOrError, authUser: IUserData | undefined | null )
front/app/components/ConsentManager/utils.ts:48
↓ 7 callersFunctiongetGmtOffset
( timeZone: string | undefined, tenantTimeNow: Date, selectedDate?: Date )
front/app/utils/dateUtils.ts:346
↓ 7 callersFunctiongetIdeaPostingRules
({ project, phase, authUser, }: { project: IProjectData | null | undefined; phase: IPhaseData | unde
front/app/utils/actionTakingRules.ts:127
↓ 7 callersFunctiongetLatestRelevantPhase
(phases: IPhaseData[])
front/app/api/phases/utils.ts:79
↓ 7 callersFunctiongetLocale
(localeName: SupportedLocale)
front/app/components/admin/DatePickers/_shared/locales.ts:10
↓ 7 callersFunctiongetMapPinSymbol
({ color, sizeInPx }: MapPinSymbolProps)
front/app/components/EsriMap/utils.tsx:106
↓ 7 callersFunctiongetMapZoom
(mapZoom: number, scale: number)
front/app/utils/mapUtils/map.ts:111
↓ 7 callersFunctiongetPreciseOffsetInQuarters
(cells: Date[], eventStart: Date)
front/app/components/UI/GanttChart/utils.ts:218
↓ 7 callersFunctiongetRoutePattern
(pathname: string)
front/app/utils/getRoutePattern.ts:8
↓ 7 callersFunctiongraphqlFetcher
({ query, variables, }: GraphQLRequest)
front/app/modules/commercial/admin_project_templates/utils/graphqlFetcher.ts:15
↓ 7 callersMethodgroups
back/engines/commercial/analytics/app/services/analytics/query.rb:100
↓ 7 callersFunctionhandleMultiSelectChange
(propName: MultiSelectProp)
front/app/containers/Admin/reporting/components/ReportBuilder/Widgets/ProjectsTimelineWidget/Settings/index.tsx:97
↓ 7 callersFunctionhandleOnChange
(key: keyof ICustomPageAttributes, value: unknown)
front/app/containers/Admin/pagesAndMenu/containers/CustomPages/Edit/HeroBanner/index.tsx:196
↓ 7 callersFunctionhandleProjectAttributeDiffOnChange
( projectAttributesDiff: IUpdatedProjectProperties, submitState: ISubmitState = 'enabled' )
front/app/containers/Admin/projects/new/ProjectSetupForm.tsx:121
↓ 7 callersMethodincrement_progress
(progress = 1, error_count = 0)
back/app/models/jobs/tracker.rb:137
↓ 7 callersMethodinitialize!
back/app/models/common_password.rb:19
↓ 7 callersFunctioninitializeFor
(destination: IDestination)
front/app/utils/analytics.ts:52
↓ 7 callersFunctioninvalidateQueryCache
()
front/app/utils/cl-react-query/resetQueryCache.ts:9
↓ 7 callersMethodinvite_pending?
back/app/models/user.rb:263
↓ 7 callersFunctionisEmptyObject
(formValues: FormValues)
front/app/utils/representativeness/form.ts:120
↓ 7 callersFunctionisProjectFolderModerator
( user?: IUser | null, folderId?: string | null )
front/app/utils/permissions/rules/projectFolderPermissions.ts:42
↓ 7 callersFunctionisUnauthorizedRQ
(obj: unknown)
front/app/utils/errorUtils.ts:79
↓ 7 callersMethodlanguage_copy
back/lib/locale.rb:56
↓ 7 callersFunctionlegendColors
( legend: (string | number | null)[], colorScheme: string[] )
front/app/components/admin/Graphs/legendColors.ts:28
↓ 7 callersMethodlinkify
Turns URLs in text into HTML links @param html [String] Text that will be linkified. @return [String] The text with it's content being transformed int
back/app/services/sanitization_service.rb:75
↓ 7 callersMethodllm_class_for_use_case
(use_case_key, app_configuration = AppConfiguration.instance)
back/app/services/llm_selector.rb:85
↓ 7 callersMethodload
back/lib/email_domain_blacklist.rb:13
↓ 7 callersFunctionmakeGroup
( pageId: string, pageLogic: { next_page_id?: string } = {}, questions: IFlatCustomField[] )
front/app/components/FormBuilder/edit/utils.test.ts:220
↓ 7 callersMethodmigrate
(persist_changes)
back/lib/tasks/single_use/services/continuous_project_migration_service.rb:10
↓ 7 callersMethodminimal_required_settings
(locales: ['en'], lifecycle_stage: 'demo', country_code: 'BE')
back/app/services/settings_service.rb:88
↓ 7 callersFunctionmockElement
(name: string)
front/app/containers/Admin/projects/project/insights/word/wordRenderer.test.ts:10
↓ 7 callersMethodmoderatable_folder_ids
Returns an array of folder IDs that the user, other than an admin, moderates, either directly or through a space. Admins can always moderate all folde
back/app/models/concerns/user_roles.rb:201
↓ 7 callersMethodmoderators_for_project
Includes admins, project, folder and space moderators
back/app/services/user_role_service.rb:59
↓ 7 callersMethodnum_ideas
@return [Integer] Number of ideas to be seeded
back/engines/commercial/multi_tenancy/db/seeds/runner.rb:145
↓ 7 callersFunctionoptionIsUser
(option: Option)
front/app/components/UI/UserSelect/utils.ts:5
↓ 7 callersMethodoverlapping_phases
(phase)
back/app/services/timeline_service.rb:49
↓ 7 callersMethodparse_rows
(file)
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/parsers/idea_pdf_file_parser.rb:17
↓ 7 callersMethodpersist_default_fields
To create fields for the custom permitted_by - we copy the defaults from the previous value of permitted_by
back/app/services/permissions/permissions_custom_fields_service.rb:23
↓ 7 callersMethodprefix
back/app/services/user_fields_in_form_service.rb:171
↓ 7 callersMethodprintable_fields
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/exporters/idea_html_form_exporter.rb:26
↓ 7 callersMethodprocess_user_details
(fields, idea_row)
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/parsers/idea_row_mapper.rb:83
↓ 7 callersMethodprofile_to_user_attrs
(auth)
back/engines/commercial/custom_id_methods/app/lib/custom_id_methods/acm/acm_omniauth.rb:19
↓ 7 callersMethodprojects_for_areas
Returns an ActiveRecord collection of published projects, visible to user, that are also If :areas param: Returns all non-draft projects that are visi
back/app/services/projects_finder_service.rb:122
↓ 7 callersFunctionredirectToSSOProvider
( provider: SSOProvider, metaData: AuthenticationData, verification: boolean, flow: 'signup' | 'signin
front/app/api/authentication/singleSignOn.ts:51
↓ 7 callersMethodredirect_uri
(configuration)
back/engines/commercial/custom_id_methods/app/lib/custom_id_methods/nemlog_in/nemlog_in_omniauth.rb:144
↓ 7 callersMethodresolve
back/engines/free/volunteering/app/policies/volunteering/cause_policy.rb:6
↓ 7 callersMethodsanitize
(craftjson, text_features: %i[title alignment list decoration link image video])
back/engines/commercial/content_builder/app/services/content_builder/layout_sanitization_service.rb:5
↓ 7 callersMethodsave_examples
(campaigns_with_command)
back/engines/free/email_campaigns/app/services/email_campaigns/examples_service.rb:12
↓ 7 callersMethodsearch_blocked_words
(text)
back/app/services/profanity_service.rb:6
↓ 7 callersFunctionsetRef
(element: HTMLTextAreaElement)
front/app/components/admin/InternalComments/InternalChildCommentForm.tsx:207
↓ 7 callersMethodsort_trending
(ideas = Idea.all)
back/app/services/trending_idea_service.rb:9
↓ 7 callersMethodsummary_averages_by_quarter
back/app/services/surveys/average_generator.rb:28
↓ 7 callersMethodsupports_linear_scale?
back/lib/input_type_strategy/base.rb:41
↓ 7 callersFunctionsvgElementToImageBuffer
( svgElement: SVGElement, options: SvgToImageOptions = {} )
front/app/utils/word/utils/svgToImage.ts:18
↓ 7 callersMethodtitle_multiloc_with_fallback
back/app/models/nav_bar_item.rb:101
↓ 7 callersFunctiontoTitleMultiloc
( message: MessageDescriptor, variant: 'h1' | 'h3' )
front/app/containers/Admin/reporting/components/ReportBuilder/Templates/PlatformTemplate/index.tsx:178
↓ 7 callersMethodtoken_count
tiktoken_ruby doesn't know the gpt-5 series yet, so we can't derive the encoding from the model name. The gpt-5 series uses the same o200k_base encodi
back/engines/commercial/analysis/app/lib/analysis/LLM/gpt_54.rb:25
↓ 7 callersMethodtrack_activity
(activity)
back/app/services/track_intercom_service.rb:48
↓ 7 callersMethodtype
back/engines/free/onboarding/app/controllers/onboarding/web_api/v1/campaigns_controller.rb:13
↓ 7 callersFunctionupdateLocationDescriptor
( location: LocationDescriptorObject, locale: SupportedLocale )
front/app/utils/cl-router/updateLocationDescriptor.ts:13
↓ 7 callersFunctionupdatePhase
({ phaseId, ...requestBody }: UpdatePhaseObject)
front/app/api/phases/useUpdatePhase.ts:13
↓ 7 callersFunctionuseAddAnalysis
()
front/app/api/analyses/useAddAnalysis.ts:24
↓ 7 callersFunctionuseCampaign
(campaignId: string)
front/app/api/campaigns/useCampaign.ts:15
↓ 7 callersFunctionuseCampaigns
(queryParams: QueryParameters)
front/app/api/campaigns/useCampaigns.ts:31
↓ 7 callersFunctionuseCustomFieldOption
({ optionId, enabled = true, }: { optionId?: string; enabled?: boolean; })
front/app/api/custom_field_options/useCustomFieldOption.ts:15
↓ 7 callersFunctionuseDeleteIdea
()
front/app/api/ideas/useDeleteIdea.ts:21
↓ 7 callersFunctionuseIdeaBySlug
(slug: string | null | undefined)
front/app/api/ideas/useIdeaBySlug.ts:12
↓ 7 callersFunctionuseIdeaFiles
(ideaId?: string)
front/app/api/idea_files/useIdeaFiles.ts:15
↓ 7 callersFunctionuseInstanceId
()
front/app/component-library/hooks/useInstanceId.ts:5
↓ 7 callersFunctionuseLayout
()
front/app/containers/Admin/reporting/hooks/useLayout.ts:7
↓ 7 callersFunctionusePollOptions
(questionId: string)
front/app/api/poll_options/usePollOptions.ts:15
↓ 7 callersMethoduser_fields_in_form_descriptor
Attribute used in frontend to render access rights UI
back/app/models/permission.rb:115
↓ 7 callersMethoduser_fields_in_form_enabled?
This just checks if the user fields are enabled for the form This does not guarantee that they will be added, because it is possible that there are no
back/app/models/permission.rb:127
↓ 7 callersMethodvalidate_phase
back/lib/voting_method/base.rb:13
↓ 7 callersMethodverify_sync
(user:, method_name:, verification_parameters:)
back/app/services/verification/verification_service.rb:64
↓ 7 callersMethodvotes_for_idea
(idea)
back/lib/voting_method/base.rb:33
↓ 7 callersMethodvoting_method_for
(phase)
back/lib/factory.rb:9
↓ 7 callersMethodwith_tracking
(owner: nil)
back/app/concerns/jobs/trackable_job.rb:18
↓ 7 callersFunctionwithoutSpacing
( strings: TemplateStringsArray, ...expressions: string[] )
front/app/utils/textUtils.ts:58
↓ 6 callersFunctionadminCustomPageContentLink
(customPageId: string)
front/app/containers/Admin/pagesAndMenu/routes.tsx:53
↓ 6 callersFunctionadminProjectsProjectLink
(projectId: string)
front/app/containers/Admin/projects/routes.tsx:94
↓ 6 callersMethodafter_create
(api_client, user)
back/engines/commercial/public_api/app/services/side_fx_api_client_service.rb:6
↓ 6 callersMethodafter_destroy
(frozen_resource, user)
back/engines/commercial/custom_maps/app/services/custom_maps/side_fx_map_config_service.rb:7
↓ 6 callersMethodafter_destroy
(frozen_api_client, user)
back/engines/commercial/public_api/app/services/side_fx_api_client_service.rb:10
↓ 6 callersMethodattach_logic_instructions
Attach logic instruction HTML to the last field before each page boundary
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/exporters/logic_instruction_generator.rb:33
↓ 6 callersFunctionbaseInsight
(id: string, insightableId: string)
front/app/components/admin/FormResults/FormResultsQuestion/TextQuestion/Analysis/filterForCommunityMonitorQuarter.test.ts:29
↓ 6 callersMethodbefore_update
(tenant, current_user = nil)
back/engines/commercial/multi_tenancy/app/services/multi_tenancy/side_fx_tenant_service.rb:51
↓ 6 callersFunctionbinAge
(data: RawData, binOptions?: BinOptions)
front/app/utils/dataUtils/binAge.ts:19
↓ 6 callersMethodblock_to_multiloc
back/app/services/multiloc_service.rb:59
↓ 6 callersFunctionbuildUser
(highest_role: HighestRole, roles: TRole[])
front/app/containers/Admin/projects/_shared/components/ProjectSetupForm/ProjectContextSection/index.test.tsx:17
↓ 6 callersMethodbuild_commands
(recipient, activity)
back/engines/free/email_campaigns/app/services/email_campaigns/internal_comment_campaign_commands_builder.rb:5
↓ 6 callersMethodbuild_in_sso
(user_params, confirm_user, locale)
back/app/services/user_service.rb:30
↓ 6 callersMethodbuild_notifications
back/app/services/notifications/internal_comments/base_notification_builder.rb:9
← previousnext →801–900 of 15,961, ranked by callers