-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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: Allow only dttm columns in comparison filter in Period over Period chart #27209
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -382,7 +382,18 @@ | |
return new AdhocFilter(config); | ||
}, [droppedItem]); | ||
|
||
const canDrop = useCallback(() => true, []); | ||
const canDrop = useCallback( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. non blocking: does any testable behavior changed with this block? If so, could add include it in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No. The drag and drop behavior tested in |
||
(item: DatasourcePanelDndItem) => { | ||
if (item.type === DndItemType.Column) { | ||
return props.columns.some( | ||
col => col.column_name === (item.value as ColumnMeta).column_name, | ||
Check warning on line 389 in superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndFilterSelect.tsx
|
||
); | ||
} | ||
return true; | ||
Check warning on line 392 in superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndFilterSelect.tsx
|
||
}, | ||
[props.columns], | ||
); | ||
|
||
const handleDrop = useCallback( | ||
(item: DatasourcePanelDndItem) => { | ||
setDroppedItem(item.value); | ||
|
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.
❤️