Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

feat: update data format returned from query api and add getGroupBys #72

Merged
merged 4 commits into from
Apr 24, 2019

Conversation

kristw
Copy link
Collaborator

@kristw kristw commented Apr 24, 2019

🐛 Bug Fix

  • Update expected data format from /api/v1/query from
type Dataset<T extends string = string> = {
  keys: T[];	
  values: Partial<PlainObject<T>>[];	
}

to

type Dataset<T extends string = string> = Partial<PlainObject<T>>[];
  • Update corresponding code to no longer use dataset.keys.
  • Add functions for getting groupby from encoding.

@kristw kristw requested a review from a team as a code owner April 24, 2019 00:00
@kristw kristw changed the title fix: update data format returned from query api feat: update data format returned from query api and add getGroupBys Apr 24, 2019
@netlify
Copy link

netlify bot commented Apr 24, 2019

Deploy preview for superset-ui-plugins ready!

Built with commit de8dcc2

https://deploy-preview-72--superset-ui-plugins.netlify.com

Copy link
Contributor

@williaster williaster left a comment

Choose a reason for hiding this comment

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

Nice! 😎👍

@kristw kristw merged commit 3bbedb2 into master Apr 24, 2019
@delete-merged-branch delete-merged-branch bot deleted the kristw--line-chart-data branch April 24, 2019 18:18
nytai pushed a commit to preset-io/superset-ui-plugins that referenced this pull request Apr 27, 2020
nytai pushed a commit to preset-io/superset-ui-plugins that referenced this pull request Apr 27, 2020
…pache-superset#72)

* fix: update data format returned from query api

* fix: format

* fix: remove unnecessary type

* fix: remove hack prior to typescript 3.4
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants