-
-
Notifications
You must be signed in to change notification settings - Fork 633
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
fix: normalize selections across multi-views and selection emptiness #7204
Conversation
Hmm, looks like these changes are causing a lot more specs to be normalized even though there isn't any real change in the specification. Need to investigate why. |
6c2f671
to
1d18c49
Compare
Ok, should be fixed. |
} | ||
|
||
return bin; | ||
} | ||
|
||
function normalizePredicate(op: any) { | ||
function normalizePredicate(op: any, normParams: NormalizerParams) { |
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.
I know this is old code but why is op any?
function normalizeTransforms(spec: any, normParams: NormalizerParams) { | ||
const {transform: tx, ...rest} = spec; | ||
if (tx) { | ||
const transform = tx.map((t: any) => { |
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 is t any?
bin: normalizeBinExtent(t.bin) | ||
}; | ||
} else if (isLookup(t)) { | ||
const {selection: param, ...from} = t.from as any; |
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 is t.from any?
} | ||
|
||
public mapUnit(spec: UnitSpec<Field>) { | ||
public mapUnit(spec: UnitSpec<Field>, normParams: NormalizerParams) { | ||
const {selection, ...rest} = spec as any; |
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.
This is old code but why does spec need to be any?
No description provided.