williaster commented on a change in pull request #4909: [Explore] Adding Adhoc 
Filters
URL: 
https://github.com/apache/incubator-superset/pull/4909#discussion_r186493018
 
 

 ##########
 File path: 
superset/assets/src/explore/components/controls/AdhocFilterControl.jsx
 ##########
 @@ -0,0 +1,255 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+import VirtualizedSelect from 'react-virtualized-select';
+
+import { t } from '../../../locales';
+import ControlHeader from '../ControlHeader';
+import adhocFilterType from '../../propTypes/adhocFilterType';
+import adhocMetricType from '../../propTypes/adhocMetricType';
+import savedMetricType from '../../propTypes/savedMetricType';
+import columnType from '../../propTypes/columnType';
+import AdhocFilter, { CLAUSES, EXPRESSION_TYPES } from '../../AdhocFilter';
+import AdhocMetric from '../../AdhocMetric';
+import { OPERATORS } from '../../constants';
+import VirtualizedRendererWrap from 
'../../../components/VirtualizedRendererWrap';
+import OnPasteSelect from '../../../components/OnPasteSelect';
+import AdhocFilterOption from '../AdhocFilterOption';
+import FilterDefinitionOption from '../FilterDefinitionOption';
+
+const legacyFilterShape = PropTypes.shape({
+  col: PropTypes.string,
+  op: PropTypes.string,
+  val: PropTypes.oneOfType([PropTypes.string, 
PropTypes.arrayOf(PropTypes.string)]),
+});
+
+const propTypes = {
 
 Review comment:
   typically you should define default props for anything not required because 
it's less likely you'll throw an error.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to