gitlab-org--gitlab-foss/app/helpers
Stan Hu b6125f7045 Fix fast admin counters not working when PostgreSQL has secondaries
This commit does a number of things:

1. Reduces the number of queries needed by perform a single query to get all
the tuples for the relevant rows.

2. Uses a transaction to query the tuple counts to ensure that the data
is retrieved from the primary.

Closes #46742
2018-05-25 22:58:43 -07:00
..
accounts_helper.rb
active_sessions_helper.rb Display and revoke active sessions 2018-05-02 08:08:16 +00:00
appearances_helper.rb Backport changes in EE MR 4972: System Header and Footer 2018-04-02 14:27:12 +00:00
application_helper.rb CE: Use render_if_exists to hide EE specific codes 2018-05-23 12:56:11 +00:00
application_settings_helper.rb Adds remote mirror table migration 2018-05-07 12:00:13 +02:00
auth_helper.rb Exclude LDAP from OmniauthCallbackController base methods 2018-04-30 17:32:23 +01:00
auto_devops_helper.rb Display help text below auto devops domain with nip.io domain name (#45561) 2018-05-15 10:36:57 +02:00
avatars_helper.rb Merge branch 'master' into 'bootstrap4' 2018-05-01 16:21:47 +00:00
award_emoji_helper.rb
blame_helper.rb Fix division by zero for blame age map 2017-08-24 22:27:31 -05:00
blob_helper.rb Resolve "Web IDE doesn't work for branches with slashes" 2018-05-23 09:36:41 +00:00
boards_helper.rb Allow assigning and filtering issuables by ancestor group labels 2018-04-04 15:40:29 +00:00
branches_helper.rb Add overview of branches and a filter for active/stale branches 2018-03-06 21:28:14 +09:00
breadcrumbs_helper.rb Merge branch 'icons-update-nav-bars' into 'master' 2017-09-29 13:32:17 +00:00
broadcast_messages_helper.rb
builds_helper.rb Use relative _path helper URLs in the GitLab UI 2017-12-07 11:19:37 -06:00
button_helper.rb Fixed clone buttons adding description when append_link is false 2017-12-05 17:39:18 -06:00
ci_status_helper.rb Fix tooltips 2018-04-17 10:36:18 -05:00
clusters_helper.rb Resolve "Inform users of up to $500 offer for GCP account" 2018-05-07 18:06:02 +00:00
commits_helper.rb Merge branch 'master' into bootstrap4 2018-05-24 16:48:54 -05:00
compare_helper.rb Rename create_merge_request permissions 2018-04-11 10:51:15 +02:00
components_helper.rb
conversational_development_index_helper.rb
count_helper.rb Fix fast admin counters not working when PostgreSQL has secondaries 2018-05-25 22:58:43 -07:00
dashboard_helper.rb Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
defer_script_tag_helper.rb
deploy_tokens_helper.rb Handle limit for datetime attributes on MySQL 2018-04-06 22:28:44 -05:00
diff_helper.rb [Rails5] Add safe_params helper 2018-04-08 15:35:30 +11:00
dropdowns_helper.rb Backports EE changes from disabling branch unprotect UI 2018-04-25 22:02:41 +01:00
emails_helper.rb Backport changes in EE MR 4972: System Header and Footer 2018-04-02 14:27:12 +00:00
emoji_helper.rb
environment_helper.rb
environments_helper.rb
events_helper.rb Remove tooltips on activity tabs 2018-05-11 11:55:40 -07:00
explore_helper.rb Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
external_wiki_helper.rb
form_helper.rb Bring one group board to CE 2018-03-03 12:56:17 -03:00
git_helper.rb
gitlab_routing_helper.rb Inline runner_path and runners_path helpers 2018-05-07 08:54:07 +02:00
graph_helper.rb Don't use rugged in Repository#refs_hash 2018-02-07 15:07:03 +01:00
groups_helper.rb Projects and groups badges settings UI 2018-04-08 10:20:05 +00:00
hooks_helper.rb
icons_helper.rb Merge branch 'master' into 'bootstrap4' 2018-04-16 15:05:01 +00:00
import_helper.rb Fix provider server URL used when listing repos to import 2018-03-12 16:01:43 -05:00
instance_configuration_helper.rb Added ssh fingerprint, gitlab ci and pages information in an instance configuration page 2017-10-25 23:51:26 +03:00
issuables_helper.rb Fix collapsed sidebar tooltips 2018-05-24 11:08:19 -05:00
issues_helper.rb Show New Issue link for projects 2018-04-11 10:51:43 +02:00
javascript_helper.rb remove deprecated page_specific_javascript_bundle_tag 2018-03-12 14:19:51 -05:00
kerberos_spnego_helper.rb
labels_helper.rb Set .bdage for labelshelper 2018-04-13 16:13:47 -05:00
lazy_image_tag_helper.rb Another Change for cleanup 2017-10-05 17:49:11 +02:00
markup_helper.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
mattermost_helper.rb
members_helper.rb Refactor member view by using presenter 2017-12-11 18:30:56 +01:00
merge_requests_helper.rb Hide new mr from dropdown for archived projects 2018-04-11 10:51:15 +02:00
milestones_helper.rb Remove unnecessary milestone addition 2018-05-24 15:02:22 -05:00
milestones_routing_helper.rb replace is_group_milestone? with group_milestone? 2017-08-29 11:14:41 +03:00
namespaces_helper.rb Fix bug rendering group icons when forking 2018-03-28 14:09:32 +01:00
nav_helper.rb Fix Custom hooks are not triggered by UI wiki edit 2018-04-18 17:50:56 +00:00
notes_helper.rb Remove edit_note and update_note abilities in favor of admin_note 2018-04-10 15:46:20 +02:00
notifications_helper.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
numbers_helper.rb Add 1000+ counters (instead of inifnite) to jobs controller 2017-10-06 14:43:48 +02:00
page_layout_helper.rb Update styling and use Gitlab::Utils.to_boolean 2018-03-27 13:13:48 -05:00
pagination_helper.rb Use Prev/Next pagination for exploring projects 2017-08-14 13:53:42 +02:00
performance_bar_helper.rb
pipeline_schedules_helper.rb Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00
preferences_helper.rb 'Assigned Issues' and 'Assigned Merge Requests' as dashboard user choices 2018-03-27 12:16:12 +00:00
profiles_helper.rb Moved o_auth/saml/ldap modules under gitlab/auth 2018-02-28 16:53:02 +01:00
projects_helper.rb Project Sidebar: Split CI/CD into CI/CD and Operations 2018-05-16 11:16:33 +00:00
rss_helper.rb
runners_helper.rb
safe_params_helper.rb Fix typos in comments [ci skip] 2018-04-08 16:27:27 +11:00
search_helper.rb Replace deprecated name_with_namespace with full_name in app and spec 2018-03-05 16:15:26 +02:00
selects_helper.rb Remove unused push_code_to_protected_branches 2018-01-05 23:45:12 +08:00
sentry_helper.rb
services_helper.rb Merge branch 'jej/mattermost-notification-confidentiality-10-6' into 'security-10-6' 2018-04-05 08:41:56 +02:00
sidekiq_helper.rb Enable RuboCop Style/RegexpLiteral 2018-02-01 02:06:07 +09:00
snippets_helper.rb fix failing spec 2018-03-07 20:24:16 +05:30
sorting_helper.rb Enable sorting by name in the Groups dropdown 2017-12-20 19:34:50 +00:00
storage_health_helper.rb Move the circuitbreaker check out in a separate process 2017-12-08 09:11:39 +01:00
storage_helper.rb
submodule_helper.rb Enable RuboCop Style/RegexpLiteral 2018-02-01 02:06:07 +09:00
system_note_helper.rb Update timeline icon for description edit 2018-05-01 00:41:29 +03:00
tab_helper.rb Remove title attribute from sidebar elements 2017-09-13 14:30:31 +01:00
tags_helper.rb
time_helper.rb
todos_helper.rb Replace deprecated name_with_namespace with full_name in app and spec 2018-03-05 16:15:26 +02:00
tree_helper.rb make call to 'html_escape' unambiguous 2018-04-17 11:39:11 +02:00
triggers_helper.rb
user_callouts_helper.rb Resolve "Inform users of up to $500 offer for GCP account" 2018-05-07 18:06:02 +00:00
users_helper.rb Block access to API & git when terms are enforced 2018-05-10 17:02:27 +02:00
version_check_helper.rb use Gitlab::UserSettings directly as a singleton instead of including/extending it 2018-02-02 18:39:55 +00:00
visibility_level_helper.rb use Gitlab::UserSettings directly as a singleton instead of including/extending it 2018-02-02 18:39:55 +00:00
webpack_helper.rb add webpack_ prefix to entrypoint paths helper 2018-05-07 11:19:54 -05:00
wiki_helper.rb Allow moving wiki pages from the UI 2018-02-05 17:17:21 +00:00
workhorse_helper.rb Add option to suppress archive commit sha 2018-04-04 16:56:18 -04:00