Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CitizenLabDotCo/citizenlab
/ functions
Functions
15,961 in github.com/CitizenLabDotCo/citizenlab
⨍
Functions
15,961
◇
Types & classes
7,295
↓ 5 callers
Method
generate_plan
Should be implemented by subclasses. @return [Analysis::QAndAPlan, nil]
back/engines/commercial/analysis/app/lib/analysis/q_and_a_method/base.rb:62
↓ 5 callers
Method
generate_reset_password_token
(user)
back/app/services/reset_password_service.rb:11
↓ 5 callers
Method
generate_slugs
Returns an array of slugs corresponding to the given unpersisted records. This will make sure there are no slug collisions among the given records. Th
back/app/services/slug_service.rb:25
↓ 5 callers
Method
getContext
(type: string)
front/app/utils/word/utils/svgToImage.test.ts:20
↓ 5 callers
Function
getElementType
(uiSchema, name: string)
front/app/utils/JSONFormUtils.ts:21
↓ 5 callers
Function
getInitialLinearScaleLabel
({ value, inputType, locale, formatMessage, }: InitialLinearScaleLabelProps)
front/app/components/FormBuilder/components/FormBuilderToolbox/utils.ts:19
↓ 5 callers
Function
getPhaseLandingTab
( phase: IPhaseData )
front/app/api/phases/utils.ts:161
↓ 5 callers
Function
getPreciseOffsetInMonths
( timelineStart: Date, eventStart: Date )
front/app/components/UI/GanttChart/utils.ts:169
↓ 5 callers
Function
getQuestionCategory
( field: IFlatCustomField, customFields: IFlatCustomField[] )
front/app/components/FormBuilder/edit/utils.ts:42
↓ 5 callers
Function
getStatusCounts
(counts: IStatusCounts)
front/app/api/admin_publications_status_counts/util/getAdminPublicationsStatusCount.ts:5
↓ 5 callers
Function
getTextResponseTitle
({ textResponseSource, }: GetTextResponseTitleParams)
front/app/components/admin/FormResults/FormResultsQuestion/TextQuestion/utils.ts:14
↓ 5 callers
Function
getTitleFromPageId
( pageId: string | undefined, pageMessage: string, fieldNumbers: Record<string, number>, formCustomFie
front/app/components/FormBuilder/components/FormFields/FormField/Logic/utils.ts:74
↓ 5 callers
Function
getTopicColor
(topicId?: string)
front/app/containers/IdeasFeedPage/topicsColor.tsx:34
↓ 5 callers
Function
getUpperBoundLimits
(bins: Bins)
front/app/utils/representativeness/bins.ts:107
↓ 5 callers
Function
getUserInputGraphicsLayer
(mapView?: MapView | null)
front/app/components/CustomFieldsForm/Fields/MapField/utils.tsx:120
↓ 5 callers
Function
getVotingMethodConfig
( votingMethod?: VotingMethod | null )
front/app/utils/configs/votingMethodConfig/index.tsx:9
↓ 5 callers
Function
group_filter_parameter
(s)
back/engines/commercial/user_custom_fields/spec/acceptance/stats_users_spec.rb:11
↓ 5 callers
Method
groups_for_user
Returns all the smart groups the user is a member of. Accepts an optional `groups` scope to limit the groups to search in. This method is very careful
back/engines/commercial/smart_groups/app/services/smart_groups/rules_service.rb:55
↓ 5 callers
Method
handle_description
Fallback to another locale description if current locale is missing
back/app/services/custom_field_service.rb:120
↓ 5 callers
Method
identify_tenant
(tenant)
back/engines/commercial/posthog_integration/app/services/posthog_integration/track_posthog_service.rb:29
↓ 5 callers
Method
import
@param [String] site_id Matomo site id @param [Integer] min_timestamp start unix timestamp @param [Integer,ActiveSupport::Duration] min_duration durat
back/engines/commercial/analytics/app/services/analytics/matomo_data_importer.rb:23
↓ 5 callers
Function
internal_comments_count_for_current_user
(idea, current_user)
back/spec/serializers/web_api/v1/idea_serializer_spec.rb:181
↓ 5 callers
Function
invalidateOnCRUD
()
front/app/api/projects/utils.ts:22
↓ 5 callers
Function
invisibleA11yText
()
front/app/component-library/utils/styleUtils.ts:556
↓ 5 callers
Function
isBuiltInField
(field: IUserCustomFieldData)
front/app/api/user_custom_fields/util.ts:3
↓ 5 callers
Function
isSubmittingAllowed
( formValues: FormValues, touched: boolean, referenceDataUploaded: boolean )
front/app/utils/representativeness/form.ts:95
↓ 5 callers
Function
isValueForLocaleFilled
( locale: Locale, values?: MultilocFormValues | MultilocFormValues[] )
front/app/component-library/components/LocaleSwitcher/index.tsx:78
↓ 5 callers
Function
isYouTubeEmbedLink
(url?: string)
front/app/utils/urlUtils.ts:1
↓ 5 callers
Method
last_error
return a formatted error hash - but only for those we have deliberately caught - only bulk_import currently
back/app/models/que_job.rb:71
↓ 5 callers
Method
last_phase?
(phase)
back/app/services/timeline_service.rb:96
↓ 5 callers
Method
locked?
back/app/models/idea_status.rb:42
↓ 5 callers
Method
locked_attributes
(user)
back/app/services/verification/verification_service.rb:89
↓ 5 callers
Method
logo
back/engines/commercial/admin_api/app/graphql/admin_api/types/tenant_type.rb:103
↓ 5 callers
Method
mailer_class
back/engines/free/email_campaigns/app/models/email_campaigns/campaigns/welcome.rb:47
↓ 5 callers
Function
makePhase
( id: string, start_at: string, end_at: string | null )
front/app/containers/Admin/projects/project/phaseSetup/validate.test.ts:7
↓ 5 callers
Method
matches_project?
(activity_project_id)
back/engines/commercial/webhooks/app/models/webhooks/subscription.rb:70
↓ 5 callers
Function
mergeTimeSeries
( timeSeriesQuery: TimeSeriesResponseRow[], currentResolution: IResolution )
front/app/containers/Admin/dashboard/overview/charts/EmailDeliveriesCard/useEmailDeliveries/parse.ts:21
↓ 5 callers
Method
merge_user_fields_from_idea_into_user!
Related to function above: Actually update the user profile if user fields are asked as last page
back/app/services/user_fields_in_form_service.rb:96
↓ 5 callers
Method
merge_user_fields_into_idea
Related to function above: Actually merge user fields from the current user into the idea's custom field values if fields were asked in reg flow.
back/app/services/user_fields_in_form_service.rb:46
↓ 5 callers
Method
method_by_name
(method_name)
back/app/services/verification/verification_service.rb:30
↓ 5 callers
Method
missing_dependencies
(settings, schema)
back/app/services/settings_service.rb:45
↓ 5 callers
Method
moderators_per_project
Returns a hash with project IDs as keys and arrays of users as values
back/app/services/user_role_service.rb:94
↓ 5 callers
Method
nth_linear_scale_multiloc
(n)
back/app/models/custom_field.rb:333
↓ 5 callers
Function
onCancel
()
front/app/components/admin/InternalComments/InternalChildCommentForm.tsx:163
↓ 5 callers
Function
onClose
()
front/app/components/admin/UserBlockModals/SuccessfulUserBlock.tsx:29
↓ 5 callers
Function
onLoadMore
()
front/app/components/PostShowComponents/OfficialFeedback/OfficialFeedbackFeed.tsx:115
↓ 5 callers
Function
onRemove
()
front/app/components/VoteInputs/single/AssignSingleVoteButton/index.tsx:121
↓ 5 callers
Method
option_title
Returns option title with letter prefix (A), B), C)...) for selection fields
back/engines/commercial/bulk_import_ideas/app/services/bulk_import_ideas/exporters/logic_instruction_generator.rb:24
↓ 5 callers
Method
pages
Making pages a different data model would avoid having to do this.
back/app/services/custom_field_service.rb:128
↓ 5 callers
Function
parseCombinedTimeSeries
( [ inputsTimeSeries, commentsTimeSeries, votesTimeSeries, ]: ParticipationResponse['data']['a
front/app/containers/Admin/reporting/components/ReportBuilder/Widgets/ChartWidgets/ParticipationWidget/useParticipation/parse/parseTimeSeries.ts:73
↓ 5 callers
Function
parseGroupedResult
( result: ResultUngrouped | ResultGrouped, groupAnswers: Answer[] )
front/app/components/admin/FormResults/FormResultsQuestion/SentimentQuestion/utils.tsx:28
↓ 5 callers
Function
parseStats
( attributes: VisitorsResponse['data']['attributes'] )
front/app/containers/Admin/reporting/components/ReportBuilder/Widgets/ChartWidgets/VisitorsWidget/useVisitors/parse.ts:8
↓ 5 callers
Function
parseTimeSeries
( timeSeriesQuery: PreparedTimeSeriesResponse, startAtMoment: Moment | null | undefined, endAtMoment: Mo
front/app/containers/Admin/dashboard/overview/charts/EmailDeliveriesCard/useEmailDeliveries/parse.ts:71
↓ 5 callers
Method
poll?
back/engines/free/polls/app/models/polls/poll_phase.rb:15
↓ 5 callers
Method
previous_phase
(phase)
back/app/services/timeline_service.rb:87
↓ 5 callers
Method
process_mentions
Replaces plain mentions ('@mention') by mention tags ('<span ...>@mention</span>') in 'text'. It can handle text that already contains mention tags. I
back/app/services/mention_service.rb:39
↓ 5 callers
Method
project_id
back/app/services/notifications/internal_comments/base_notification_builder.rb:51
↓ 5 callers
Method
project_id
back/engines/commercial/moderation/app/models/moderation/moderation_status.rb:27
↓ 5 callers
Method
project_participants
Returns all the known participants of a single project - cached. @param project[Project] @return[ActiveRecord::Relation] List of users that participat
back/app/services/participants_service.rb:70
↓ 5 callers
Function
queryBase
( startMoment: Moment | null | undefined, endMoment: Moment | null, inviteStatus: 'pending'
front/app/containers/Admin/dashboard/overview/charts/InvitationsCard/config.ts:95
↓ 5 callers
Function
queryBase
( status?: 'published' | 'archived' | 'draft', finished?: boolean )
front/app/containers/Admin/dashboard/overview/charts/ProjectStatusCard/config.ts:95
↓ 5 callers
Method
recipient_role_multiloc_key
back/engines/free/email_campaigns/app/models/email_campaigns/campaign.rb:105
↓ 5 callers
Method
recipient_segment_multiloc_key
back/engines/free/email_campaigns/app/models/email_campaigns/campaign.rb:107
↓ 5 callers
Method
recreate_custom_field_options
back/app/models/area.rb:121
↓ 5 callers
Function
regFieldToReferenceData
( usersByField: IUsersByCustomField )
front/app/hooks/parseReferenceData.ts:65
↓ 5 callers
Function
remCalc
(desiredSize: number)
front/app/component-library/utils/styleUtils.ts:568
↓ 5 callers
Function
removeRefs
(input: string)
front/app/containers/Admin/projects/project/analysis/Insights/util.tsx:13
↓ 5 callers
Method
remove_not_visible_fields
NOTE: Needs refactor. This is called by idea serializer so will have an n+1 issue
back/app/services/custom_field_service.rb:77
↓ 5 callers
Method
replace_node
@param [String] node_id @param [Array<String>, String] new_node_ids @return [Hash] The deleted/replaced node
back/engines/commercial/content_builder/app/services/content_builder/craftjs/state.rb:61
↓ 5 callers
Function
returnFileSize
(size: number)
front/app/utils/fileUtils.ts:117
↓ 5 callers
Function
roundDownToFirstDayOfMonth
(date: Moment)
front/app/components/admin/GraphCards/_utils/timeSeries.ts:150
↓ 5 callers
Function
roundDownToMonday
(date: Moment)
front/app/components/admin/GraphCards/_utils/timeSeries.ts:154
↓ 5 callers
Method
run
(files, import_user, locale, phase, personal_data_enabled, format)
back/engines/commercial/bulk_import_ideas/app/jobs/bulk_import_ideas/idea_import_job.rb:25
↓ 5 callers
Method
safe_current
back/engines/commercial/multi_tenancy/app/models/tenant.rb:97
↓ 5 callers
Method
save_urls
(model, image_assignments)
back/lib/carrierwave_temp_remote.rb:23
↓ 5 callers
Function
scrollTo
({ elementId, pathname, projectSlug, currentPhase }: ScrollToParams)
front/app/containers/Authentication/SuccessActions/actions/scrollTo.ts:14
↓ 5 callers
Method
send_now_to_user
Sends one campaign to one recipient immediately (synchronously) with a caller-supplied event_payload. For transactional emails that must arrive right
back/engines/free/email_campaigns/app/services/email_campaigns/delivery_service.rb:107
↓ 5 callers
Method
send_on_schedule
called every hour
back/engines/free/email_campaigns/app/services/email_campaigns/delivery_service.rb:85
↓ 5 callers
Method
sent?
back/engines/free/email_campaigns/app/models/concerns/email_campaigns/trackable.rb:15
↓ 5 callers
Function
setPathnameLocale
( pathname: string, locale: SupportedLocale, search?: string )
front/app/utils/setPathnameLocale.ts:8
↓ 5 callers
Method
set_failed!
(error = nil)
back/engines/commercial/analysis/app/models/analysis/background_task.rb:71
↓ 5 callers
Function
set_feature_flags
(prescreening:, flag_inappropriate_content:)
back/spec/models/phase_spec.rb:621
↓ 5 callers
Method
set_in_progress!
back/engines/commercial/analysis/app/models/analysis/background_task.rb:56
↓ 5 callers
Method
set_manual_votes
(amount, user)
back/app/models/idea.rb:371
↓ 5 callers
Method
set_succeeded!
back/engines/commercial/analysis/app/models/analysis/background_task.rb:63
↓ 5 callers
Function
signUp
(email = randomEmail(), password = randomString())
front/cypress/e2e/follow/follow_auth_flow.cy.ts:8
↓ 5 callers
Method
snakecase
NOTE: Copied from nori gem as orginally it was a monkey patch in a dependency of a dependency which was then removed @param inputstring [String] The s
back/lib/utils.rb:33
↓ 5 callers
Function
sortBy
(key: sortByKey)
front/app/containers/Admin/messaging/AutomatedEmails/utils.ts:27
↓ 5 callers
Method
supports_single_selection?
back/lib/input_type_strategy/base.rb:53
↓ 5 callers
Method
swap_data_images!
Extracts image data from the content field of the given record, stores it in a separate model, and updates the content field to reference the image mo
back/app/services/content_image_service.rb:87
↓ 5 callers
Function
tenantInfo
(tenant: IAppConfigurationData)
front/app/utils/analytics.ts:106
↓ 5 callers
Function
time_boundary_parameters
(s)
back/spec/acceptance/stats_ideas_spec.rb:8
↓ 5 callers
Function
time_boundary_parameters
(s)
back/engines/commercial/user_custom_fields/spec/acceptance/stats_users_spec.rb:6
↓ 5 callers
Method
total_count
back/engines/commercial/analysis/app/services/analysis/tag_counter.rb:21
↓ 5 callers
Function
trackAdvanced
({ type, option, }: | { type: 'align'; option: 'left' | 'center' | 'right' } | { t
front/app/components/UI/QuillEditor/Toolbar.tsx:106
↓ 5 callers
Function
transformGroupedAnswerUsableArray
( groupedAnswer: GroupedAnswer[], groupKey: string )
front/app/components/admin/FormResults/FormResultsQuestion/SentimentQuestion/components/GroupedSentimentScore/utils.ts:7
↓ 5 callers
Method
typeform_form_id
back/engines/free/surveys/app/models/surveys/survey_phase.rb:65
↓ 5 callers
Function
underscoreCase
(label: string | undefined)
front/app/components/admin/GraphCards/StatCard/useStatCard/parse.ts:27
↓ 5 callers
Method
update
back/engines/commercial/admin_api/app/controllers/admin_api/users_controller.rb:50
↓ 5 callers
Method
update?
back/app/policies/user_policy.rb:60
← previous
next →
1,101–1,200 of 15,961, ranked by callers