Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
20d0c073
Unverified
Commit
20d0c073
authored
Aug 08, 2019
by
Dominik Prokop
Committed by
GitHub
Aug 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DataLinks: Use datapoint timestamp correctly when interpolating variables (#18459)
parent
7520166f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
public/app/features/panel/panellinks/link_srv.ts
+1
-1
public/app/features/panel/panellinks/specs/link_srv.test.ts
+2
-2
No files found.
public/app/features/panel/panellinks/link_srv.ts
View file @
20d0c073
...
...
@@ -132,7 +132,7 @@ export class LinkSrv implements LinkService {
if
(
dataPoint
)
{
info
.
href
=
this
.
templateSrv
.
replace
(
info
.
href
,
this
.
getDataPointVars
(
dataPoint
.
seriesName
,
dateTime
(
dataPoint
[
0
]))
this
.
getDataPointVars
(
dataPoint
.
seriesName
,
dateTime
(
dataPoint
.
datapoint
[
0
]))
);
}
...
...
public/app/features/panel/panellinks/specs/link_srv.test.ts
View file @
20d0c073
...
...
@@ -11,7 +11,7 @@ jest.mock('angular', () => {
const
dataPointMock
=
{
seriesName
:
'A-series'
,
datapoint
:
[
100000000
0
,
1
],
datapoint
:
[
100000000
1
,
1
],
};
describe
(
'linkSrv'
,
()
=>
{
...
...
@@ -119,7 +119,7 @@ describe('linkSrv', () => {
{},
dataPointMock
).
href
).
toEqual
(
'/d/1?time=100000000
0
'
);
).
toEqual
(
'/d/1?time=100000000
1
'
);
});
});
});
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