gitlab-org--gitlab-foss/app/models
Alessio Caiazza 606a1d2d31 Expose namespace storage statistics with GraphQL
Root namespaces have storage statistics.
This commit allows namespace owners to get those stats via GraphQL
queries like the following one

{
  namespace(fullPath: "a_namespace_path") {
    rootStorageStatistics {
      storageSize
      repositorySize
      lfsObjectsSize
      buildArtifactsSize
      packagesSize
      wikiSize
    }
  }
}
2019-08-22 22:08:28 +00:00
..
analytics Migrations for Cycle Analytics backend 2019-08-15 19:19:37 +00:00
application_setting Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
badges
blob_viewer
ci Avoid conflicts between ArchiveTraceWorkers 2019-08-22 10:28:12 +07:00
clusters Fix Arel deprecation warning in clusters_hierarchy 2019-08-16 09:59:25 -07:00
concerns Add service classes for mutating AwardEmoji 2019-08-21 11:39:41 +12:00
conversational_development_index Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
cycle_analytics Add code review remarks 2019-07-23 12:01:39 +02:00
diff_viewer
error_tracking Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
hooks Refactor SystemHookUrlValidator and specs 2019-08-02 15:39:18 +01:00
identity Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
issue Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
members Merge branch '39-count-unique-users-for-more-accurate-smau-reporting' into 'master' 2019-08-19 14:45:24 +00:00
merge_request Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
namespace Expose namespace storage statistics with GraphQL 2019-08-22 22:08:28 +00:00
network Only allow 30 RPCs per test case to Gitaly 2019-02-22 14:51:27 +00:00
postgresql Fix background migrations failing with unused replication slot 2019-06-25 08:35:29 -07:00
project_services Allow disabling group/project email notifications 2019-08-15 17:37:36 +00:00
protected_branch Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
protected_tag Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
releases Align UrlValidator to validate_url gem implementation. 2019-04-11 06:29:07 +00:00
serverless Add Knative metrics to Prometheus 2019-04-06 02:02:39 +00:00
storage Add a rubocop for Rails.logger 2019-07-10 19:26:47 +00:00
uploads Add a rubocop for Rails.logger 2019-07-10 19:26:47 +00:00
.gitkeep
ability.rb
abuse_report.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
active_session.rb ActiveSession.cleaned_up_lookup_entries to use Redis#pipelined 2019-08-07 09:32:05 +00:00
appearance.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
application_record.rb Optimise upload path calls 2019-05-14 11:01:48 -05:00
application_setting.rb Migrates Snowplow backend from EE to CE 2019-08-14 19:21:58 +00:00
application_setting_implementation.rb Migrates Snowplow backend from EE to CE 2019-08-14 19:21:58 +00:00
audit_event.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
award_emoji.rb Add service classes for mutating AwardEmoji 2019-08-21 11:39:41 +12:00
badge.rb Align UrlValidator to validate_url gem implementation. 2019-04-11 06:29:07 +00:00
blob.rb Update comments about N + 1 Gitaly calls 2019-04-09 17:21:16 +02:00
board.rb Move order lambda to list scope 2019-06-27 10:32:51 +12:00
board_group_recent_visit.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
board_project_recent_visit.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
broadcast_message.rb Set 2 weeks as the expiration time for the current broadcast message 2019-06-25 19:41:05 -03:00
chat_name.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
chat_team.rb Add a rubocop for Rails.logger 2019-07-10 19:26:47 +00:00
commit.rb Enable Rubocop Performance/ReverseEach 2019-07-24 14:08:25 -07:00
commit_collection.rb Backport splitting approval changes from CE 2019-04-02 11:01:07 +00:00
commit_range.rb Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
commit_status.rb Optimise DAG processing 2019-08-14 11:34:44 +02:00
commit_status_enums.rb Create framework for build prerequisites 2019-03-20 12:04:40 +11:00
compare.rb
container_repository.rb Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3809 2019-08-01 20:38:07 +03:00
dashboard_group_milestone.rb Fix bug with closed milestones in dashboard 2019-07-16 15:33:35 -06:00
dashboard_milestone.rb
deploy_key.rb Speed up loading and filtering deploy keys and their projects 2019-08-05 06:42:34 -07:00
deploy_keys_project.rb Speed up loading and filtering deploy keys and their projects 2019-08-05 06:42:34 -07:00
deploy_token.rb Add username to deploy tokens 2019-07-02 18:56:48 +00:00
deployment.rb Remove dead MySQL code 2019-07-23 16:53:03 +01:00
deployment_metrics.rb Removes potentially incorrect, and slow fallback 2019-07-25 16:46:20 +12:00
diff_discussion.rb
diff_note.rb Make diff_refs_match_commit validation reusable 2019-08-01 16:00:36 -05:00
directly_addressed_user.rb
discussion.rb GraphQL support for Notes created in discussions 2019-07-10 12:13:48 +12:00
discussion_note.rb
email.rb Upgrade to Rails 5.2 2019-07-12 10:15:31 +08:00
environment.rb Use separate Kubernetes namespaces per environment 2019-08-07 04:40:29 +00:00
environment_status.rb Add additional test case for Gitaly N+1 for diff files 2019-07-10 16:07:14 +02:00
epic.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
event.rb Rename methods that conflict in Rails 5.2 2019-05-12 23:42:06 -05:00
event_collection.rb
external_issue.rb
fork_network.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
fork_network_member.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
generic_commit_status.rb Align UrlValidator to validate_url gem implementation. 2019-04-11 06:29:07 +00:00
global_label.rb Move scoped_label into label presenter 2019-04-23 19:58:20 +00:00
global_milestone.rb Move scoped_label into label presenter 2019-04-23 19:58:20 +00:00
gpg_key.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
gpg_key_subkey.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
gpg_signature.rb Extract a Git::{Base,Tag,Branch}HooksService 2019-04-05 18:26:53 +01:00
group.rb Add group level container repository endpoints 2019-08-05 20:00:50 +00:00
group_custom_attribute.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
group_label.rb
group_milestone.rb
guest.rb
identity.rb Adds Identity#for_user for use in an EE MR 2019-05-24 15:14:19 +07:00
import_export_upload.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
individual_note_discussion.rb Remove reply_to_individual_notes feature flag 2019-04-03 10:00:18 +08:00
instance_configuration.rb Display maximum artifact size from runtime config 2019-04-03 21:02:11 +02:00
internal_id.rb Always use internal ID tables in development and production 2019-04-22 10:48:16 -07:00
issue.rb Split MR widget into cached and non-cached serializers 2019-08-09 21:01:55 +00:00
issue_assignee.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
issue_collection.rb
key.rb Resolved EE differences in app/views/profiles/keys 2019-05-31 16:13:53 +02:00
label.rb Improve quick action error messages 2019-08-13 00:40:39 +00:00
label_link.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
label_note.rb Update label note to support scoped labels notes 2019-07-02 13:27:03 +02:00
label_priority.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
legacy_diff_discussion.rb
legacy_diff_note.rb Adds the Rubocop ReturnNil cop 2019-03-06 17:51:56 +02:00
lfs_download_object.rb
lfs_file_lock.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
lfs_object.rb CE backport for changes in EE MR 13894 2019-06-17 11:23:06 +12:00
lfs_objects_project.rb CE backport for changes in EE MR 13894 2019-06-17 11:23:06 +12:00
license_template.rb
list.rb Make issue boards importable 2019-08-02 14:35:10 -05:00
member.rb Rename search_invited to search_invite_email 2019-08-09 00:33:42 -07:00
members_preloader.rb
merge_request.rb Only read rebase status from the model 2019-08-15 18:54:08 +00:00
merge_request_assignee.rb Add multiple assignees migration and table population 2019-03-25 19:50:40 -03:00
merge_request_diff.rb Add MergeRequestDiff#lines_count convenience method 2019-08-06 11:38:50 +03:00
merge_request_diff_commit.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
merge_request_diff_file.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
merge_requests_closing_issues.rb Upgrade to Rails 5.2 2019-07-12 10:15:31 +08:00
milestone.rb Revert "Merge branch '4221-board-milestone-should-persist-any-none-properly-ce' into 'master'" 2019-08-09 09:59:38 +00:00
namespace.rb Allow disabling group/project email notifications 2019-08-15 17:37:36 +00:00
note.rb Fix first-time contributor notes not rendering 2019-07-31 06:52:11 -07:00
note_diff_file.rb Remove cleaned up OIDs from database and cache 2019-05-06 11:35:03 +01:00
notification_reason.rb
notification_recipient.rb Allow disabling group/project email notifications 2019-08-15 17:37:36 +00:00
notification_setting.rb Simplify notification check for participating 2019-06-06 01:34:25 +08:00
oauth_access_grant.rb
oauth_access_token.rb
out_of_context_discussion.rb
pages_domain.rb Validate certificate chain only if it's changed 2019-07-22 15:38:08 +00:00
pages_domain_acme_order.rb Add pages domains acme orders 2019-06-06 18:55:31 +00:00
personal_access_token.rb OAuth2 support for GitLab personal access tokens 2019-07-22 08:50:25 +00:00
personal_snippet.rb
pool_repository.rb Fix wrong use of ActiveRecord in PoolRepository 2019-04-20 13:27:53 +00:00
programming_language.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
project.rb Add SortingPreference concern 2019-08-21 10:13:45 +00:00
project_authorization.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
project_auto_devops.rb Remove ignore rule for ProjectAutoDevops#domain 2019-07-22 15:46:00 +10:00
project_ci_cd_setting.rb Move project default git depth behind feature flags 2019-06-10 17:40:19 +00:00
project_custom_attribute.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
project_daily_statistic.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
project_deploy_token.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
project_feature.rb Fix wrong pages access level default 2019-07-17 12:56:58 +00:00
project_group_link.rb Externalize strings in app/models 2019-04-12 12:28:07 +00:00
project_import_data.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
project_import_state.rb Add a rubocop for Rails.logger 2019-07-10 19:26:47 +00:00
project_label.rb
project_metrics_setting.rb Add ProjectMetricsDashboardSetting model and table 2019-04-26 17:23:26 +00:00
project_repository.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
project_snippet.rb
project_statistics.rb Removes update_statistics_namespace feature flag 2019-08-02 09:29:29 -05:00
project_team.rb
project_wiki.rb New wiki page redirects user to random slug 2019-08-21 09:33:12 +12:00
prometheus_metric.rb Support dashboard params for metrics dashboard 2019-08-07 16:17:35 +00:00
prometheus_metric_enums.rb Support dashboard params for metrics dashboard 2019-08-07 16:17:35 +00:00
protectable_dropdown.rb
protected_branch.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
protected_tag.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
push_event.rb Rename methods that conflict in Rails 5.2 2019-05-12 23:42:06 -05:00
push_event_payload.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
readme_blob.rb
redirect_route.rb Further remove code branches by database type 2019-07-29 12:47:06 +02:00
ref_matcher.rb
release.rb Show upcoming status for releases 2019-07-03 09:12:15 +00:00
remote_mirror.rb Rework retry strategy for remote mirrors 2019-08-13 20:52:01 +00:00
repository.rb Merge branch '64251-branch-name-set-cache' into 'master' 2019-08-19 20:26:02 +00:00
repository_language.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
resource_label_event.rb Update label note to support scoped labels notes 2019-07-02 13:27:03 +02:00
route.rb Upgrade Rails to 5.1.6.1 2019-04-23 08:31:23 +08:00
security_event.rb
sent_notification.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
service.rb Final removal of KubernetesService 2019-08-08 09:47:07 +10:00
shard.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
snippet.rb GraphQL mutations for add, remove and toggle emoji 2019-06-28 12:03:33 +12:00
snippet_blob.rb
spam_log.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
ssh_host_key.rb Add a rubocop for Rails.logger 2019-07-10 19:26:47 +00:00
subscription.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
suggestion.rb Prepare suggestion implementation for multi-line 2019-03-27 12:26:53 -03:00
system_note_metadata.rb Add system notes for when a zoom call was added/removed from an issue 2019-07-29 21:51:16 +02:00
term_agreement.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
timelog.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
todo.rb Rename Todos.with_api_entity_associations to with_entity_associations 2019-06-24 10:49:13 -07:00
tree.rb
trending_project.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
u2f_registration.rb Externalize strings in app/models 2019-04-12 12:28:07 +00:00
upload.rb Externalize strings in app/models 2019-04-12 12:28:07 +00:00
user.rb Merge branch '47003-user-onboarding-replace-current-email-confirmation-flow-with-a-soft-email-confirmation-flow' into 'master' 2019-08-16 12:31:16 +00:00
user_agent_detail.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
user_callout.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
user_callout_enums.rb Revert "Merge branch '64341-data-and-privacy-agreement-for-gitlab-users' into 'master'" 2019-08-14 17:53:07 +00:00
user_custom_attribute.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
user_interacted_project.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
user_preference.rb Enable Rubocop Performance/InefficientHashSearch 2019-07-24 11:47:58 -07:00
user_status.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
user_synced_attributes_metadata.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
users_star_project.rb Fix N+1s queries while loading users 2019-08-19 17:35:46 -03:00
wiki_directory.rb
wiki_page.rb Fix grouping wiki pages by directory 2019-04-12 13:25:17 +00:00