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
708826e1
Commit
708826e1
authored
Jun 15, 2020
by
Olena Horal-Koretska
Committed by
Phil Hughes
Jun 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show tooltip on error detail page dates hovering
parent
56e3823d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
app/assets/javascripts/error_tracking/components/error_details.vue
...s/javascripts/error_tracking/components/error_details.vue
+5
-9
changelogs/unreleased/197426-error-details-timeago-tooltip.yml
...elogs/unreleased/197426-error-details-timeago-tooltip.yml
+5
-0
spec/frontend/error_tracking/components/error_details_spec.js
.../frontend/error_tracking/components/error_details_spec.js
+3
-0
No files found.
app/assets/javascripts/error_tracking/components/error_details.vue
View file @
708826e1
<
script
>
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
;
import
dateFormat
from
'
dateformat
'
;
import
createFlash
from
'
~/flash
'
;
import
{
GlDeprecatedButton
,
...
...
@@ -19,7 +18,7 @@ import Icon from '~/vue_shared/components/icon.vue';
import
TooltipOnTruncate
from
'
~/vue_shared/components/tooltip_on_truncate.vue
'
;
import
Stacktrace
from
'
./stacktrace.vue
'
;
import
TrackEventDirective
from
'
~/vue_shared/directives/track_event
'
;
import
timeagoMixin
from
'
~/vue_shared/mixins/timeago
'
;
import
TimeAgoTooltip
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
import
{
severityLevel
,
severityLevelVariant
,
errorStatus
}
from
'
./constants
'
;
import
Tracking
from
'
~/tracking
'
;
import
{
...
...
@@ -47,11 +46,11 @@ export default {
GlDropdown
,
GlDropdownItem
,
GlDropdownDivider
,
TimeAgoTooltip
,
},
directives
:
{
TrackEvent
:
TrackEventDirective
,
},
mixins
:
[
timeagoMixin
],
props
:
{
issueUpdatePath
:
{
type
:
String
,
...
...
@@ -225,9 +224,6 @@ export default {
createFlash
(
__
(
'
Could not connect to Sentry. Refresh the page to try again.
'
),
'
warning
'
);
}
},
formatDate
(
date
)
{
return
`
${
this
.
timeFormatted
(
date
)}
(
${
dateFormat
(
date
,
'
UTC:yyyy-mm-dd h:MM:ssTT Z
'
)}
)`
;
},
trackPageViews
()
{
const
{
category
,
action
}
=
trackErrorDetailsViewsOptions
;
Tracking
.
event
(
category
,
action
);
...
...
@@ -269,7 +265,7 @@ export default {
<strong
class=
"error-details-meta-culprit"
>
{{
error
.
culprit
}}
</strong>
</
template
>
<
template
#timeAgo
>
{{
timeFormatted
(
stacktraceData
.
date_received
)
}}
<time-ago-tooltip
:time=
"stacktraceData.date_received"
/>
</
template
>
</gl-sprintf>
</div>
...
...
@@ -395,14 +391,14 @@ export default {
</li>
<li
v-if=
"error.firstReleaseShortVersion"
>
<strong
class=
"bold"
>
{{ __('First seen') }}:
</strong>
{{ formatDate(error.firstSeen) }}
<time-ago-tooltip
:time=
"error.firstSeen"
/>
<gl-link
:href=
"firstReleaseLink"
target=
"_blank"
>
<span>
{{ __('Release') }}: {{ error.firstReleaseShortVersion.substr(0, 10) }}
</span>
</gl-link>
</li>
<li
v-if=
"error.lastReleaseShortVersion"
>
<strong
class=
"bold"
>
{{ __('Last seen') }}:
</strong>
{{ formatDate(error.lastSeen) }}
<time-ago-tooltip
:time=
"error.lastSeen"
/>
<gl-link
:href=
"lastReleaseLink"
target=
"_blank"
>
<span>
{{ __('Release') }}: {{ error.lastReleaseShortVersion.substr(0, 10) }}
</span>
</gl-link>
...
...
changelogs/unreleased/197426-error-details-timeago-tooltip.yml
0 → 100644
View file @
708826e1
---
title
:
Show tooltip on error detail page when hovering over dates
merge_request
:
34506
author
:
type
:
added
spec/frontend/error_tracking/components/error_details_spec.js
View file @
708826e1
...
...
@@ -183,6 +183,9 @@ describe('ErrorDetails', () => {
count
:
12
,
userCount
:
2
,
},
stacktraceData
:
{
date_received
:
'
2020-05-20
'
,
},
});
});
...
...
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