Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
66fb025c
Commit
66fb025c
authored
Feb 19, 2021
by
Mark Chao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'psi-occurred' into 'master'
Correct spelling of occurred See merge request gitlab-org/gitlab!54537
parents
233423f9
38de9098
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
50 additions
and
50 deletions
+50
-50
app/assets/javascripts/notifications/constants.js
app/assets/javascripts/notifications/constants.js
+2
-2
app/assets/javascripts/pipelines/components/graph/graph_component_wrapper.vue
...ts/pipelines/components/graph/graph_component_wrapper.vue
+1
-1
app/assets/javascripts/projects/pipelines/charts/components/pipeline_charts.vue
.../projects/pipelines/charts/components/pipeline_charts.vue
+2
-2
app/assets/javascripts/projects/settings_service_desk/components/service_desk_root.vue
...ts/settings_service_desk/components/service_desk_root.vue
+1
-1
app/assets/javascripts/reports/components/grouped_test_reports_app.vue
...vascripts/reports/components/grouped_test_reports_app.vue
+1
-1
app/assets/javascripts/static_site_editor/constants.js
app/assets/javascripts/static_site_editor/constants.js
+1
-1
ee/app/assets/javascripts/admin/dev_ops_report/constants.js
ee/app/assets/javascripts/admin/dev_ops_report/constants.js
+2
-2
ee/app/assets/javascripts/integrations/edit/components/jira_issue_creation_vulnerabilities.vue
...s/edit/components/jira_issue_creation_vulnerabilities.vue
+1
-1
ee/lib/gitlab/status_page/storage.rb
ee/lib/gitlab/status_page/storage.rb
+1
-1
ee/spec/frontend/admin/dev_ops_report/mock_data.js
ee/spec/frontend/admin/dev_ops_report/mock_data.js
+2
-2
ee/spec/lib/gitlab/status_page/storage/s3_client_spec.rb
ee/spec/lib/gitlab/status_page/storage/s3_client_spec.rb
+1
-1
ee/spec/lib/gitlab/status_page/storage/s3_multipart_upload_spec.rb
...ib/gitlab/status_page/storage/s3_multipart_upload_spec.rb
+1
-1
locale/gitlab.pot
locale/gitlab.pot
+22
-22
spec/controllers/projects/web_ide_schemas_controller_spec.rb
spec/controllers/projects/web_ide_schemas_controller_spec.rb
+2
-2
spec/features/projects/pages/user_edits_settings_spec.rb
spec/features/projects/pages/user_edits_settings_spec.rb
+2
-2
spec/frontend/monitoring/components/dashboard_panel_builder_spec.js
...end/monitoring/components/dashboard_panel_builder_spec.js
+1
-1
spec/frontend/monitoring/requests/index_spec.js
spec/frontend/monitoring/requests/index_spec.js
+3
-3
spec/frontend/notifications/components/custom_notifications_modal_spec.js
...tifications/components/custom_notifications_modal_spec.js
+2
-2
spec/frontend/notifications/components/notifications_dropdown_spec.js
...d/notifications/components/notifications_dropdown_spec.js
+1
-1
spec/frontend/projects/settings_service_desk/components/service_desk_root_spec.js
...ettings_service_desk/components/service_desk_root_spec.js
+1
-1
No files found.
app/assets/javascripts/notifications/constants.js
View file @
66fb025c
...
@@ -22,10 +22,10 @@ export const i18n = {
...
@@ -22,10 +22,10 @@ export const i18n = {
owner_disabled
:
__
(
'
Notifications have been disabled by the project or group owner
'
),
owner_disabled
:
__
(
'
Notifications have been disabled by the project or group owner
'
),
},
},
updateNotificationLevelErrorMessage
:
__
(
updateNotificationLevelErrorMessage
:
__
(
'
An error occured while updating the notification settings. Please try again.
'
,
'
An error occur
r
ed while updating the notification settings. Please try again.
'
,
),
),
loadNotificationLevelErrorMessage
:
__
(
loadNotificationLevelErrorMessage
:
__
(
'
An error occured while loading the notification settings. Please try again.
'
,
'
An error occur
r
ed while loading the notification settings. Please try again.
'
,
),
),
customNotificationsModal
:
{
customNotificationsModal
:
{
title
:
__
(
'
Custom notification events
'
),
title
:
__
(
'
Custom notification events
'
),
...
...
app/assets/javascripts/pipelines/components/graph/graph_component_wrapper.vue
View file @
66fb025c
...
@@ -32,7 +32,7 @@ export default {
...
@@ -32,7 +32,7 @@ export default {
};
};
},
},
errorTexts
:
{
errorTexts
:
{
[
DRAW_FAILURE
]:
__
(
'
An error ocurred while drawing job relationship links.
'
),
[
DRAW_FAILURE
]:
__
(
'
An error oc
c
urred while drawing job relationship links.
'
),
[
LOAD_FAILURE
]:
__
(
'
We are currently unable to fetch data for this pipeline.
'
),
[
LOAD_FAILURE
]:
__
(
'
We are currently unable to fetch data for this pipeline.
'
),
[
DEFAULT
]:
__
(
'
An unknown error occurred while loading this graph.
'
),
[
DEFAULT
]:
__
(
'
An unknown error occurred while loading this graph.
'
),
},
},
...
...
app/assets/javascripts/projects/pipelines/charts/components/pipeline_charts.vue
View file @
66fb025c
...
@@ -252,10 +252,10 @@ export default {
...
@@ -252,10 +252,10 @@ export default {
},
},
errorTexts
:
{
errorTexts
:
{
[
LOAD_ANALYTICS_FAILURE
]:
s__
(
[
LOAD_ANALYTICS_FAILURE
]:
s__
(
'
PipelineCharts|An error has ocurred when retrieving the analytics data
'
,
'
PipelineCharts|An error has oc
c
urred when retrieving the analytics data
'
,
),
),
[
LOAD_PIPELINES_FAILURE
]:
s__
(
[
LOAD_PIPELINES_FAILURE
]:
s__
(
'
PipelineCharts|An error has ocurred when retrieving the pipelines data
'
,
'
PipelineCharts|An error has oc
c
urred when retrieving the pipelines data
'
,
),
),
[
PARSE_FAILURE
]:
s__
(
'
PipelineCharts|There was an error parsing the data for the charts.
'
),
[
PARSE_FAILURE
]:
s__
(
'
PipelineCharts|There was an error parsing the data for the charts.
'
),
[
DEFAULT
]:
s__
(
'
PipelineCharts|An unknown error occurred while processing CI/CD analytics.
'
),
[
DEFAULT
]:
s__
(
'
PipelineCharts|An unknown error occurred while processing CI/CD analytics.
'
),
...
...
app/assets/javascripts/projects/settings_service_desk/components/service_desk_root.vue
View file @
66fb025c
...
@@ -95,7 +95,7 @@ export default {
...
@@ -95,7 +95,7 @@ export default {
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
showAlert
(
this
.
showAlert
(
sprintf
(
__
(
'
An error occured while saving changes: %{error}
'
),
{
sprintf
(
__
(
'
An error occur
r
ed while saving changes: %{error}
'
),
{
error
:
err
?.
response
?.
data
?.
message
,
error
:
err
?.
response
?.
data
?.
message
,
}),
}),
);
);
...
...
app/assets/javascripts/reports/components/grouped_test_reports_app.vue
View file @
66fb025c
...
@@ -86,7 +86,7 @@ export default {
...
@@ -86,7 +86,7 @@ export default {
}
}
if
(
!
report
.
name
)
{
if
(
!
report
.
name
)
{
return
s__
(
'
Reports|An error occured while loading report
'
);
return
s__
(
'
Reports|An error occur
r
ed while loading report
'
);
}
}
return
reportTextBuilder
(
name
,
summary
);
return
reportTextBuilder
(
name
,
summary
);
...
...
app/assets/javascripts/static_site_editor/constants.js
View file @
66fb025c
...
@@ -12,7 +12,7 @@ export const SUBMIT_CHANGES_MERGE_REQUEST_ERROR = s__(
...
@@ -12,7 +12,7 @@ export const SUBMIT_CHANGES_MERGE_REQUEST_ERROR = s__(
'
StaticSiteEditor|Could not create merge request.
'
,
'
StaticSiteEditor|Could not create merge request.
'
,
);
);
export
const
LOAD_CONTENT_ERROR
=
__
(
export
const
LOAD_CONTENT_ERROR
=
__
(
'
An error ocurred while loading your content. Please try again.
'
,
'
An error oc
c
urred while loading your content. Please try again.
'
,
);
);
export
const
DEFAULT_FORMATTING_CHANGES_COMMIT_MESSAGE
=
s__
(
export
const
DEFAULT_FORMATTING_CHANGES_COMMIT_MESSAGE
=
s__
(
...
...
ee/app/assets/javascripts/admin/dev_ops_report/constants.js
View file @
66fb025c
...
@@ -49,7 +49,7 @@ export const DEVOPS_ADOPTION_STRINGS = {
...
@@ -49,7 +49,7 @@ export const DEVOPS_ADOPTION_STRINGS = {
filterPlaceholder
:
s__
(
'
DevopsAdoption|Filter by name
'
),
filterPlaceholder
:
s__
(
'
DevopsAdoption|Filter by name
'
),
selectedGroupsTextSingular
:
s__
(
'
DevopsAdoption|%{selectedCount} group selected
'
),
selectedGroupsTextSingular
:
s__
(
'
DevopsAdoption|%{selectedCount} group selected
'
),
selectedGroupsTextPlural
:
s__
(
'
DevopsAdoption|%{selectedCount} groups selected
'
),
selectedGroupsTextPlural
:
s__
(
'
DevopsAdoption|%{selectedCount} groups selected
'
),
error
:
s__
(
'
DevopsAdoption|An error occured while saving the group. Please try again.
'
),
error
:
s__
(
'
DevopsAdoption|An error occur
r
ed while saving the group. Please try again.
'
),
noResults
:
s__
(
'
DevopsAdoption|No filter results.
'
),
noResults
:
s__
(
'
DevopsAdoption|No filter results.
'
),
},
},
table
:
{
table
:
{
...
@@ -95,7 +95,7 @@ export const DEVOPS_ADOPTION_STRINGS = {
...
@@ -95,7 +95,7 @@ export const DEVOPS_ADOPTION_STRINGS = {
),
),
cancel
:
__
(
'
Cancel
'
),
cancel
:
__
(
'
Cancel
'
),
confirm
:
s__
(
'
DevopsAdoption|Remove Group
'
),
confirm
:
s__
(
'
DevopsAdoption|Remove Group
'
),
error
:
s__
(
'
DevopsAdoption|An error occured while removing the group. Please try again.
'
),
error
:
s__
(
'
DevopsAdoption|An error occur
r
ed while removing the group. Please try again.
'
),
},
},
tableCell
:
{
tableCell
:
{
trueText
:
s__
(
'
DevopsAdoption|Adopted
'
),
trueText
:
s__
(
'
DevopsAdoption|Adopted
'
),
...
...
ee/app/assets/javascripts/integrations/edit/components/jira_issue_creation_vulnerabilities.vue
View file @
66fb025c
...
@@ -27,7 +27,7 @@ export const i18n = {
...
@@ -27,7 +27,7 @@ export const i18n = {
defaultText
:
s__
(
'
JiraService|Select issue type
'
),
defaultText
:
s__
(
'
JiraService|Select issue type
'
),
},
},
fetchIssueTypesButtonLabel
:
s__
(
'
JiraService|Fetch issue types for this Jira project
'
),
fetchIssueTypesButtonLabel
:
s__
(
'
JiraService|Fetch issue types for this Jira project
'
),
fetchIssueTypesErrorMessage
:
s__
(
'
JiraService|An error occured while fetching issue list
'
),
fetchIssueTypesErrorMessage
:
s__
(
'
JiraService|An error occur
r
ed while fetching issue list
'
),
projectKeyWarnings
:
{
projectKeyWarnings
:
{
missing
:
s__
(
'
JiraService|Project key is required to generate issue types
'
),
missing
:
s__
(
'
JiraService|Project key is required to generate issue types
'
),
changed
:
s__
(
'
JiraService|Project key changed, refresh list
'
),
changed
:
s__
(
'
JiraService|Project key changed, refresh list
'
),
...
...
ee/lib/gitlab/status_page/storage.rb
View file @
66fb025c
...
@@ -52,7 +52,7 @@ module Gitlab
...
@@ -52,7 +52,7 @@ module Gitlab
class
Error
<
StandardError
class
Error
<
StandardError
def
initialize
(
bucket
:,
error
:,
**
args
)
def
initialize
(
bucket
:,
error
:,
**
args
)
super
(
super
(
"Error occured
#{
error
.
class
.
name
.
inspect
}
"
\
"Error occur
r
ed
#{
error
.
class
.
name
.
inspect
}
"
\
"for bucket
#{
bucket
.
inspect
}
. "
\
"for bucket
#{
bucket
.
inspect
}
. "
\
"Arguments:
#{
args
.
inspect
}
"
"Arguments:
#{
args
.
inspect
}
"
)
)
...
...
ee/spec/frontend/admin/dev_ops_report/mock_data.js
View file @
66fb025c
...
@@ -128,9 +128,9 @@ export const devopsAdoptionTableHeaders = [
...
@@ -128,9 +128,9 @@ export const devopsAdoptionTableHeaders = [
export
const
segmentName
=
'
Foooo
'
;
export
const
segmentName
=
'
Foooo
'
;
export
const
genericErrorMessage
=
'
An error occured while saving the group. Please try again.
'
;
export
const
genericErrorMessage
=
'
An error occur
r
ed while saving the group. Please try again.
'
;
export
const
dataErrorMessage
=
'
Name already taken.
'
;
export
const
dataErrorMessage
=
'
Name already taken.
'
;
export
const
genericDeleteErrorMessage
=
export
const
genericDeleteErrorMessage
=
'
An error occured while removing the group. Please try again.
'
;
'
An error occur
r
ed while removing the group. Please try again.
'
;
ee/spec/lib/gitlab/status_page/storage/s3_client_spec.rb
View file @
66fb025c
...
@@ -168,7 +168,7 @@ RSpec.describe Gitlab::StatusPage::Storage::S3Client, :aws_s3 do
...
@@ -168,7 +168,7 @@ RSpec.describe Gitlab::StatusPage::Storage::S3Client, :aws_s3 do
end
end
def
error_message
(
error_class
,
**
args
)
def
error_message
(
error_class
,
**
args
)
%{Error occured "Aws::S3::Errors::#{error_class}" }
\
%{Error occur
r
ed "Aws::S3::Errors::#{error_class}" }
\
"for bucket
#{
bucket_name
.
inspect
}
. Arguments:
#{
args
.
inspect
}
"
"for bucket
#{
bucket_name
.
inspect
}
. Arguments:
#{
args
.
inspect
}
"
end
end
...
...
ee/spec/lib/gitlab/status_page/storage/s3_multipart_upload_spec.rb
View file @
66fb025c
...
@@ -108,7 +108,7 @@ RSpec.describe Gitlab::StatusPage::Storage::S3MultipartUpload, :aws_s3 do
...
@@ -108,7 +108,7 @@ RSpec.describe Gitlab::StatusPage::Storage::S3MultipartUpload, :aws_s3 do
end
end
def
error_message
(
error_class
,
**
args
)
def
error_message
(
error_class
,
**
args
)
%{Error occured "Aws::S3::Errors::#{error_class}" }
\
%{Error occur
r
ed "Aws::S3::Errors::#{error_class}" }
\
"for bucket
#{
bucket_name
.
inspect
}
. Arguments:
#{
args
.
inspect
}
"
"for bucket
#{
bucket_name
.
inspect
}
. Arguments:
#{
args
.
inspect
}
"
end
end
end
end
locale/gitlab.pot
View file @
66fb025c
...
@@ -3214,15 +3214,6 @@ msgstr ""
...
@@ -3214,15 +3214,6 @@ msgstr ""
msgid "An error has occurred"
msgid "An error has occurred"
msgstr ""
msgstr ""
msgid "An error occured while loading the notification settings. Please try again."
msgstr ""
msgid "An error occured while saving changes: %{error}"
msgstr ""
msgid "An error occured while updating the notification settings. Please try again."
msgstr ""
msgid "An error occurred adding a draft to the thread."
msgid "An error occurred adding a draft to the thread."
msgstr ""
msgstr ""
...
@@ -3301,6 +3292,9 @@ msgstr ""
...
@@ -3301,6 +3292,9 @@ msgstr ""
msgid "An error occurred while dismissing the feature highlight. Refresh the page and try dismissing again."
msgid "An error occurred while dismissing the feature highlight. Refresh the page and try dismissing again."
msgstr ""
msgstr ""
msgid "An error occurred while drawing job relationship links."
msgstr ""
msgid "An error occurred while enabling Service Desk."
msgid "An error occurred while enabling Service Desk."
msgstr ""
msgstr ""
...
@@ -3457,12 +3451,18 @@ msgstr ""
...
@@ -3457,12 +3451,18 @@ msgstr ""
msgid "An error occurred while loading the merge request."
msgid "An error occurred while loading the merge request."
msgstr ""
msgstr ""
msgid "An error occurred while loading the notification settings. Please try again."
msgstr ""
msgid "An error occurred while loading the pipeline."
msgid "An error occurred while loading the pipeline."
msgstr ""
msgstr ""
msgid "An error occurred while loading the pipelines jobs."
msgid "An error occurred while loading the pipelines jobs."
msgstr ""
msgstr ""
msgid "An error occurred while loading your content. Please try again."
msgstr ""
msgid "An error occurred while making the request."
msgid "An error occurred while making the request."
msgstr ""
msgstr ""
...
@@ -3505,6 +3505,9 @@ msgstr ""
...
@@ -3505,6 +3505,9 @@ msgstr ""
msgid "An error occurred while retrieving projects."
msgid "An error occurred while retrieving projects."
msgstr ""
msgstr ""
msgid "An error occurred while saving changes: %{error}"
msgstr ""
msgid "An error occurred while searching users."
msgid "An error occurred while searching users."
msgstr ""
msgstr ""
...
@@ -3544,6 +3547,9 @@ msgstr ""
...
@@ -3544,6 +3547,9 @@ msgstr ""
msgid "An error occurred while updating the milestone."
msgid "An error occurred while updating the milestone."
msgstr ""
msgstr ""
msgid "An error occurred while updating the notification settings. Please try again."
msgstr ""
msgid "An error occurred while validating group path"
msgid "An error occurred while validating group path"
msgstr ""
msgstr ""
...
@@ -3556,12 +3562,6 @@ msgstr ""
...
@@ -3556,12 +3562,6 @@ msgstr ""
msgid "An error occurred. Please try again."
msgid "An error occurred. Please try again."
msgstr ""
msgstr ""
msgid "An error ocurred while drawing job relationship links."
msgstr ""
msgid "An error ocurred while loading your content. Please try again."
msgstr ""
msgid "An example project for managing Kubernetes clusters integrated with GitLab"
msgid "An example project for managing Kubernetes clusters integrated with GitLab"
msgstr ""
msgstr ""
...
@@ -10359,10 +10359,10 @@ msgstr ""
...
@@ -10359,10 +10359,10 @@ msgstr ""
msgid "DevopsAdoption|Adopted"
msgid "DevopsAdoption|Adopted"
msgstr ""
msgstr ""
msgid "DevopsAdoption|An error occured while removing the group. Please try again."
msgid "DevopsAdoption|An error occur
r
ed while removing the group. Please try again."
msgstr ""
msgstr ""
msgid "DevopsAdoption|An error occured while saving the group. Please try again."
msgid "DevopsAdoption|An error occur
r
ed while saving the group. Please try again."
msgstr ""
msgstr ""
msgid "DevopsAdoption|Approvals"
msgid "DevopsAdoption|Approvals"
...
@@ -16807,7 +16807,7 @@ msgstr ""
...
@@ -16807,7 +16807,7 @@ msgstr ""
msgid "JiraService|%{user_link} mentioned this issue in %{entity_link} of %{project_link}%{branch}:{quote}%{entity_message}{quote}"
msgid "JiraService|%{user_link} mentioned this issue in %{entity_link} of %{project_link}%{branch}:{quote}%{entity_message}{quote}"
msgstr ""
msgstr ""
msgid "JiraService|An error occured while fetching issue list"
msgid "JiraService|An error occur
r
ed while fetching issue list"
msgstr ""
msgstr ""
msgid "JiraService|Automatically transitions Jira issues to the \"Done\" category. %{linkStart}Learn more%{linkEnd}"
msgid "JiraService|Automatically transitions Jira issues to the \"Done\" category. %{linkStart}Learn more%{linkEnd}"
...
@@ -21695,10 +21695,10 @@ msgstr ""
...
@@ -21695,10 +21695,10 @@ msgstr ""
msgid "Pipeline: %{status}"
msgid "Pipeline: %{status}"
msgstr ""
msgstr ""
msgid "PipelineCharts|An error has ocurred when retrieving the analytics data"
msgid "PipelineCharts|An error has oc
c
urred when retrieving the analytics data"
msgstr ""
msgstr ""
msgid "PipelineCharts|An error has ocurred when retrieving the pipelines data"
msgid "PipelineCharts|An error has oc
c
urred when retrieving the pipelines data"
msgstr ""
msgstr ""
msgid "PipelineCharts|An unknown error occurred while processing CI/CD analytics."
msgid "PipelineCharts|An unknown error occurred while processing CI/CD analytics."
...
@@ -24925,10 +24925,10 @@ msgstr ""
...
@@ -24925,10 +24925,10 @@ msgstr ""
msgid "Reports|Activity"
msgid "Reports|Activity"
msgstr ""
msgstr ""
msgid "Reports|An error occur
ed while loading report
"
msgid "Reports|An error occur
red while loading %{name} results
"
msgstr ""
msgstr ""
msgid "Reports|An error occurred while loading
%{name} results
"
msgid "Reports|An error occurred while loading
report
"
msgstr ""
msgstr ""
msgid "Reports|Class"
msgid "Reports|Class"
...
...
spec/controllers/projects/web_ide_schemas_controller_spec.rb
View file @
66fb025c
...
@@ -53,13 +53,13 @@ RSpec.describe Projects::WebIdeSchemasController do
...
@@ -53,13 +53,13 @@ RSpec.describe Projects::WebIdeSchemasController do
end
end
context
'when an error occurs parsing the schema'
do
context
'when an error occurs parsing the schema'
do
let
(
:result
)
{
{
status: :error
,
message:
'Some error occured'
}
}
let
(
:result
)
{
{
status: :error
,
message:
'Some error occur
r
ed'
}
}
it
'returns 422 with the error'
do
it
'returns 422 with the error'
do
subject
subject
expect
(
response
).
to
have_gitlab_http_status
(
:unprocessable_entity
)
expect
(
response
).
to
have_gitlab_http_status
(
:unprocessable_entity
)
expect
(
response
.
body
).
to
eq
(
'{"status":"error","message":"Some error occured"}'
)
expect
(
response
.
body
).
to
eq
(
'{"status":"error","message":"Some error occur
r
ed"}'
)
end
end
end
end
end
end
...
...
spec/features/projects/pages/user_edits_settings_spec.rb
View file @
66fb025c
...
@@ -140,7 +140,7 @@ RSpec.describe 'Pages edits pages settings', :js do
...
@@ -140,7 +140,7 @@ RSpec.describe 'Pages edits pages settings', :js do
before
do
before
do
allow
(
Projects
::
UpdateService
).
to
receive
(
:new
).
and_return
(
service
)
allow
(
Projects
::
UpdateService
).
to
receive
(
:new
).
and_return
(
service
)
allow
(
service
).
to
receive
(
:execute
).
and_return
(
status: :error
,
message:
'Some error has occured'
)
allow
(
service
).
to
receive
(
:execute
).
and_return
(
status: :error
,
message:
'Some error has occur
r
ed'
)
end
end
it
'tries to change the setting'
do
it
'tries to change the setting'
do
...
@@ -150,7 +150,7 @@ RSpec.describe 'Pages edits pages settings', :js do
...
@@ -150,7 +150,7 @@ RSpec.describe 'Pages edits pages settings', :js do
click_button
'Save'
click_button
'Save'
expect
(
page
).
to
have_text
(
'Some error has occured'
)
expect
(
page
).
to
have_text
(
'Some error has occur
r
ed'
)
end
end
end
end
...
...
spec/frontend/monitoring/components/dashboard_panel_builder_spec.js
View file @
66fb025c
...
@@ -188,7 +188,7 @@ describe('dashboard invalid url parameters', () => {
...
@@ -188,7 +188,7 @@ describe('dashboard invalid url parameters', () => {
});
});
describe
(
'
when there is an error
'
,
()
=>
{
describe
(
'
when there is an error
'
,
()
=>
{
const
mockError
=
'
an error ocurred!
'
;
const
mockError
=
'
an error oc
c
urred!
'
;
beforeEach
(()
=>
{
beforeEach
(()
=>
{
store
.
commit
(
`monitoringDashboard/
${
types
.
RECEIVE_PANEL_PREVIEW_FAILURE
}
`
,
mockError
);
store
.
commit
(
`monitoringDashboard/
${
types
.
RECEIVE_PANEL_PREVIEW_FAILURE
}
`
,
mockError
);
...
...
spec/frontend/monitoring/requests/index_spec.js
View file @
66fb025c
...
@@ -94,7 +94,7 @@ describe('monitoring metrics_requests', () => {
...
@@ -94,7 +94,7 @@ describe('monitoring metrics_requests', () => {
it
(
'
rejects after getting an HTTP 500 error
'
,
()
=>
{
it
(
'
rejects after getting an HTTP 500 error
'
,
()
=>
{
mock
.
onGet
(
prometheusEndpoint
).
reply
(
500
,
{
mock
.
onGet
(
prometheusEndpoint
).
reply
(
500
,
{
status
:
'
error
'
,
status
:
'
error
'
,
error
:
'
An error ocurred
'
,
error
:
'
An error oc
c
urred
'
,
});
});
return
getPrometheusQueryData
(
prometheusEndpoint
,
params
).
catch
((
error
)
=>
{
return
getPrometheusQueryData
(
prometheusEndpoint
,
params
).
catch
((
error
)
=>
{
...
@@ -106,7 +106,7 @@ describe('monitoring metrics_requests', () => {
...
@@ -106,7 +106,7 @@ describe('monitoring metrics_requests', () => {
// Mock multiple attempts while the cache is filling up and fails
// Mock multiple attempts while the cache is filling up and fails
mock
.
onGet
(
prometheusEndpoint
).
reply
(
statusCodes
.
UNAUTHORIZED
,
{
mock
.
onGet
(
prometheusEndpoint
).
reply
(
statusCodes
.
UNAUTHORIZED
,
{
status
:
'
error
'
,
status
:
'
error
'
,
error
:
'
An error ocurred
'
,
error
:
'
An error oc
c
urred
'
,
});
});
return
getPrometheusQueryData
(
prometheusEndpoint
,
params
).
catch
((
error
)
=>
{
return
getPrometheusQueryData
(
prometheusEndpoint
,
params
).
catch
((
error
)
=>
{
...
@@ -120,7 +120,7 @@ describe('monitoring metrics_requests', () => {
...
@@ -120,7 +120,7 @@ describe('monitoring metrics_requests', () => {
mock
.
onGet
(
prometheusEndpoint
).
replyOnce
(
statusCodes
.
NO_CONTENT
);
mock
.
onGet
(
prometheusEndpoint
).
replyOnce
(
statusCodes
.
NO_CONTENT
);
mock
.
onGet
(
prometheusEndpoint
).
reply
(
500
,
{
mock
.
onGet
(
prometheusEndpoint
).
reply
(
500
,
{
status
:
'
error
'
,
status
:
'
error
'
,
error
:
'
An error ocurred
'
,
error
:
'
An error oc
c
urred
'
,
});
// 3rd attempt
});
// 3rd attempt
return
getPrometheusQueryData
(
prometheusEndpoint
,
params
).
catch
((
error
)
=>
{
return
getPrometheusQueryData
(
prometheusEndpoint
,
params
).
catch
((
error
)
=>
{
...
...
spec/frontend/notifications/components/custom_notifications_modal_spec.js
View file @
66fb025c
...
@@ -180,7 +180,7 @@ describe('CustomNotificationsModal', () => {
...
@@ -180,7 +180,7 @@ describe('CustomNotificationsModal', () => {
expect
(
expect
(
mockToastShow
,
mockToastShow
,
).
toHaveBeenCalledWith
(
).
toHaveBeenCalledWith
(
'
An error occured while loading the notification settings. Please try again.
'
,
'
An error occur
r
ed while loading the notification settings. Please try again.
'
,
{
type
:
'
error
'
},
{
type
:
'
error
'
},
);
);
});
});
...
@@ -258,7 +258,7 @@ describe('CustomNotificationsModal', () => {
...
@@ -258,7 +258,7 @@ describe('CustomNotificationsModal', () => {
expect
(
expect
(
mockToastShow
,
mockToastShow
,
).
toHaveBeenCalledWith
(
).
toHaveBeenCalledWith
(
'
An error occured while updating the notification settings. Please try again.
'
,
'
An error occur
r
ed while updating the notification settings. Please try again.
'
,
{
type
:
'
error
'
},
{
type
:
'
error
'
},
);
);
});
});
...
...
spec/frontend/notifications/components/notifications_dropdown_spec.js
View file @
66fb025c
...
@@ -255,7 +255,7 @@ describe('NotificationsDropdown', () => {
...
@@ -255,7 +255,7 @@ describe('NotificationsDropdown', () => {
expect
(
expect
(
mockToastShow
,
mockToastShow
,
).
toHaveBeenCalledWith
(
).
toHaveBeenCalledWith
(
'
An error occured while updating the notification settings. Please try again.
'
,
'
An error occur
r
ed while updating the notification settings. Please try again.
'
,
{
type
:
'
error
'
},
{
type
:
'
error
'
},
);
);
});
});
...
...
spec/frontend/projects/settings_service_desk/components/service_desk_root_spec.js
View file @
66fb025c
...
@@ -154,7 +154,7 @@ describe('ServiceDeskRoot', () => {
...
@@ -154,7 +154,7 @@ describe('ServiceDeskRoot', () => {
});
});
it
(
'
shows an error message
'
,
()
=>
{
it
(
'
shows an error message
'
,
()
=>
{
expect
(
getAlertText
()).
toContain
(
'
An error occured while saving changes:
'
);
expect
(
getAlertText
()).
toContain
(
'
An error occur
r
ed while saving changes:
'
);
});
});
});
});
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment