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
1d908d7e
Commit
1d908d7e
authored
Apr 13, 2021
by
Vladimir Shushlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add project id to LegacyStorageDisabledError
parent
92cfa61d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/models/pages/lookup_path.rb
app/models/pages/lookup_path.rb
+1
-1
spec/models/pages/lookup_path_spec.rb
spec/models/pages/lookup_path_spec.rb
+1
-1
No files found.
app/models/pages/lookup_path.rb
View file @
1d908d7e
...
...
@@ -74,7 +74,7 @@ module Pages
path:
File
.
join
(
project
.
full_path
,
'public/'
)
}
rescue
LegacyStorageDisabledError
=>
e
Gitlab
::
ErrorTracking
.
track_exception
(
e
)
Gitlab
::
ErrorTracking
.
track_exception
(
e
,
project_id:
project
.
id
)
nil
end
...
...
spec/models/pages/lookup_path_spec.rb
View file @
1d908d7e
...
...
@@ -59,7 +59,7 @@ RSpec.describe Pages::LookupPath do
it
'return nil when legacy storage is disabled and there is no deployment'
do
stub_feature_flags
(
pages_serve_from_legacy_storage:
false
)
expect
(
Gitlab
::
ErrorTracking
).
to
receive
(
:track_exception
)
.
with
(
described_class
::
LegacyStorageDisabledError
)
.
with
(
described_class
::
LegacyStorageDisabledError
,
project_id:
project
.
id
)
.
and_call_original
expect
(
source
).
to
eq
(
nil
)
...
...
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