Commit c33411a0 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch 'correcting-overridden-typos-in-the-codebase' into 'master'

Correcting several instances of 'overridden' being misspelled

See merge request gitlab-org/gitlab!36246
parents d3606d83 7495242e
...@@ -62,7 +62,7 @@ module SearchHelper ...@@ -62,7 +62,7 @@ module SearchHelper
}).html_safe }).html_safe
end end
# Overriden in EE # Overridden in EE
def search_blob_title(project, path) def search_blob_title(project, path)
path path
end end
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# of directly having a repository, like project or snippet. # of directly having a repository, like project or snippet.
# #
# It also includes `Referable`, therefore the method # It also includes `Referable`, therefore the method
# `to_reference` should be overriden in case the object # `to_reference` should be overridden in case the object
# needs any special behavior. # needs any special behavior.
module HasRepository module HasRepository
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
...@@ -65,7 +65,7 @@ class ClusterablePresenter < Gitlab::View::Presenter::Delegated ...@@ -65,7 +65,7 @@ class ClusterablePresenter < Gitlab::View::Presenter::Delegated
raise NotImplementedError raise NotImplementedError
end end
# Will be overidden in EE # Will be overridden in EE
def environments_cluster_path(cluster) def environments_cluster_path(cluster)
nil nil
end end
......
...@@ -19,7 +19,7 @@ module Users ...@@ -19,7 +19,7 @@ module Users
private private
def after_block_hook(user) def after_block_hook(user)
# overriden by EE module # overridden by EE module
end end
end end
end end
......
...@@ -80,9 +80,9 @@ module MergeRequests ...@@ -80,9 +80,9 @@ module MergeRequests
users_mrs = yield(items.joins(approval_rules: :users)) users_mrs = yield(items.joins(approval_rules: :users))
group_users_mrs = yield(items.joins(approval_rules: { groups: :users })) group_users_mrs = yield(items.joins(approval_rules: { groups: :users }))
mrs_without_overriden_rules = items.left_outer_joins(:approval_rules).where(approval_merge_request_rules: { id: nil }) mrs_without_overridden_rules = items.left_outer_joins(:approval_rules).where(approval_merge_request_rules: { id: nil })
project_users_mrs = yield(mrs_without_overriden_rules.joins(target_project: { approval_rules: :users })) project_users_mrs = yield(mrs_without_overridden_rules.joins(target_project: { approval_rules: :users }))
project_group_users_mrs = yield(mrs_without_overriden_rules.joins(target_project: { approval_rules: { groups: :users } })) project_group_users_mrs = yield(mrs_without_overridden_rules.joins(target_project: { approval_rules: { groups: :users } }))
items.select_from_union([users_mrs, group_users_mrs, project_users_mrs, project_group_users_mrs]) items.select_from_union([users_mrs, group_users_mrs, project_users_mrs, project_group_users_mrs])
end end
......
...@@ -29,7 +29,7 @@ module Gitlab ...@@ -29,7 +29,7 @@ module Gitlab
}.merge(extra_log_data).compact }.merge(extra_log_data).compact
end end
# Intended to be overidden elsewhere # Intended to be overridden elsewhere
def extra_log_data def extra_log_data
{} {}
end end
......
...@@ -93,7 +93,7 @@ module Gitlab ...@@ -93,7 +93,7 @@ module Gitlab
Gitlab::ErrorTracking.track_and_raise_for_dev_exception(error, @context.sentry_payload) Gitlab::ErrorTracking.track_and_raise_for_dev_exception(error, @context.sentry_payload)
end end
# Overriden in EE # Overridden in EE
def rescue_errors def rescue_errors
RESCUE_ERRORS RESCUE_ERRORS
end end
......
...@@ -42,7 +42,7 @@ module Gitlab ...@@ -42,7 +42,7 @@ module Gitlab
end end
end end
# Overriden in Gitlab::WikiFileFinder # Overridden in Gitlab::WikiFileFinder
def search_paths(query) def search_paths(query)
repository.search_files_by_name(query, ref) repository.search_files_by_name(query, ref)
end end
......
...@@ -369,7 +369,7 @@ describe('Dashboard Panel', () => { ...@@ -369,7 +369,7 @@ describe('Dashboard Panel', () => {
}); });
}); });
it('it is overriden when a datazoom event is received', () => { it('it is overridden when a datazoom event is received', () => {
state.logsPath = mockLogsPath; state.logsPath = mockLogsPath;
state.timeRange = mockTimeRange; state.timeRange = mockTimeRange;
......
...@@ -65,14 +65,14 @@ RSpec.describe Gitlab::Lograge::CustomOptions do ...@@ -65,14 +65,14 @@ RSpec.describe Gitlab::Lograge::CustomOptions do
end end
end end
context 'when correlation_id is overriden' do context 'when correlation_id is overridden' do
let(:correlation_id_key) { Labkit::Correlation::CorrelationId::LOG_KEY } let(:correlation_id_key) { Labkit::Correlation::CorrelationId::LOG_KEY }
before do before do
event_payload[correlation_id_key] = '123456' event_payload[correlation_id_key] = '123456'
end end
it 'sets the overriden value' do it 'sets the overridden value' do
expect(subject[correlation_id_key]).to eq('123456') expect(subject[correlation_id_key]).to eq('123456')
end end
end end
......
...@@ -298,7 +298,7 @@ RSpec.describe ReactiveCaching, :use_clean_rails_memory_store_caching do ...@@ -298,7 +298,7 @@ RSpec.describe ReactiveCaching, :use_clean_rails_memory_store_caching do
expect(read_reactive_cache(instance)).not_to eq(calculation.call) expect(read_reactive_cache(instance)).not_to eq(calculation.call)
end end
context 'when reactive_cache_limit_enabled? is overriden to return false' do context 'when reactive_cache_limit_enabled? is overridden to return false' do
before do before do
allow(instance).to receive(:reactive_cache_limit_enabled?).and_return(false) allow(instance).to receive(:reactive_cache_limit_enabled?).and_return(false)
end end
......
...@@ -204,7 +204,7 @@ RSpec.describe PersonalAccessToken do ...@@ -204,7 +204,7 @@ RSpec.describe PersonalAccessToken do
end end
describe '.simple_sorts' do describe '.simple_sorts' do
it 'includes overriden keys' do it 'includes overridden keys' do
expect(described_class.simple_sorts.keys).to include(*%w(expires_at_asc expires_at_desc)) expect(described_class.simple_sorts.keys).to include(*%w(expires_at_asc expires_at_desc))
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment