Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0 #2

Merged
merged 48 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
807a027
fix: is_select with UNION (#25290)
betodealmeida Sep 14, 2023
2d1f1e3
fix: Add explicit ON DELETE CASCADE for dashboard_roles (#25320)
john-bodley Sep 18, 2023
8ca49d4
fix(chart): Supporting custom SQL as temporal x-axis column with filt…
Sep 18, 2023
61dcc70
fix: Use RLS clause instead of ID for cache key (#25229)
jfrag1 Sep 18, 2023
0d53446
fix: Improve the reliability of alerts & reports (#25239)
jfrag1 Sep 19, 2023
5390e2d
fix: DashboardRoles cascade operation (#25349)
michael-s-molina Sep 20, 2023
88e6f22
fix: datetime with timezone excel export (#25318)
betodealmeida Sep 21, 2023
c508a33
fix: Workaround for Cypress ECONNRESET error (#25399)
michael-s-molina Sep 25, 2023
721db8a
fix(sqllab): invalid persisted tab state (#25308) (#25398)
justinpark Sep 26, 2023
eacdbdd
fix: Rename on_delete parameter to ondelete (#25424)
john-bodley Sep 26, 2023
4a65d41
fix: preventing save button from flickering in SQL Lab (#25106)
fisjac Sep 26, 2023
1757ce4
fix: chart import (#25425)
betodealmeida Sep 27, 2023
0c6db23
fix: swagger UI CSP error (#25368)
dpgaspar Sep 27, 2023
8dfe95f
fix: smarter date formatter (#25404)
betodealmeida Sep 27, 2023
b83bd5d
fix(sqllab): invalid start date (#25437)
justinpark Sep 27, 2023
7b2b696
fix(nativeFilters): Speed up native filters by removing unnecessary r…
Always-prog Sep 28, 2023
731cd65
fix(SqlLab): make icon placement even (#25372)
CorbinBullard Sep 28, 2023
58778a7
fix: Duplicate items when pasting into Select (#25447)
michael-s-molina Sep 28, 2023
d8e87aa
fix: update the SQLAlchemy model definition at json column for Log ta…
cnabro Sep 29, 2023
f682dba
fix(helm chart): set chart appVersion to 3.0.0 (#25373)
celalettin1286 Sep 29, 2023
615d7f5
fix(mysql): handle string typed decimal results (#24241)
villebro Sep 29, 2023
0dd1a3b
fix: Styles not loading because of faulty CSP setting (#25468)
kgabryje Sep 29, 2023
455b3d8
fix(sqllab): error with lazy_gettext for tab titles (#25469)
nytai Sep 30, 2023
9d1ab46
fix: Address Mypy issue which is causing CI to fail (#25494)
john-bodley Oct 2, 2023
4ad2a05
chore: Adds 3.0.1 CHANGELOG
michael-s-molina Oct 3, 2023
ae700d1
fix: Unable to sync columns when database or dataset name contains `+…
mapledan Oct 3, 2023
1367d7b
fix(sqllab): Broken query containing 'children' (#25490)
justinpark Oct 4, 2023
220dc58
chore: Expand error detail on screencapture (#25519)
justinpark Oct 4, 2023
8b66603
fix: tags permissions error message (#25516)
Khrol Oct 4, 2023
dd769eb
fix: Apply normalization to all dttm columns (#25147)
kgabryje Oct 6, 2023
286c095
fix: REST API CSRF exempt list (#25590)
dpgaspar Oct 10, 2023
69c2378
fix(RLS): Fix Info Tooltip + Button Alignment on RLS Modal (#25400)
CorbinBullard Oct 10, 2023
53b84b9
fix: thubmnails loading - Talisman default config (#25486)
Khrol Oct 11, 2023
254cc36
fix(Presto): catch DatabaseError when testing Presto views (#25559)
zhaorui2022 Oct 11, 2023
732c5b1
fix(Charts): Set max row limit + removed the option to use an empty r…
CorbinBullard Oct 11, 2023
a0b2dc4
fix(window): unavailable localStorage and sessionStorage (#25599)
frassinier Oct 11, 2023
c44f1a3
fix: finestTemporalGrainFormatter (#25618)
betodealmeida Oct 11, 2023
cd1b7a4
fix: revert fix(sqllab): Force trino client async execution (#24859) …
villebro Oct 13, 2023
890bf59
chore: Updates 3.0.1 CHANGELOG
michael-s-molina Oct 13, 2023
d7cbdca
fix(sqllab): Mistitled for new tab after rename (#25523)
justinpark Oct 13, 2023
701ee30
fix(sqllab): template validation error within comments (#25626)
justinpark Oct 13, 2023
ec3bed7
fix: avoid 500 errors with SQLLAB_BACKEND_PERSISTENCE (#25553)
Khrol Oct 13, 2023
af1e713
fix(import): Make sure query context is overwritten for overwriting i…
jfrag1 Oct 16, 2023
236aef8
fix: permalink save/overwrites in explore (#25112)
hughhhh Oct 16, 2023
b95ff2d
fix(header navlinks): link navlinks to path prefix (#25495)
fisjac Oct 17, 2023
b0f229e
fix: improve upload ZIP file validation (#25658)
dpgaspar Oct 17, 2023
b380495
fix: warning of nth-child (#23638)
justinpark Oct 17, 2023
293568a
fix(dremio): Fixes issue with Dremio SQL generation for Charts with S…
OskarNS Oct 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(nativeFilters): Speed up native filters by removing unnecessary r…
…erenders (apache#25282)

Co-authored-by: JUST.in DO IT <justin.park@airbnb.com>
(cherry picked from commit a0eeb4d)
  • Loading branch information
Always-prog authored and michael-s-molina committed Sep 28, 2023
commit 7b2b696a19ca29238bc06714921e6cd15f553bc9
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export enum AppSection {
export type FilterState = { value?: any; [key: string]: any };

export type DataMask = {
__cache?: FilterState;
extraFormData?: ExtraFormData;
filterState?: FilterState;
ownState?: JsonObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import { useMemo } from 'react';
import { useSelector } from 'react-redux';
import { shallowEqual, useSelector } from 'react-redux';
import {
DataMaskStateWithId,
ensureIsArray,
Expand All @@ -32,6 +32,7 @@ export function useFilterDependencies(
): ExtraFormData {
const dependencyIds = useSelector<any, string[] | undefined>(
state => state.nativeFilters.filters[id]?.cascadeParentIds,
shallowEqual,
);
return useMemo(() => {
let dependencies = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
*/

/* eslint-disable no-param-reassign */
import React, { useEffect, useState, useCallback, createContext } from 'react';
import React, {
useEffect,
useState,
useCallback,
createContext,
useRef,
} from 'react';
import { useDispatch, useSelector } from 'react-redux';
import {
DataMaskStateWithId,
Expand Down Expand Up @@ -144,6 +150,8 @@ const FilterBar: React.FC<FiltersBarProps> = ({

const [filtersInScope] = useSelectFiltersInScope(nativeFilterValues);

const dataMaskSelectedRef = useRef(dataMaskSelected);
dataMaskSelectedRef.current = dataMaskSelected;
const handleFilterSelectionChange = useCallback(
(
filter: Pick<Filter, 'id'> & Partial<Filter>,
Expand All @@ -154,19 +162,19 @@ const FilterBar: React.FC<FiltersBarProps> = ({
if (
// filterState.value === undefined - means that value not initialized
dataMask.filterState?.value !== undefined &&
dataMaskSelected[filter.id]?.filterState?.value === undefined &&
dataMaskSelectedRef.current[filter.id]?.filterState?.value ===
undefined &&
filter.requiredFirst
) {
dispatch(updateDataMask(filter.id, dataMask));
}

draft[filter.id] = {
...(getInitialDataMask(filter.id) as DataMaskWithId),
...dataMask,
};
});
},
[dataMaskSelected, dispatch, setDataMaskSelected],
[dispatch, setDataMaskSelected],
);

useEffect(() => {
Expand Down
1 change: 1 addition & 0 deletions superset-frontend/src/dataMask/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export function getInitialDataMask(
}
return {
...otherProps,
__cache: {},
extraFormData: {},
filterState: {},
ownState: {},
Expand Down