dfdfa913ba
- Add two new ActiveRecord models: - RootNamespaceStoragestatistics will persist root namespace statistics - NamespaceAggregationSchedule will save information when a new update to the namespace statistics needs to be scheduled - Inject into UpdateProjectStatistics concern a new callback that will call an async job to insert a new row onto NamespaceAggregationSchedule table - When a new row is inserted a new job is scheduled. This job will update call an specific service to update the statistics and after that it will delete thee aggregated scheduled row - The RefresherServices makes heavy use of arel to build composable queries to update Namespace::RootStorageStatistics attributes. - Add an extra worker to traverse pending rows on NAmespace::AggregationSchedule table and schedule a worker for each one of this rows. - Add an extra worker to traverse pending rows on NAmespace::AggregationSchedule table and schedule a worker for each one of this rows |
||
---|---|---|
.. | ||
application_settings | ||
applications | ||
auth | ||
auto_merge | ||
boards | ||
branches | ||
chat_names | ||
ci | ||
clusters | ||
commits | ||
deploy_keys | ||
deploy_tokens | ||
discussions | ||
emails | ||
error_tracking | ||
events | ||
files | ||
git | ||
gpg_keys | ||
groups | ||
issuable | ||
issues | ||
keys | ||
labels | ||
lfs | ||
members | ||
merge_requests | ||
milestones | ||
namespaces | ||
notes | ||
pages_domains | ||
projects | ||
prometheus | ||
protected_branches | ||
protected_tags | ||
quick_actions | ||
releases | ||
resource_events | ||
search | ||
submodules | ||
suggestions | ||
tags | ||
test_hooks | ||
todos/destroy | ||
users | ||
wiki_pages | ||
wikis | ||
access_token_validation_service_spec.rb | ||
audit_event_service_spec.rb | ||
auto_merge_service_spec.rb | ||
base_count_service_spec.rb | ||
cohorts_service_spec.rb | ||
compare_service_spec.rb | ||
create_branch_service_spec.rb | ||
create_snippet_service_spec.rb | ||
delete_branch_service_spec.rb | ||
delete_merged_branches_service_spec.rb | ||
event_create_service_spec.rb | ||
gravatar_service_spec.rb | ||
import_export_clean_up_service_spec.rb | ||
note_summary_spec.rb | ||
notification_recipient_service_spec.rb | ||
notification_service_spec.rb | ||
preview_markdown_service_spec.rb | ||
push_event_payload_service_spec.rb | ||
repair_ldap_blocked_user_service_spec.rb | ||
repository_archive_clean_up_service_spec.rb | ||
reset_project_cache_service_spec.rb | ||
search_service_spec.rb | ||
service_response_spec.rb | ||
spam_service_spec.rb | ||
submit_usage_ping_service_spec.rb | ||
system_hooks_service_spec.rb | ||
system_note_service_spec.rb | ||
task_list_toggle_service_spec.rb | ||
todo_service_spec.rb | ||
update_deployment_service_spec.rb | ||
update_merge_request_metrics_service_spec.rb | ||
update_snippet_service_spec.rb | ||
upload_service_spec.rb | ||
user_project_access_changed_service_spec.rb | ||
verify_pages_domain_service_spec.rb | ||
web_hook_service_spec.rb |