Module: Users
- Defined in:
- app/services/users/migrate_records_to_ghost_user_service.rb,
lib/users/internal.rb,
app/models/users/callout.rb,
app/models/users/banned_user.rb,
app/models/users/calloutable.rb,
app/models/users/group_visit.rb,
app/models/users/saved_reply.rb,
app/models/users/group_callout.rb,
app/models/users/project_visit.rb,
app/services/users/ban_service.rb,
app/models/users/project_callout.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/unblock_service.rb,
app/models/concerns/users/visitable.rb,
app/services/users/activate_service.rb,
app/services/users/activity_service.rb,
app/controllers/users/pins_controller.rb,
app/models/users/ghost_user_migration.rb,
app/policies/users/saved_reply_policy.rb,
app/services/users/deactivate_service.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/models/users/namespace_commit_email.rb,
app/models/users/phone_number_validation.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/services/users/validate_push_otp_service.rb,
app/controllers/users/unsubscribes_controller.rb,
app/services/concerns/users/new_user_notifier.rb,
app/services/users/allow_possible_spam_service.rb,
app/services/users/registrations_build_service.rb,
app/services/users/repair_ldap_blocked_service.rb,
app/services/users/validate_manual_otp_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/workers/users/track_namespace_visits_worker.rb,
app/policies/users/namespace_commit_email_policy.rb,
app/services/concerns/users/participable_service.rb,
app/services/users/assigned_issues_count_service.rb,
app/services/users/dismiss_group_callout_service.rb,
app/services/users/saved_replies/destroy_service.rb,
app/controllers/users/namespace_visits_controller.rb,
app/controllers/users/project_callouts_controller.rb,
app/services/users/disallow_possible_spam_service.rb,
app/services/users/update_canonical_email_service.rb,
app/workers/users/deactivate_dormant_users_worker.rb,
app/services/users/dismiss_project_callout_service.rb,
app/services/users/email_verification/base_service.rb,
app/services/users/update_todo_count_cache_service.rb,
app/services/users/in_product_marketing_email_records.rb,
app/services/users/set_namespace_commit_email_service.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,
app/services/users/email_verification/update_email_service.rb,
app/services/users/email_verification/generate_token_service.rb,
app/services/users/email_verification/validate_token_service.rb,
app/workers/users/migrate_records_to_ghost_user_in_batches_worker.rb,
app/services/users/migrate_records_to_ghost_user_in_batches_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, EmailVerification, GroupCalloutsHelper, NewUserNotifier, ParticipableService, SavedReplies, Visitable Classes: ActivateService, ActivityService, AllowPossibleSpamService, ApproveService, AssignedIssuesCountService, AuthorizedBuildService, AuthorizedCreateService, BanService, BannedUser, BannedUserBaseService, BatchStatusCleanerService, BlockService, BuildService, Callout, CalloutsController, CreateService, CreateStatisticsWorker, CreditCardValidation, DeactivateDormantUsersWorker, DeactivateService, DestroyService, DisallowPossibleSpamService, DismissCalloutService, DismissGroupCalloutService, DismissProjectCalloutService, GhostUserMigration, GroupCallout, GroupCalloutsController, GroupVisit, InProductMarketingEmail, InProductMarketingEmailRecords, Internal, KeysCountService, LastPushEventService, MergeRequestInteraction, MigrateRecordsToGhostUserInBatchesService, MigrateRecordsToGhostUserInBatchesWorker, MigrateRecordsToGhostUserService, NamespaceCommitEmail, NamespaceCommitEmailPolicy, NamespaceVisitsController, PhoneNumberValidation, PinsController, ProjectCallout, ProjectCalloutsController, ProjectVisit, RefreshAuthorizedProjectsService, RegistrationsBuildService, RejectService, RepairLdapBlockedService, RespondToTermsService, SavedReply, SavedReplyPolicy, SetNamespaceCommitEmailService, SetStatusService, SignupService, TermsController, TrackNamespaceVisitsWorker, UnbanService, UnblockService, UnsubscribesController, UpdateCanonicalEmailService, UpdateHighestMemberRoleService, UpdateService, UpdateTodoCountCacheService, UpsertCreditCardValidationService, UserFollowUser, ValidateManualOtpService, ValidatePushOtpService