mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat(frontend): Replace ESLint with OXC hybrid linting architecture (#35506)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -286,9 +286,8 @@ const ResultSet = ({
|
||||
const key = await postFormData(results.query_id, 'query', {
|
||||
...EXPLORE_CHART_DEFAULT,
|
||||
datasource: `${results.query_id}__query`,
|
||||
...{
|
||||
all_columns: results.columns.map(column => column.column_name),
|
||||
},
|
||||
|
||||
all_columns: results.columns.map(column => column.column_name),
|
||||
});
|
||||
const url = mountExploreUrl(null, {
|
||||
[URL_PARAMS.formDataKey.name]: key,
|
||||
|
||||
@@ -218,7 +218,7 @@ export const SaveDatasetModal = ({
|
||||
};
|
||||
const formDataWithDefaults = {
|
||||
...EXPLORE_CHART_DEFAULT,
|
||||
...(formData || {}),
|
||||
...formData,
|
||||
};
|
||||
const handleOverwriteDataset = async () => {
|
||||
// if user wants to overwrite a dataset we need to prompt them
|
||||
|
||||
@@ -163,7 +163,7 @@ test('sorts columns', async () => {
|
||||
getAllByTestId('mock-column-element').map(el => el.textContent),
|
||||
).toEqual(table.columns.map(col => col.name));
|
||||
fireEvent.click(getByText('Sort columns alphabetically'));
|
||||
const sorted = [...table.columns.map(col => col.name)].sort();
|
||||
const sorted = table.columns.map(col => col.name).sort();
|
||||
expect(
|
||||
getAllByTestId('mock-column-element').map(el => el.textContent),
|
||||
).toEqual(sorted);
|
||||
|
||||
@@ -774,7 +774,7 @@ export const testQuery: ISaveableDatasource = {
|
||||
],
|
||||
};
|
||||
|
||||
export const mockdatasets = [...new Array(3)].map((_, i) => ({
|
||||
export const mockdatasets = new Array(3).fill(undefined).map((_, i) => ({
|
||||
changed_by_name: 'user',
|
||||
kind: i === 0 ? 'virtual' : 'physical', // ensure there is 1 virtual
|
||||
changed_by: 'user',
|
||||
|
||||
@@ -117,7 +117,7 @@ const sqlLabPersistStateConfig = {
|
||||
...initialState,
|
||||
...persistedState,
|
||||
sqlLab: {
|
||||
...(persistedState?.sqlLab || {}),
|
||||
...persistedState?.sqlLab,
|
||||
// Overwrite initialState over persistedState for sqlLab
|
||||
// since a logic in getInitialState overrides the value from persistedState
|
||||
...initialState.sqlLab,
|
||||
|
||||
Reference in New Issue
Block a user