Skip to content

Commit

Permalink
[Discover] Reduce histogram updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jughosta committed Nov 13, 2024
1 parent 11a752d commit 64119a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const useLensProps = ({
};
}, [visContext, getTimeRange, onLoad, request?.searchSessionId]);

const [lensPropsContext, setLensPropsContext] = useState(buildLensProps());
const [lensPropsContext, setLensPropsContext] = useState(() => buildLensProps());
const updateLensPropsContext = useStableCallback(() => setLensPropsContext(buildLensProps()));

useEffect(() => {
Expand Down
3 changes: 1 addition & 2 deletions test/functional/apps/discover/group3/_lens_vis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
return seriesType;
}

// FLAKY: https://github.com/elastic/kibana/issues/184600
describe.skip('discover lens vis', function () {
describe('discover lens vis', function () {
before(async () => {
await security.testUser.setRoles(['kibana_admin', 'test_logstash_reader']);
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
Expand Down

0 comments on commit 64119a3

Please sign in to comment.