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

Bugfix/1.9.0 fixes #220

Merged
merged 5 commits into from
Nov 5, 2018
Merged

Bugfix/1.9.0 fixes #220

merged 5 commits into from
Nov 5, 2018

Conversation

adrianmroz
Copy link
Collaborator

No description provided.

@adrianmroz adrianmroz added the bug label Nov 5, 2018
@adrianmroz adrianmroz added this to the 1.9.0 milestone Nov 5, 2018
@@ -753,7 +753,7 @@ export class LineChart extends BaseVisualization<LineChartState> {
}

getDatasetXRange(dataset: Dataset, continuousDimension: Dimension): PlywoodRange {
if (!dataset) return null;
if (!dataset || dataset.data.length === 0) return null;
Copy link
Member

Choose a reason for hiding this comment

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

could we use dataset.count() instead of chain of properties?

@@ -62,6 +62,7 @@ const numberSplitConversion: SplitDefinitionConversion<NumberSplitDefinition> =
toSplitCombine(split: NumberSplitDefinition): Split {
const { dimension, limit, sort, granularity } = split;
return new Split({
type: SplitType.number,
Copy link
Member

Choose a reason for hiding this comment

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

Is it feasible to enhance split definition tests to cover this change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's covered via viewDefinition converter, which are failing right now. I'm on it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OTOH, I'm thinking about overriding Split constructor, so you need provide all fields - no default values.

@adrianmroz adrianmroz merged commit eef4905 into master Nov 5, 2018
@adrianmroz adrianmroz deleted the bugfix/1.9.0-fixes branch November 5, 2018 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants