Skip to content

[TSVB] Allow negative time offsets - #14494

Merged
timroes merged 2 commits into
elastic:masterfrom
timroes:negative-offset-tsvb
Oct 25, 2017
Merged

timroes merged 2 commits into
elastic:masterfrom
timroes:negative-offset-tsvb

Conversation

@timroes

@timroes timroes commented Oct 20, 2017 •

Copy link
Copy Markdown
Contributor

The TSVB currently doesn't allow specifying negative time offsets, due to the way it validates the offset format.

This PR fixes that behavior and also allows negative time offsets and also allows specifying the positive time offset with the plus sign as a prefix.

@timroes timroes added Feature:TSVB TSVB (Time Series Visual Builder) Feature:Visualizations Generic visualization features (in case no more specific feature label is available) bug Fixes for quality problems that affect the customer experience labels Oct 20, 2017
@timroes

timroes commented Oct 23, 2017

Copy link
Copy Markdown
Contributor Author

Jenkins test this

@ppisljar ppisljar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, failling test seems to be unrelated


const expandStyle = Object.assign({}, expandChildStyle, {
const expandStyle = {
...expandChildStyle,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you pull from master you shouldn't have to fix this.

@timroes

timroes commented Oct 24, 2017

Copy link
Copy Markdown
Contributor Author

Jenkins, test this

@timroes
timroes merged commit 8c798d2 into elastic:master Oct 25, 2017
@timroes
timroes deleted the negative-offset-tsvb branch October 25, 2017 06:25
timroes added a commit to timroes/kibana that referenced this pull request Oct 25, 2017
* Allow negative offsets in TSVB

* Fix linting issue
timroes added a commit to timroes/kibana that referenced this pull request Oct 25, 2017
* Allow negative offsets in TSVB

* Fix linting issue
timroes added a commit that referenced this pull request Oct 25, 2017
* Allow negative offsets in TSVB

* Fix linting issue
timroes added a commit that referenced this pull request Oct 25, 2017
* Allow negative offsets in TSVB

* Fix linting issue
@timroes

timroes commented Oct 25, 2017

Copy link
Copy Markdown
Contributor Author

@LeeDr

LeeDr commented Dec 12, 2017

Copy link
Copy Markdown

negative offsets seem to move the chart timespan, while positive offsets move the data within the chart?

image

image

image

@LeeDr

LeeDr commented Dec 12, 2017

Copy link
Copy Markdown

I think the positive offset is doing what I expect. It's shifting the data by the offset so that you could compare one series to another one from a previous week or other time period.

But the negative offset just moved the range of data being displayed from Last 12 hours to -11h - +1h ?

@simianhacker

Copy link
Copy Markdown
Member

Whoops... I felt like I tested this but now looking at #15554 I guess it slipped past me.

patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
* Allow negative offsets in TSVB

* Fix linting issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience Feature:TSVB TSVB (Time Series Visual Builder) Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:fix v6.0.0 v6.1.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants