mirror of
https://github.com/apache/superset.git
synced 2026-04-23 10:04:45 +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);
|
||||
|
||||
Reference in New Issue
Block a user