Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
18e5fc8
timing dashboard data loading
Jun 2, 2022
d1027ad
reporting loading \ error from all embeddables
Jun 13, 2022
ea42022
report event
Jun 13, 2022
2ccc4d2
lint
Jun 13, 2022
a0747f6
comment out console
Jun 13, 2022
0589135
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Jun 13, 2022
3bf8787
Update embeddable_child_panel.tsx
lizozom Jun 14, 2022
061a352
Merge branch 'main' into dashboard-events
lizozom Jun 14, 2022
0a6f01e
Make analytics optional
Jun 14, 2022
3c0d7e7
Merge branch 'dashboard-events' of github.com:lizozom/kibana into das…
Jun 14, 2022
dcb10bd
Telemetry report to include both time to load data and time to render
Jun 16, 2022
93db343
Merge branch 'main' of https://github.com/elastic/kibana into dashboa…
Jun 16, 2022
b5171c4
Measure load time from beginning of mount
Jun 16, 2022
8325bc8
Merge branch 'main' of https://github.com/elastic/kibana into dashboa…
Jun 16, 2022
cacf761
lint
Jun 16, 2022
9f096fd
Merge branch 'main' of https://github.com/elastic/kibana into dashboa…
Jun 20, 2022
a0b9c79
Merge branch 'main' into dashboard-events
Jun 20, 2022
3deac1c
fix onDataLoadEnd and onDataLoadError event handler callbacks only ca…
nreese Jun 20, 2022
174b734
dataLoadEnd
nreese Jun 20, 2022
3a0a0a5
Merge branch 'main' of https://github.com/elastic/kibana into dashboa…
Jun 21, 2022
5d68d06
Merge branch 'dashboard-events' of github.com:lizozom/kibana into das…
Jun 21, 2022
e5cdea5
Merge remote-tracking branch 'nreese/issue_134785' into dashboard-events
Jun 21, 2022
eb8d634
code review
Jun 21, 2022
66ee132
imports
Jun 21, 2022
a23893d
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine Jun 21, 2022
0450d69
comment
Jun 21, 2022
bb1f371
Merge branch 'dashboard-events' of github.com:lizozom/kibana into das…
Jun 21, 2022
dc7285f
Merge branch 'main' of https://github.com/elastic/kibana into dashboa…
Jun 21, 2022
d39fef1
Fix dedupe of events!
Jun 21, 2022
7e3e1e9
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine Jun 21, 2022
8840e08
Merge branch 'main' of https://github.com/elastic/kibana into dashboa…
Jun 23, 2022
083b737
Rendered discover
Jun 23, 2022
6249903
Merge branch 'dashboard-events' of github.com:lizozom/kibana into das…
Jun 23, 2022
69525d5
oops
Jun 23, 2022
851b493
Code review + DashboardLoadedEvent
Jun 23, 2022
6d4c422
reportsEmbeddableLoad
Jun 23, 2022
287d2b6
type
Jun 23, 2022
05f5543
isNil
Jun 23, 2022
a6bb540
Merge branch 'main' of https://github.com/elastic/kibana into dashboa…
Jun 23, 2022
5c45fe6
fix sync unsubscribe
Jun 23, 2022
78752c6
use store state instead of eventHandlers
nreese Jun 23, 2022
34e062f
Merge branch 'main' of https://github.com/elastic/kibana into dashboa…
Jun 27, 2022
bbe8f31
Merge pull request #9 from nreese/lizozom/dashboard-events
lizozom Jun 27, 2022
b19b052
[EBT] Better FTR helper APIs
afharo Jun 28, 2022
f85b09a
dashboard loaded telemetry test
Jun 28, 2022
280d616
Merge remote-tracking branch 'afharo/test-analytics-ftr-apis' into da…
Jun 28, 2022
aa48aa2
timestamp
Jun 28, 2022
25b9bb4
Merge branch 'main' of https://github.com/elastic/kibana into dashboa…
Jun 28, 2022
61f589b
Merge branch 'dashboard-events' of github.com:lizozom/kibana into das…
Jun 28, 2022
87584de
Merge branch 'main' of https://github.com/elastic/kibana into dashboa…
Jul 7, 2022
361cdf1
Merge branch 'main' of https://github.com/elastic/kibana into dashboa…
Jul 7, 2022
5cb32ee
tests
Jul 7, 2022
a42f9ae
tests
Jul 7, 2022
9331968
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine Jul 7, 2022
9cd0233
test
Jul 7, 2022
a045f90
docs + longer timeout
Jul 7, 2022
a3648c9
Merge branch 'main' of https://github.com/elastic/kibana into dashboa…
Jul 7, 2022
6851ae1
Merge branch 'dashboard-events' of github.com:lizozom/kibana into das…
Jul 7, 2022
c93fc14
Merge branch 'main' of https://github.com/elastic/kibana into dashboa…
Jul 11, 2022
c994f3e
fix
Jul 11, 2022
b7d4114
Fix property inheritance and map events
Jul 11, 2022
a6bf8f8
type error
Jul 11, 2022
7070630
reportsEmbeddableLoad
Jul 12, 2022
5180eb3
tests
Jul 12, 2022
fe7f9db
Merge branch 'main' of https://github.com/elastic/kibana into dashboa…
Jul 12, 2022
73e33af
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Jul 12, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface GetEventsOptions {
*/
withTimeoutMs?: number;
/**
* fromTimestamp (optional) if specified, only the events that are greater or equal to the provided timestamp will be returned.
* fromTimestamp (optional) if specified, only the events that are greater than the provided timestamp will be returned.
* @remarks Useful when we need to retrieve the events after a specific action, and we don't care about anything prior to that.
*/
fromTimestamp?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ describe('AnalyticsFTRHelpers', () => {
window.__analytics_ftr_helpers__.getEvents(2, {
eventTypes: [event.event_type],
fromTimestamp: '2022-03-10T00:00:00.000Z',
withTimeoutMs: 100,
})
).resolves.toEqual([{ ...event, timestamp: '2022-06-10T00:00:00.000Z' }]);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Side Public License, v 1.
*/

import { GetEventsOptions } from '@kbn/analytics-ftr-helpers-plugin/common/types';
import expect from '@kbn/expect';
import { FtrProviderContext } from '../../../services';

Expand All @@ -26,15 +27,16 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
describe('Loaded Dashboard', () => {
let fromTimestamp: string | undefined;

const getEvents = async (count: number) =>
const getEvents = async (count: number, options?: GetEventsOptions) =>
ebtUIHelper.getEvents(count, {
eventTypes: ['dashboard-data-loaded'],
fromTimestamp,
withTimeoutMs: 1000,
...options,
});

const checkEmitsOnce = async () => {
const events = await getEvents(Number.MAX_SAFE_INTEGER);
const checkEmitsOnce = async (options?: GetEventsOptions) => {
const events = await getEvents(Number.MAX_SAFE_INTEGER, options);
expect(events.length).to.be(1);
const event = events[0];
expect(event.event_type).to.eql('dashboard-data-loaded');
Expand Down Expand Up @@ -138,7 +140,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
*/
it('emits when map is added', async () => {
await dashboardAddPanel.addEmbeddable(MAP_PANEL_TITLE, 'map');
await checkEmitsOnce();
await checkEmitsOnce({
withTimeoutMs: 2500,
});
});

it('doesnt emit when removing map panel', async () => {
Expand Down