Skip to content

Commit

Permalink
Merge branch 'apache:master' into boilerplate_and_rename
Browse files Browse the repository at this point in the history
  • Loading branch information
exemplary-citizen committed Oct 18, 2021
2 parents a1c1ddb + 37944e1 commit 227f8ee
Show file tree
Hide file tree
Showing 56 changed files with 2,763 additions and 1,773 deletions.
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
.github/workflows/ecs-task-definition.json @robdiciuccio @craig-rueda @rusackas @eschutho @dpgaspar @nytai @mistercrunch
.github/workflows/docker-ephemeral-env.yml @robdiciuccio @craig-rueda @rusackas @eschutho @dpgaspar @nytai @mistercrunch
.github/workflows/ephemeral*.yml @robdiciuccio @craig-rueda @rusackas @eschutho @dpgaspar @nytai @mistercrunch

# Notify some committers of changes in the Select component
/superset-frontend/src/components/Select/ @michael-s-molina @geido
840 changes: 348 additions & 492 deletions superset-frontend/package-lock.json

Large diffs are not rendered by default.

59 changes: 29 additions & 30 deletions superset-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,35 +68,35 @@
"@emotion/cache": "^11.4.0",
"@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0",
"@superset-ui/chart-controls": "^0.18.12",
"@superset-ui/core": "^0.18.12",
"@superset-ui/legacy-plugin-chart-calendar": "^0.18.12",
"@superset-ui/legacy-plugin-chart-chord": "^0.18.12",
"@superset-ui/legacy-plugin-chart-country-map": "^0.18.12",
"@superset-ui/legacy-plugin-chart-event-flow": "^0.18.12",
"@superset-ui/legacy-plugin-chart-force-directed": "^0.18.12",
"@superset-ui/legacy-plugin-chart-heatmap": "^0.18.12",
"@superset-ui/legacy-plugin-chart-histogram": "^0.18.12",
"@superset-ui/legacy-plugin-chart-horizon": "^0.18.12",
"@superset-ui/legacy-plugin-chart-map-box": "^0.18.12",
"@superset-ui/legacy-plugin-chart-paired-t-test": "^0.18.12",
"@superset-ui/legacy-plugin-chart-parallel-coordinates": "^0.18.12",
"@superset-ui/legacy-plugin-chart-partition": "^0.18.12",
"@superset-ui/legacy-plugin-chart-pivot-table": "^0.18.12",
"@superset-ui/legacy-plugin-chart-rose": "^0.18.12",
"@superset-ui/legacy-plugin-chart-sankey": "^0.18.12",
"@superset-ui/legacy-plugin-chart-sankey-loop": "^0.18.12",
"@superset-ui/legacy-plugin-chart-sunburst": "^0.18.12",
"@superset-ui/legacy-plugin-chart-treemap": "^0.18.12",
"@superset-ui/legacy-plugin-chart-world-map": "^0.18.12",
"@superset-ui/legacy-preset-chart-big-number": "^0.18.12",
"@superset-ui/chart-controls": "^0.18.13",
"@superset-ui/core": "^0.18.13",
"@superset-ui/legacy-plugin-chart-calendar": "^0.18.13",
"@superset-ui/legacy-plugin-chart-chord": "^0.18.13",
"@superset-ui/legacy-plugin-chart-country-map": "^0.18.13",
"@superset-ui/legacy-plugin-chart-event-flow": "^0.18.13",
"@superset-ui/legacy-plugin-chart-force-directed": "^0.18.13",
"@superset-ui/legacy-plugin-chart-heatmap": "^0.18.13",
"@superset-ui/legacy-plugin-chart-histogram": "^0.18.13",
"@superset-ui/legacy-plugin-chart-horizon": "^0.18.13",
"@superset-ui/legacy-plugin-chart-map-box": "^0.18.13",
"@superset-ui/legacy-plugin-chart-paired-t-test": "^0.18.13",
"@superset-ui/legacy-plugin-chart-parallel-coordinates": "^0.18.13",
"@superset-ui/legacy-plugin-chart-partition": "^0.18.13",
"@superset-ui/legacy-plugin-chart-pivot-table": "^0.18.13",
"@superset-ui/legacy-plugin-chart-rose": "^0.18.13",
"@superset-ui/legacy-plugin-chart-sankey": "^0.18.13",
"@superset-ui/legacy-plugin-chart-sankey-loop": "^0.18.13",
"@superset-ui/legacy-plugin-chart-sunburst": "^0.18.13",
"@superset-ui/legacy-plugin-chart-treemap": "^0.18.13",
"@superset-ui/legacy-plugin-chart-world-map": "^0.18.13",
"@superset-ui/legacy-preset-chart-big-number": "^0.18.13",
"@superset-ui/legacy-preset-chart-deckgl": "^0.4.12",
"@superset-ui/legacy-preset-chart-nvd3": "^0.18.12",
"@superset-ui/plugin-chart-echarts": "^0.18.12",
"@superset-ui/plugin-chart-pivot-table": "^0.18.12",
"@superset-ui/plugin-chart-table": "^0.18.12",
"@superset-ui/plugin-chart-word-cloud": "^0.18.12",
"@superset-ui/preset-chart-xy": "^0.18.12",
"@superset-ui/legacy-preset-chart-nvd3": "^0.18.13",
"@superset-ui/plugin-chart-echarts": "^0.18.13",
"@superset-ui/plugin-chart-pivot-table": "^0.18.13",
"@superset-ui/plugin-chart-table": "^0.18.13",
"@superset-ui/plugin-chart-word-cloud": "^0.18.13",
"@superset-ui/preset-chart-xy": "^0.18.13",
"@vx/responsive": "^0.0.195",
"abortcontroller-polyfill": "^1.1.9",
"antd": "^4.9.4",
Expand Down Expand Up @@ -165,7 +165,7 @@
"react-sortable-hoc": "^1.11.0",
"react-split": "^2.0.9",
"react-sticky": "^6.0.3",
"react-syntax-highlighter": "^15.3.0",
"react-syntax-highlighter": "^15.4.4",
"react-table": "^7.6.3",
"react-transition-group": "^2.5.3",
"react-ultimate-pagination": "^1.2.0",
Expand Down Expand Up @@ -289,7 +289,6 @@
"mini-css-extract-plugin": "^2.3.0",
"mock-socket": "^9.0.3",
"node-fetch": "^2.6.1",
"po2json": "^0.4.5",
"prettier": "^2.2.1",
"process": "^0.11.10",
"react-test-renderer": "^16.9.0",
Expand Down
36 changes: 36 additions & 0 deletions superset-frontend/spec/fixtures/mockNativeFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,3 +448,39 @@ export const mockQueryDataForCountries = [
{ country_name: 'Zambia', 'SUM(SP_POP_TOTL)': 438847085 },
{ country_name: 'Zimbabwe', 'SUM(SP_POP_TOTL)': 509866860 },
];

export const buildNativeFilter = (
id: string,
name: string,
parents: string[],
) => ({
id,
controlValues: {
multiSelect: true,
enableEmptyFilter: false,
defaultToFirstItem: false,
inverseSelection: false,
searchAllOptions: false,
},
name,
filterType: 'filter_select',
targets: [
{
datasetId: 1,
column: {
name,
},
},
],
defaultDataMask: {
extraFormData: {},
filterState: {},
ownState: {},
},
cascadeParentIds: parents,
scope: {
rootPath: ['ROOT_ID'],
excluded: [],
},
type: 'NATIVE_FILTER',
});
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
import { ReactWrapper } from 'enzyme';
import React from 'react';
import { styledMount as mount } from 'spec/helpers/theming';
import { DndProvider } from 'react-dnd';
import { HTML5Backend } from 'react-dnd-html5-backend';
import { act } from 'react-dom/test-utils';
import { ReactWrapper } from 'enzyme';
import { Provider } from 'react-redux';
import Alert from 'src/components/Alert';
import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint';
import { mockStore } from 'spec/fixtures/mockStore';
import { styledMount as mount } from 'spec/helpers/theming';
import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint';
import Alert from 'src/components/Alert';
import { FiltersConfigModal } from 'src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigModal';

Object.defineProperty(window, 'matchMedia', {
Expand Down Expand Up @@ -66,7 +68,9 @@ describe('FiltersConfigModal', () => {
function setup(overridesProps?: any) {
return mount(
<Provider store={mockStore}>
<FiltersConfigModal {...mockedProps} {...overridesProps} />
<DndProvider backend={HTML5Backend}>
<FiltersConfigModal {...mockedProps} {...overridesProps} />
</DndProvider>
</Provider>,
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export const mockDataMaskInfo: DataMaskStateWithId = {

export const nativeFiltersInfo: NativeFiltersState = {
filterSets: {
'set-id': {
id: 'DefaultsID',
'1': {
id: 1,
name: 'Set name',
nativeFilters: {},
dataMask: mockDataMaskInfo,
Expand Down
1 change: 0 additions & 1 deletion superset-frontend/src/dashboard/actions/hydrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ export const hydrateDashboard = (dashboardData, chartData) => (

const nativeFilters = getInitialNativeFilterState({
filterConfig: metadata?.native_filter_configuration || [],
filterSetsConfig: metadata?.filter_sets_configuration || [],
});

if (!metadata) {
Expand Down
Loading

0 comments on commit 227f8ee

Please sign in to comment.