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
↓ 10 callers
Function
makeQuestion
( id: string, inputType: string, rules: { goto_page_id: string }[] = [] )
front/app/components/FormBuilder/edit/utils.test.ts:237
↓ 10 callers
Method
manual?
back/engines/free/email_campaigns/app/models/email_campaigns/campaign.rb:181
↓ 10 callers
Function
momentToIsoDate
(moment: Moment | null | undefined)
front/app/utils/dateUtils.ts:194
↓ 10 callers
Method
normal_user?
back/app/models/concerns/user_roles.rb:172
↓ 10 callers
Method
on_every_hour
back/app/services/idea_feed/topic_modeling_scheduler.rb:23
↓ 10 callers
Function
parseMonths
( timeSeries: Row[], startAtMoment: Moment | null | undefined, endAtMoment: Moment | null, getDate: (r
front/app/components/admin/GraphCards/_utils/timeSeries.ts:56
↓ 10 callers
Function
parseWeeks
( timeSeries: Row[], startAtMoment: Moment | null | undefined, endAtMoment: Moment | null, getDate: (r
front/app/components/admin/GraphCards/_utils/timeSeries.ts:90
↓ 10 callers
Method
permission_scope
back/app/models/phase.rb:233
↓ 10 callers
Method
permitted_attributes_for_update
back/app/policies/user_policy.rb:114
↓ 10 callers
Method
project_folder
(args)
back/engines/commercial/admin_api/app/graphql/admin_api/types/query_type.rb:100
↓ 10 callers
Method
published?
back/app/models/idea.rb:397
↓ 10 callers
Method
rand_instance
Returns a random record from a relation @param scope [ActiveRecord::Relation] relation of why to pick a random entry from @return [ActiveRecord::Base]
back/engines/commercial/multi_tenancy/db/seeds/runner.rb:169
↓ 10 callers
Method
reason_code
back/engines/commercial/flag_inappropriate_content/app/models/flag_inappropriate_content/inappropriate_content_flag.rb:42
↓ 10 callers
Method
resolve
back/engines/commercial/analysis/app/policies/analysis/analysis_policy.rb:6
↓ 10 callers
Function
run_task
(host: Tenant.current.host, num_users: 3, locale: 'fr-FR')
back/engines/commercial/multi_tenancy/spec/tasks/demos/create_n_fake_users_spec.rb:15
↓ 10 callers
Method
safe_switch_each
(scope: nil)
back/engines/commercial/multi_tenancy/app/models/tenant.rb:81
↓ 10 callers
Method
search_ids_by_all_including_patches
(term)
back/engines/commercial/content_builder/app/models/content_builder/concerns/content_buildable.rb:74
↓ 10 callers
Method
secret
back/app/services/reset_password_service.rb:57
↓ 10 callers
Method
should_merge_user_fields_from_idea_into_user?
This function is used to check if user fields are asked on the last page of the form, and if so, if they should be merged into the user.
back/app/services/user_fields_in_form_service.rb:74
↓ 10 callers
Method
should_merge_user_fields_into_idea?
( current_user, phase, idea )
back/app/services/user_fields_in_form_service.rb:11
↓ 10 callers
Method
similar_ideas
(scope: nil, limit: nil, title_threshold: 0.0, body_threshold: 0.0, embedded_attributes: DEFAULT_EMBEDDED_ATTR
back/app/services/similar_ideas_service.rb:10
↓ 10 callers
Method
super_admin?
back/app/models/concerns/user_roles.rb:148
↓ 10 callers
Method
timeline_active
(project)
back/app/services/timeline_service.rb:55
↓ 10 callers
Function
toBackendDateString
(date?: Date)
front/app/utils/dateUtils.ts:334
↓ 10 callers
Function
toMultiloc
(message: MessageDescriptor)
front/app/containers/Admin/reporting/components/ReportBuilder/Toolbox/index.tsx:135
↓ 10 callers
Function
trackPageChange
(path: string)
front/app/modules/commercial/matomo/actions.ts:31
↓ 10 callers
Method
unfollow_url
(follower)
back/engines/free/frontend/app/services/frontend/url_service.rb:123
↓ 10 callers
Function
updateUser
({ userId, ...requestBody }: IUserUpdate)
front/app/api/users/useUpdateUser.ts:19
↓ 10 callers
Function
useAnalysisTags
(queryParams: ITagParams)
front/app/api/analysis_tags/useAnalysisTags.ts:17
↓ 10 callers
Function
useFormatMessageWithLocale
()
front/app/utils/cl-intl/useFormatMessageWithLocale.ts:12
↓ 10 callers
Function
useInfiniteAnalysisInputs
({ analysisId, queryParams, }: { analysisId: string; queryParams?: IInputsQueryParams; })
front/app/api/analysis_inputs/useInfiniteAnalysisInputs.ts:25
↓ 10 callers
Function
useInfiniteIdeas
(queryParams: IIdeaQueryParameters)
front/app/api/ideas/useInfiniteIdeas.ts:23
↓ 10 callers
Function
useUpdateAppConfiguration
()
front/app/api/app_configuration/useUpdateAppConfiguration.ts:18
↓ 10 callers
Function
useUpdatePhase
()
front/app/api/phases/useUpdatePhase.ts:20
↓ 10 callers
Function
useUserCustomField
(customFieldId?: string)
front/app/api/user_custom_fields/useUserCustomField.ts:15
↓ 10 callers
Method
visible_to_public?
back/app/models/custom_field.rb:216
↓ 9 callers
Function
addPermissionsCustomField
({ adminJwt, phaseId, customFieldId, permission = 'posting_idea', }: { adminJwt?: string; phaseId:
front/cypress/support/permitted_by_utils.ts:123
↓ 9 callers
Method
add_member
(user)
back/app/models/group.rb:56
↓ 9 callers
Method
additional_export_columns
back/lib/voting_method/base.rb:37
↓ 9 callers
Method
after_update
(campaign, user)
back/engines/free/email_campaigns/app/services/email_campaigns/side_fx_campaign_service.rb:9
↓ 9 callers
Method
after_update
(layout, user)
back/engines/commercial/content_builder/app/services/content_builder/side_fx_layout_service.rb:19
↓ 9 callers
Method
approve!
@param [User] reviewer
back/app/models/project_review.rb:49
↓ 9 callers
Method
args
back/app/models/que_job.rb:47
↓ 9 callers
Method
banned?
(email)
back/app/models/email_ban.rb:32
↓ 9 callers
Method
billed_admins
back/app/controllers/web_api/v1/users_controller.rb:69
↓ 9 callers
Method
configured?
Whether the method has been configured by the admin. @param [AppConfiguration] app_configuration @return [Boolean]
back/app/services/id_method_service.rb:45
↓ 9 callers
Method
counts_by_field_option
Counts the number of users by custom field option. The counts are indexed by the option key by default. The resulting hash also includes a special ent
back/engines/commercial/user_custom_fields/app/services/user_custom_fields/field_value_counter.rb:26
↓ 9 callers
Function
create_inactive_phase
(project, phase_options = {})
back/spec/services/timeline_service_spec.rb:359
↓ 9 callers
Function
create_token
(owner, application, **opts)
back/engines/commercial/mcp_server/spec/requests/mcp_authorizations_spec.rb:18
↓ 9 callers
Function
create_token
(owner, app, **opts)
back/engines/commercial/mcp_server/spec/policies/doorkeeper/application_policy_spec.rb:14
↓ 9 callers
Method
destroy
back/engines/free/email_campaigns/app/controllers/email_campaigns/web_api/v1/campaigns_controller.rb:93
↓ 9 callers
Method
destroy?
back/app/policies/user_policy.rb:64
↓ 9 callers
Method
editing_disabled_reason_for_report
(report, current_user)
back/engines/commercial/report_builder/app/services/report_builder/permissions/report_permissions_service.rb:7
↓ 9 callers
Function
emptyDateRange
( startAtMoment: Moment | null | undefined, endAtMoment: Moment | null | undefined, resolution: IResolut
front/app/components/admin/GraphCards/_utils/timeSeries.ts:225
↓ 9 callers
Function
ensureCorrectGrouping
()
front/cypress/e2e/report_builder/widgets/survey_question_widget.cy.ts:231
↓ 9 callers
Method
fill
()
front/__mocks__/canvas.js:20
↓ 9 callers
Method
filter_participation_states
(scope, params = {})
back/app/services/projects_finder_admin_service.rb:282
↓ 9 callers
Method
format_all
(inputs, shorten_labels: false, **options)
back/engines/commercial/analysis/app/services/analysis/input_to_text.rb:46
↓ 9 callers
Method
generate
(item)
back/app/services/claim_token_service.rb:8
↓ 9 callers
Method
generate
(activity)
back/engines/commercial/webhooks/app/services/webhooks/payload_service.rb:5
↓ 9 callers
Method
generate_for_visitor
(ip, user_agent)
back/app/services/visitor_hash_service.rb:12
↓ 9 callers
Function
getPhaseVoteTermMessage
( phase: IPhaseData, voteTermMessages: { [key in VoteTerm]: MessageDescriptor } )
front/app/api/phases/utils.ts:153
↓ 9 callers
Function
getShowFilters
({ isSmallerThanPhone, hasPublications, statusCounts, selectedTopics, selectedAreas, }: GetShowFilte
front/app/components/ProjectAndFolderCards/components/Topbar/show.ts:15
↓ 9 callers
Function
handleProjectAttributeDiffOnChange
( projectAttributesDiff: IUpdatedProjectProperties, submitState: ISubmitState = 'enabled' )
front/app/containers/Admin/projects/project/general/setUp/index.tsx:185
↓ 9 callers
Method
in_folder?
back/app/models/project.rb:259
↓ 9 callers
Method
location_point_geojson
back/app/models/concerns/geo_json_helpers.rb:8
↓ 9 callers
Method
moderatable_folders
(user, scope = ProjectFolders::Folder)
back/app/services/user_role_service.rb:78
↓ 9 callers
Method
moderator?
back/engines/commercial/content_builder/app/policies/content_builder/layout_policy.rb:47
↓ 9 callers
Method
multiloc_with_fallback_locale
(record, attribute_name)
back/app/services/export/xlsx/utils.rb:72
↓ 9 callers
Method
no_name?
back/app/models/user.rb:278
↓ 9 callers
Method
other_option_text_field
(print_version: false)
back/app/models/custom_field.rb:276
↓ 9 callers
Method
query
(**_props)
back/engines/commercial/report_builder/app/services/report_builder/queries/analytics/base.rb:20
↓ 9 callers
Method
rebalance_topics!
`rebalance_topics!` is supposed to be called periodically (every day or few days) to update the topics. It tries to keep the topics stable to some ext
back/app/services/idea_feed/topic_modeling_service.rb:15
↓ 9 callers
Method
resolve
back/engines/free/polls/app/policies/polls/option_policy.rb:6
↓ 9 callers
Function
sanitizeForClassname
(val: string)
front/app/utils/JSONFormUtils.ts:18
↓ 9 callers
Function
show
(type: ParticipationType)
front/app/containers/Admin/reporting/components/ReportBuilder/Widgets/ChartWidgets/ParticipationWidget/ParticipationCard/Narrow.tsx:32
↓ 9 callers
Function
stub_wijk_budget_api
(response, status: 200)
back/engines/commercial/custom_id_methods/spec/requests/acm_verification_spec.rb:121
↓ 9 callers
Method
supports_private_attributes_in_export?
back/lib/participation_method/base.rb:133
↓ 9 callers
Method
supports_submission?
back/lib/input_type_strategy/base.rb:13
↓ 9 callers
Method
taggings
back/engines/commercial/analysis/app/services/analysis/tag_stats.rb:62
↓ 9 callers
Function
timeSeriesParser
( getDate: (row: Row) => Moment, parseRow: (date: Moment, row?: Row) => ParsedRow )
front/app/components/admin/GraphCards/_utils/timeSeries.ts:7
↓ 9 callers
Function
time_at_hour
Returns a time at the specified hour in the app's timezone for today
back/spec/services/idea_feed/topic_modeling_scheduler_spec.rb:16
↓ 9 callers
Function
toFullMonth
(date: string, resolution: IResolution)
front/app/utils/dateUtils.ts:230
↓ 9 callers
Function
toThreeLetterMonth
(date: string, resolution: IResolution)
front/app/utils/dateUtils.ts:224
↓ 9 callers
Function
updateAppConfiguration
( requestBody: IUpdatedAppConfigurationProperties )
front/app/api/app_configuration/useUpdateAppConfiguration.ts:9
↓ 9 callers
Function
updateCustomPage
({ id, ...requestBody }: Partial<ICustomPageAttributes> & { id: string })
front/app/api/custom_pages/useUpdateCustomPage.ts:11
↓ 9 callers
Function
updateProject
({ projectId, ...requestBody }: IUpdatedProjectProperties)
front/app/api/projects/useUpdateProject.ts:9
↓ 9 callers
Function
useBasket
(id?: string)
front/app/api/baskets/useBasket.ts:12
↓ 9 callers
Function
useComments
( parameters: ICommentParameters & ICommentQueryParameters, hasComments = true )
front/app/api/comments/useComments.ts:40
↓ 9 callers
Function
useCraftComponentDefaultPadding
()
front/app/components/admin/ContentBuilder/__mocks__/useCraftComponentDefaultPadding.ts:3
↓ 9 callers
Function
useIdMethods
()
front/app/api/id_methods/useIdMethods.ts:15
↓ 9 callers
Function
useMapConfigById
(mapConfigId?: string | null)
front/app/api/map_config/useMapConfigById.ts:19
↓ 9 callers
Function
useUpdateCustomPage
()
front/app/api/custom_pages/useUpdateCustomPage.ts:21
↓ 9 callers
Function
useUpdateIdea
()
front/app/api/ideas/useUpdateIdea.ts:30
↓ 9 callers
Function
useWordSection
( exportId: ExportId, serializer: WordSerializer, options: UseWordSectionOptions = {} )
front/app/containers/Admin/projects/project/insights/word/useWordSection.ts:65
↓ 9 callers
Method
with_preprocessed_file_content
(file, &)
back/app/services/files/llm_file_preprocessor.rb:12
↓ 8 callers
Method
available_actions
(permission_scope)
back/app/models/permission.rb:71
↓ 8 callers
Method
before_create
(tenant, current_user = nil)
back/engines/commercial/multi_tenancy/app/services/multi_tenancy/side_fx_tenant_service.rb:7
↓ 8 callers
Method
before_update
(idea, user)
back/engines/commercial/idea_assignment/app/services/idea_assignment/patches/side_fx_idea_service.rb:6
↓ 8 callers
Method
blocked?
back/app/models/user.rb:302
← previous
next →
601–700 of 15,961, ranked by callers