Unused ActiveRecord scopes
After a lexical check, the following scopes seem not to be used unless some dynamic programming makes use of them.
-
without_project_bots !67327 (merged) -
for_milestones !67332 (merged) -
versioning_not_enabled !67336 (merged) -
ignore_failures !67356 (merged) -
with_archived_trace !67392 (merged) -
eager_load_job_artifacts_archive !67396 (merged) -
with_secure_reports_from_options -
with_user_by_email -
inc_author_project -
without_project_deleted -
with_project_and_namespace -
closed_and_merged -
of_milestones -
only_opened -
count_by_project_id -
preload_elasticstack -
preload_environments -
?deprecated_shared -
?deprecated_specific
EE
-
by_user_parent -
including_project -
with_prometheus_integration -
due_date_order_desc -
with_findings_and_scanner -
with_logging_info -
include_gitlab_subscription_with_hosted_plan -
related_issues_for_batches
Approach
Try to remove them one by one,
- by relying on testing,
- git blame & history to discover the original MR and the deletion
- and original author's acknowledgement
Edited by Alper Akgun