Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[D&D] Fixes time series for new chart types #2309

Merged
merged 2 commits into from
Sep 12, 2022

Conversation

ashwin-pc
Copy link
Member

@ashwin-pc ashwin-pc commented Sep 9, 2022

Signed-off-by: Ashwin Pc ashwinpc@amazon.com

Description

Fixes rendering timeseries for the bar, line and area charts.

image

Issues Resolved

#2307

Check List

  • New functionality includes testing.
    • All tests pass
      • yarn test:jest
      • yarn test:jest_integration
      • yarn test:ftr
  • New functionality has been documented.
  • Commits are signed per the DCO using --signoff

@ashwin-pc ashwin-pc requested a review from a team as a code owner September 9, 2022 16:42
Copy link
Member

@joshuarrrr joshuarrrr left a comment

Choose a reason for hiding this comment

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

Is the TODO comment still valid? Otherwise, looks good!

export const getPipelineParams = (): BuildPipelineParams => {
const timeFilter = getTimeFilter();
return {
// TODO: this will blow up for time x dimensions
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this what the PR fixes?

import { VislibRootState } from '../common/types';
import { getValueAxes } from '../common/get_value_axes';
import { VislibRootState, getValueAxes, getPipelineParams } from '../common';
Copy link
Member

Choose a reason for hiding this comment

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

nice

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>
@ashwin-pc
Copy link
Member Author

Removed the TODO :)

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>
@codecov-commenter
Copy link

codecov-commenter commented Sep 9, 2022

Codecov Report

Merging #2309 (aa946df) into main (77af7f9) will decrease coverage by 0.00%.
The diff coverage is 7.14%.

@@            Coverage Diff             @@
##             main    #2309      +/-   ##
==========================================
- Coverage   66.55%   66.55%   -0.01%     
==========================================
  Files        3169     3170       +1     
  Lines       60313    60316       +3     
  Branches     9182     9181       -1     
==========================================
+ Hits        40141    40142       +1     
- Misses      17979    17981       +2     
  Partials     2193     2193              
Impacted Files Coverage Δ
...rd/public/application/utils/get_top_nav_config.tsx 3.22% <ø> (+0.19%) ⬆️
...izard/public/application/utils/use/use_can_save.ts 11.11% <0.00%> (-1.39%) ⬇️
...public/visualizations/vislib/area/to_expression.ts 9.09% <0.00%> (ø)
...c/visualizations/vislib/histogram/to_expression.ts 9.09% <0.00%> (ø)
...public/visualizations/vislib/line/to_expression.ts 9.09% <0.00%> (ø)
...isualizations/vislib/common/get_pipeline_params.ts 33.33% <33.33%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@kavilla kavilla linked an issue Sep 12, 2022 that may be closed by this pull request
@ashwin-pc ashwin-pc merged commit 93f6872 into opensearch-project:main Sep 12, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 12, 2022
* fixes time series for new chart types

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>

* moves translate to source string

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>
(cherry picked from commit 93f6872)
sipopo pushed a commit to sipopo/OpenSearch-Dashboards that referenced this pull request Sep 14, 2022
* fixes time series for new chart types

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>

* moves translate to source string

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>
Signed-off-by: Sergey V. Osipov <sipopo@yandex.ru>
kavilla added a commit that referenced this pull request Sep 15, 2022
* fixes time series for new chart types
* moves translate to source string

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>
(cherry picked from commit 93f6872)

Co-authored-by: Ashwin P Chandran <ashwinpc@amazon.com>
Co-authored-by: Kawika Avilla <kavilla414@gmail.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 21, 2022
* fixes time series for new chart types

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>

* moves translate to source string

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>
(cherry picked from commit 93f6872)
kavilla pushed a commit that referenced this pull request Sep 21, 2022
* fixes time series for new chart types
* moves translate to source string

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>
(cherry picked from commit 93f6872)
@AMoo-Miki AMoo-Miki added bug Something isn't working v2.4.0 'Issues and PRs related to version v2.4.0' labels Nov 5, 2022
sipopo pushed a commit to sipopo/OpenSearch-Dashboards that referenced this pull request Dec 16, 2022
* fixes time series for new chart types

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>

* moves translate to source string

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>
Signed-off-by: Sergey V. Osipov <sipopo@yandex.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x bug Something isn't working v2.4.0 'Issues and PRs related to version v2.4.0' vis builder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[D&D] [BUG] Timeline fields in Wizard do not work
5 participants