MCPcopy Create free account

hub / github.com/CitizenLabDotCo/citizenlab / functions

Functions15,961 in github.com/CitizenLabDotCo/citizenlab

↓ 5 callersMethodgenerate_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 callersMethodgenerate_reset_password_token
(user)
back/app/services/reset_password_service.rb:11
↓ 5 callersMethodgenerate_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 callersMethodgetContext
(type: string)
front/app/utils/word/utils/svgToImage.test.ts:20
↓ 5 callersFunctiongetElementType
(uiSchema, name: string)
front/app/utils/JSONFormUtils.ts:21
↓ 5 callersFunctiongetInitialLinearScaleLabel
({ value, inputType, locale, formatMessage, }: InitialLinearScaleLabelProps)
front/app/components/FormBuilder/components/FormBuilderToolbox/utils.ts:19
↓ 5 callersFunctiongetPhaseLandingTab
( phase: IPhaseData )
front/app/api/phases/utils.ts:161
↓ 5 callersFunctiongetPreciseOffsetInMonths
( timelineStart: Date, eventStart: Date )
front/app/components/UI/GanttChart/utils.ts:169
↓ 5 callersFunctiongetQuestionCategory
( field: IFlatCustomField, customFields: IFlatCustomField[] )
front/app/components/FormBuilder/edit/utils.ts:42
↓ 5 callersFunctiongetStatusCounts
(counts: IStatusCounts)
front/app/api/admin_publications_status_counts/util/getAdminPublicationsStatusCount.ts:5
↓ 5 callersFunctiongetTextResponseTitle
({ textResponseSource, }: GetTextResponseTitleParams)
front/app/components/admin/FormResults/FormResultsQuestion/TextQuestion/utils.ts:14
↓ 5 callersFunctiongetTitleFromPageId
( pageId: string | undefined, pageMessage: string, fieldNumbers: Record<string, number>, formCustomFie
front/app/components/FormBuilder/components/FormFields/FormField/Logic/utils.ts:74
↓ 5 callersFunctiongetTopicColor
(topicId?: string)
front/app/containers/IdeasFeedPage/topicsColor.tsx:34
↓ 5 callersFunctiongetUpperBoundLimits
(bins: Bins)
front/app/utils/representativeness/bins.ts:107
↓ 5 callersFunctiongetUserInputGraphicsLayer
(mapView?: MapView | null)
front/app/components/CustomFieldsForm/Fields/MapField/utils.tsx:120
↓ 5 callersFunctiongetVotingMethodConfig
( votingMethod?: VotingMethod | null )
front/app/utils/configs/votingMethodConfig/index.tsx:9
↓ 5 callersFunctiongroup_filter_parameter
(s)
back/engines/commercial/user_custom_fields/spec/acceptance/stats_users_spec.rb:11
↓ 5 callersMethodgroups_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 callersMethodhandle_description
Fallback to another locale description if current locale is missing
back/app/services/custom_field_service.rb:120
↓ 5 callersMethodidentify_tenant
(tenant)
back/engines/commercial/posthog_integration/app/services/posthog_integration/track_posthog_service.rb:29
↓ 5 callersMethodimport
@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 callersFunctioninternal_comments_count_for_current_user
(idea, current_user)
back/spec/serializers/web_api/v1/idea_serializer_spec.rb:181
↓ 5 callersFunctioninvalidateOnCRUD
()
front/app/api/projects/utils.ts:22
↓ 5 callersFunctioninvisibleA11yText
()
front/app/component-library/utils/styleUtils.ts:556
↓ 5 callersFunctionisBuiltInField
(field: IUserCustomFieldData)
front/app/api/user_custom_fields/util.ts:3
↓ 5 callersFunctionisSubmittingAllowed
( formValues: FormValues, touched: boolean, referenceDataUploaded: boolean )
front/app/utils/representativeness/form.ts:95
↓ 5 callersFunctionisValueForLocaleFilled
( locale: Locale, values?: MultilocFormValues | MultilocFormValues[] )
front/app/component-library/components/LocaleSwitcher/index.tsx:78
↓ 5 callersFunctionisYouTubeEmbedLink
(url?: string)
front/app/utils/urlUtils.ts:1
↓ 5 callersMethodlast_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 callersMethodlast_phase?
(phase)
back/app/services/timeline_service.rb:96
↓ 5 callersMethodlocked?
back/app/models/idea_status.rb:42
↓ 5 callersMethodlocked_attributes
(user)
back/app/services/verification/verification_service.rb:89
↓ 5 callersMethodlogo
back/engines/commercial/admin_api/app/graphql/admin_api/types/tenant_type.rb:103
↓ 5 callersMethodmailer_class
back/engines/free/email_campaigns/app/models/email_campaigns/campaigns/welcome.rb:47
↓ 5 callersFunctionmakePhase
( id: string, start_at: string, end_at: string | null )
front/app/containers/Admin/projects/project/phaseSetup/validate.test.ts:7
↓ 5 callersMethodmatches_project?
(activity_project_id)
back/engines/commercial/webhooks/app/models/webhooks/subscription.rb:70
↓ 5 callersFunctionmergeTimeSeries
( timeSeriesQuery: TimeSeriesResponseRow[], currentResolution: IResolution )
front/app/containers/Admin/dashboard/overview/charts/EmailDeliveriesCard/useEmailDeliveries/parse.ts:21
↓ 5 callersMethodmerge_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 callersMethodmerge_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 callersMethodmethod_by_name
(method_name)
back/app/services/verification/verification_service.rb:30
↓ 5 callersMethodmissing_dependencies
(settings, schema)
back/app/services/settings_service.rb:45
↓ 5 callersMethodmoderators_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 callersMethodnth_linear_scale_multiloc
(n)
back/app/models/custom_field.rb:333
↓ 5 callersFunctiononCancel
()
front/app/components/admin/InternalComments/InternalChildCommentForm.tsx:163
↓ 5 callersFunctiononClose
()
front/app/components/admin/UserBlockModals/SuccessfulUserBlock.tsx:29
↓ 5 callersFunctiononLoadMore
()
front/app/components/PostShowComponents/OfficialFeedback/OfficialFeedbackFeed.tsx:115
↓ 5 callersFunctiononRemove
()
front/app/components/VoteInputs/single/AssignSingleVoteButton/index.tsx:121
↓ 5 callersMethodoption_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 callersMethodpages
Making pages a different data model would avoid having to do this.
back/app/services/custom_field_service.rb:128
↓ 5 callersFunctionparseCombinedTimeSeries
( [ inputsTimeSeries, commentsTimeSeries, votesTimeSeries, ]: ParticipationResponse['data']['a
front/app/containers/Admin/reporting/components/ReportBuilder/Widgets/ChartWidgets/ParticipationWidget/useParticipation/parse/parseTimeSeries.ts:73
↓ 5 callersFunctionparseGroupedResult
( result: ResultUngrouped | ResultGrouped, groupAnswers: Answer[] )
front/app/components/admin/FormResults/FormResultsQuestion/SentimentQuestion/utils.tsx:28
↓ 5 callersFunctionparseStats
( attributes: VisitorsResponse['data']['attributes'] )
front/app/containers/Admin/reporting/components/ReportBuilder/Widgets/ChartWidgets/VisitorsWidget/useVisitors/parse.ts:8
↓ 5 callersFunctionparseTimeSeries
( timeSeriesQuery: PreparedTimeSeriesResponse, startAtMoment: Moment | null | undefined, endAtMoment: Mo
front/app/containers/Admin/dashboard/overview/charts/EmailDeliveriesCard/useEmailDeliveries/parse.ts:71
↓ 5 callersMethodpoll?
back/engines/free/polls/app/models/polls/poll_phase.rb:15
↓ 5 callersMethodprevious_phase
(phase)
back/app/services/timeline_service.rb:87
↓ 5 callersMethodprocess_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 callersMethodproject_id
back/app/services/notifications/internal_comments/base_notification_builder.rb:51
↓ 5 callersMethodproject_id
back/engines/commercial/moderation/app/models/moderation/moderation_status.rb:27
↓ 5 callersMethodproject_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 callersFunctionqueryBase
( startMoment: Moment | null | undefined, endMoment: Moment | null, inviteStatus: 'pending'
front/app/containers/Admin/dashboard/overview/charts/InvitationsCard/config.ts:95
↓ 5 callersFunctionqueryBase
( status?: 'published' | 'archived' | 'draft', finished?: boolean )
front/app/containers/Admin/dashboard/overview/charts/ProjectStatusCard/config.ts:95
↓ 5 callersMethodrecipient_role_multiloc_key
back/engines/free/email_campaigns/app/models/email_campaigns/campaign.rb:105
↓ 5 callersMethodrecipient_segment_multiloc_key
back/engines/free/email_campaigns/app/models/email_campaigns/campaign.rb:107
↓ 5 callersMethodrecreate_custom_field_options
back/app/models/area.rb:121
↓ 5 callersFunctionregFieldToReferenceData
( usersByField: IUsersByCustomField )
front/app/hooks/parseReferenceData.ts:65
↓ 5 callersFunctionremCalc
(desiredSize: number)
front/app/component-library/utils/styleUtils.ts:568
↓ 5 callersFunctionremoveRefs
(input: string)
front/app/containers/Admin/projects/project/analysis/Insights/util.tsx:13
↓ 5 callersMethodremove_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 callersMethodreplace_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 callersFunctionreturnFileSize
(size: number)
front/app/utils/fileUtils.ts:117
↓ 5 callersFunctionroundDownToFirstDayOfMonth
(date: Moment)
front/app/components/admin/GraphCards/_utils/timeSeries.ts:150
↓ 5 callersFunctionroundDownToMonday
(date: Moment)
front/app/components/admin/GraphCards/_utils/timeSeries.ts:154
↓ 5 callersMethodrun
(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 callersMethodsafe_current
back/engines/commercial/multi_tenancy/app/models/tenant.rb:97
↓ 5 callersMethodsave_urls
(model, image_assignments)
back/lib/carrierwave_temp_remote.rb:23
↓ 5 callersFunctionscrollTo
({ elementId, pathname, projectSlug, currentPhase }: ScrollToParams)
front/app/containers/Authentication/SuccessActions/actions/scrollTo.ts:14
↓ 5 callersMethodsend_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 callersMethodsend_on_schedule
called every hour
back/engines/free/email_campaigns/app/services/email_campaigns/delivery_service.rb:85
↓ 5 callersMethodsent?
back/engines/free/email_campaigns/app/models/concerns/email_campaigns/trackable.rb:15
↓ 5 callersFunctionsetPathnameLocale
( pathname: string, locale: SupportedLocale, search?: string )
front/app/utils/setPathnameLocale.ts:8
↓ 5 callersMethodset_failed!
(error = nil)
back/engines/commercial/analysis/app/models/analysis/background_task.rb:71
↓ 5 callersFunctionset_feature_flags
(prescreening:, flag_inappropriate_content:)
back/spec/models/phase_spec.rb:621
↓ 5 callersMethodset_in_progress!
back/engines/commercial/analysis/app/models/analysis/background_task.rb:56
↓ 5 callersMethodset_manual_votes
(amount, user)
back/app/models/idea.rb:371
↓ 5 callersMethodset_succeeded!
back/engines/commercial/analysis/app/models/analysis/background_task.rb:63
↓ 5 callersFunctionsignUp
(email = randomEmail(), password = randomString())
front/cypress/e2e/follow/follow_auth_flow.cy.ts:8
↓ 5 callersMethodsnakecase
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 callersFunctionsortBy
(key: sortByKey)
front/app/containers/Admin/messaging/AutomatedEmails/utils.ts:27
↓ 5 callersMethodsupports_single_selection?
back/lib/input_type_strategy/base.rb:53
↓ 5 callersMethodswap_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 callersFunctiontenantInfo
(tenant: IAppConfigurationData)
front/app/utils/analytics.ts:106
↓ 5 callersFunctiontime_boundary_parameters
(s)
back/spec/acceptance/stats_ideas_spec.rb:8
↓ 5 callersFunctiontime_boundary_parameters
(s)
back/engines/commercial/user_custom_fields/spec/acceptance/stats_users_spec.rb:6
↓ 5 callersMethodtotal_count
back/engines/commercial/analysis/app/services/analysis/tag_counter.rb:21
↓ 5 callersFunctiontrackAdvanced
({ type, option, }: | { type: 'align'; option: 'left' | 'center' | 'right' } | { t
front/app/components/UI/QuillEditor/Toolbar.tsx:106
↓ 5 callersFunctiontransformGroupedAnswerUsableArray
( groupedAnswer: GroupedAnswer[], groupKey: string )
front/app/components/admin/FormResults/FormResultsQuestion/SentimentQuestion/components/GroupedSentimentScore/utils.ts:7
↓ 5 callersMethodtypeform_form_id
back/engines/free/surveys/app/models/surveys/survey_phase.rb:65
↓ 5 callersFunctionunderscoreCase
(label: string | undefined)
front/app/components/admin/GraphCards/StatCard/useStatCard/parse.ts:27
↓ 5 callersMethodupdate
back/engines/commercial/admin_api/app/controllers/admin_api/users_controller.rb:50
↓ 5 callersMethodupdate?
back/app/policies/user_policy.rb:60
← previousnext →1,101–1,200 of 15,961, ranked by callers