mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
[explorev2] adding support for client side validators on controls (#1920)
* Adding support for client side validators on controls * Applying validators to more fields * Addressing comments
This commit is contained in:
committed by
GitHub
parent
fc74fbeeaa
commit
470a6e9d76
@@ -3,16 +3,19 @@ import { expect } from 'chai';
|
||||
import { describe, it, beforeEach } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
import { Panel } from 'react-bootstrap';
|
||||
import { defaultFormData } from '../../../../javascripts/explorev2/stores/store';
|
||||
import { defaultFormData, initialState } from '../../../../javascripts/explorev2/stores/store';
|
||||
|
||||
import {
|
||||
ControlPanelsContainer,
|
||||
} from '../../../../javascripts/explorev2/components/ControlPanelsContainer';
|
||||
import { fields } from '../../../../javascripts/explorev2/stores/fields';
|
||||
|
||||
const defaultProps = {
|
||||
datasource_id: 1,
|
||||
datasource_type: 'type',
|
||||
exploreState: initialState(),
|
||||
form_data: defaultFormData(),
|
||||
fields,
|
||||
actions: {
|
||||
fetchFieldOptions: () => {
|
||||
// noop
|
||||
|
||||
Reference in New Issue
Block a user