Module: Users

Defined in:
app/services/users/migrate_to_ghost_user_service.rb,
app/models/users/callout.rb,
app/models/users/banned_user.rb,
app/models/users/calloutable.rb,
app/models/users/saved_reply.rb,
app/models/users/group_callout.rb,
app/services/users/ban_service.rb,
app/services/users/block_service.rb,
app/services/users/build_service.rb,
app/services/users/unban_service.rb,
app/helpers/users/callouts_helper.rb,
app/models/users/user_follow_user.rb,
app/services/users/create_service.rb,
app/services/users/reject_service.rb,
app/services/users/signup_service.rb,
app/services/users/update_service.rb,
app/services/users/approve_service.rb,
app/services/users/destroy_service.rb,
app/services/users/activity_service.rb,
app/policies/users/saved_reply_policy.rb,
app/services/users/keys_count_service.rb,
app/services/users/set_status_service.rb,
app/controllers/users/terms_controller.rb,
app/helpers/users/group_callouts_helper.rb,
app/models/users/credit_card_validation.rb,
app/services/users/validate_otp_service.rb,
app/controllers/users/callouts_controller.rb,
app/models/users/merge_request_interaction.rb,
app/services/users/dismiss_callout_service.rb,
app/services/users/last_push_event_service.rb,
app/workers/users/create_statistics_worker.rb,
app/models/users/in_product_marketing_email.rb,
app/services/users/authorized_build_service.rb,
app/services/users/banned_user_base_service.rb,
app/services/users/respond_to_terms_service.rb,
app/services/users/authorized_create_service.rb,
app/controllers/users/unsubscribes_controller.rb,
app/services/concerns/users/new_user_notifier.rb,
app/services/users/registrations_build_service.rb,
app/services/users/repair_ldap_blocked_service.rb,
app/controllers/users/group_callouts_controller.rb,
app/services/users/batch_status_cleaner_service.rb,
app/services/users/saved_replies/create_service.rb,
app/services/users/saved_replies/update_service.rb,
app/services/concerns/users/participable_service.rb,
app/services/users/dismiss_group_callout_service.rb,
app/services/users/saved_replies/destroy_service.rb,
app/services/users/update_canonical_email_service.rb,
app/workers/users/deactivate_dormant_users_worker.rb,
app/services/users/update_todo_count_cache_service.rb,
app/services/users/in_product_marketing_email_records.rb,
app/services/users/update_highest_member_role_service.rb,
app/services/users/refresh_authorized_projects_service.rb,
app/services/users/upsert_credit_card_validation_service.rb

Overview

When a user is destroyed, some of their associated records are moved to a “Ghost User”, to prevent these associated records from being destroyed.

For example, all the issues/MRs a user has created are not destroyed when the user is destroyed.

Defined Under Namespace

Modules: Calloutable, CalloutsHelper, GroupCalloutsHelper, NewUserNotifier, ParticipableService, SavedReplies Classes: ActivityService, ApproveService, AuthorizedBuildService, AuthorizedCreateService, BanService, BannedUser, BannedUserBaseService, BatchStatusCleanerService, BlockService, BuildService, Callout, CalloutsController, CreateService, CreateStatisticsWorker, CreditCardValidation, DeactivateDormantUsersWorker, DestroyService, DismissCalloutService, DismissGroupCalloutService, GroupCallout, GroupCalloutsController, InProductMarketingEmail, InProductMarketingEmailRecords, KeysCountService, LastPushEventService, MergeRequestInteraction, MigrateToGhostUserService, RefreshAuthorizedProjectsService, RegistrationsBuildService, RejectService, RepairLdapBlockedService, RespondToTermsService, SavedReply, SavedReplyPolicy, SetStatusService, SignupService, TermsController, UnbanService, UnsubscribesController, UpdateCanonicalEmailService, UpdateHighestMemberRoleService, UpdateService, UpdateTodoCountCacheService, UpsertCreditCardValidationService, UserFollowUser, ValidateOtpService