Skip to content

Commit

Permalink
adding attributefilter field to app analytics (opensearch-project#1943)
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <[email protected]>
  • Loading branch information
ps48 authored Jul 17, 2024
1 parent 81f1a16 commit de8e0aa
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions public/components/application_analytics/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,40 @@
*/
/* eslint-disable react-hooks/exhaustive-deps */

import React, { ReactChild, useEffect, useState } from 'react';
import { HashRouter, Route, RouteComponentProps, Switch } from 'react-router-dom';
import { EuiGlobalToastList, EuiLink } from '@elastic/eui';
import { Toast } from '@elastic/eui/src/components/toast/global_toast_list';
import { isEmpty } from 'lodash';
import DSLService from 'public/services/requests/dsl';
import PPLService from 'public/services/requests/ppl';
import SavedObjects from 'public/services/saved_objects/event_analytics/saved_objects';
import TimestampUtils from 'public/services/timestamp/timestamp';
import { EuiGlobalToastList, EuiLink } from '@elastic/eui';
import { Toast } from '@elastic/eui/src/components/toast/global_toast_list';
import { isEmpty, last } from 'lodash';
import React, { ReactChild, useEffect, useState } from 'react';
import { useDispatch } from 'react-redux';
import { AppTable } from './components/app_table';
import { Application } from './components/application';
import { CreateApp } from './components/create';
import { TraceAnalyticsComponentDeps, TraceAnalyticsCoreDeps } from '../trace_analytics/home';
import { FilterType } from '../trace_analytics/components/common/filters/filters';
import { handleDataPrepperIndicesExistRequest } from '../trace_analytics/requests/request_handler';
import { HashRouter, Route, RouteComponentProps, Switch } from 'react-router-dom';
import { ChromeBreadcrumb, NotificationsStart } from '../../../../../src/core/public';
import { APP_ANALYTICS_API_PREFIX } from '../../../common/constants/application_analytics';
import {
CUSTOM_PANELS_API_PREFIX,
CUSTOM_PANELS_DOCUMENTATION_URL,
} from '../../../common/constants/custom_panels';
import { observabilityApplicationsID } from '../../../common/constants/shared';
import { QueryManager } from '../../../common/query_manager/ppl_query_manager';
import {
ApplicationRequestType,
ApplicationType,
} from '../../../common/types/application_analytics';
import { FilterType } from '../trace_analytics/components/common/filters/filters';
import { TraceAnalyticsComponentDeps, TraceAnalyticsCoreDeps } from '../trace_analytics/home';
import { handleDataPrepperIndicesExistRequest } from '../trace_analytics/requests/request_handler';
import { AppTable } from './components/app_table';
import { Application } from './components/application';
import { CreateApp } from './components/create';
import {
calculateAvailability,
fetchPanelsVizIdList,
isNameValid,
removeTabData,
} from './helpers/utils';
import {
CUSTOM_PANELS_API_PREFIX,
CUSTOM_PANELS_DOCUMENTATION_URL,
} from '../../../common/constants/custom_panels';
import { QueryManager } from '../../../common/query_manager/ppl_query_manager';
import { observabilityApplicationsID } from '../../../common/constants/shared';

export type AppAnalyticsCoreDeps = TraceAnalyticsCoreDeps;

Expand Down Expand Up @@ -142,6 +142,7 @@ export const Home = (props: HomeProps) => {
mode: 'data_prepper',
dataPrepperIndicesExist: indicesExist,
dataSourcePluggables,
attributesFilterFields: [],
};

const setToast = (title: string, color = 'success', text?: ReactChild) => {
Expand Down

0 comments on commit de8e0aa

Please sign in to comment.