Skip to content

Commit

Permalink
fix(logging): Add logging of change_dashboard_filter event for native…
Browse files Browse the repository at this point in the history
… dashboard filters (apache#26333)
  • Loading branch information
john-bodley authored and sfirke committed Mar 22, 2024
1 parent 0241ac4 commit 7aa4240
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ import { getInitialDataMask } from 'src/dataMask/reducer';
import { URL_PARAMS } from 'src/constants';
import { getUrlParam } from 'src/utils/urlUtils';
import { useTabId } from 'src/hooks/useTabId';
import { logEvent } from 'src/logger/actions';
import { LOG_ACTIONS_CHANGE_DASHBOARD_FILTER } from 'src/logger/LogUtils';
import { FilterBarOrientation, RootState } from 'src/dashboard/types';
import { checkIsApplyDisabled } from './utils';
import { FiltersBarProps } from './types';
Expand Down Expand Up @@ -223,6 +225,7 @@ const FilterBar: React.FC<FiltersBarProps> = ({
}, [dashboardId, dataMaskAppliedText, history, updateKey, tabId]);

const handleApply = useCallback(() => {
dispatch(logEvent(LOG_ACTIONS_CHANGE_DASHBOARD_FILTER, {}));
const filterIds = Object.keys(dataMaskSelected);
setUpdateKey(1);
filterIds.forEach(filterId => {
Expand Down

0 comments on commit 7aa4240

Please sign in to comment.