-
Notifications
You must be signed in to change notification settings - Fork 626
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
Do not ignore x2's title #3766
Do not ignore x2's title #3766
Conversation
@@ -130,6 +130,24 @@ describe('Axis', function() { | |||
} | |||
}); | |||
|
|||
it('should store the fieldDef title value if title = null, "", or false', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use an arrow function here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You gonna call another clean all service later anyway, so I'll ignore this :p
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay
const model = parseUnitModelWithScale({ | ||
mark: "bar", | ||
encoding: { | ||
x: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a test where only x and only x2 have a title defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That doesn't work for other reasons, and I'm not gonna fix it in this PR. Feel free to file another issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay
src/compile/axis/parse.ts
Outdated
return title1; | ||
} else if (title2) { | ||
return title2; | ||
} else if (title1 !== undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this about? Can you add a comment?
Fix #3742