-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/integration #2
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: abasatwar <[email protected]>
Signed-off-by: abasatwar <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
Signed-off-by: Vishal Kushwah <[email protected]>
dashboards-observability/common/constants/application_analytics.ts
Outdated
Show resolved
Hide resolved
import store from '../framework/redux/store'; | ||
import { AppPluginStartDependencies } from '../types'; | ||
// import { Home as ApplicationAnalyticsHome } from './integrations/plugins/application_analytics/home'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove if not necessary
@@ -66,16 +68,23 @@ export function AppTable(props: AppTableProps) { | |||
const [isActionsPopoverOpen, setIsActionsPopoverOpen] = useState(false); | |||
const [modalLayout, setModalLayout] = useState(<EuiOverlayMask />); | |||
const [selectedApplications, setSelectedApplications] = useState<ApplicationType[]>([]); | |||
const createButtonText = 'Create application'; | |||
const createButtonText = appType === INTEGRATION ? 'Add Integration' : 'Create application'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in one of the earlier comments, having an enum for applicationType would have helped here.
@@ -66,6 +74,8 @@ import { ServiceDetailFlyout } from './flyout_components/service_detail_flyout'; | |||
import { SpanDetailFlyout } from '../../../../public/components/trace_analytics/components/traces/span_detail_flyout'; | |||
import { TraceDetailFlyout } from './flyout_components/trace_detail_flyout'; | |||
import { fetchAppById, initializeTabData } from '../helpers/utils'; | |||
import { NginxTab } from '../../integrations/plugins/nginx'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make things dynamic, I would like to see a list of plugins/integrations in a file. I will import that list and be done with that. I will not import each integration plugin one by one.
}, | ||
]; | ||
|
||
const getNginxTab = (tabId: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why should the getNginxTab method be inside application.tsx file. This should have been present inside the index file of nginx integration.
dashboards-observability/public/components/application_analytics/components/create.tsx
Outdated
Show resolved
Hide resolved
...boards-observability/public/components/custom_panels/panel_modules/panel_grid/panel_grid.tsx
Outdated
Show resolved
Hide resolved
<EuiFlexGrid columns={2} direction="column"> | ||
{panelVisualizations.map((panelVisualization: VisualizationType, index) => ( | ||
<EuiFlexItem> | ||
<div className="height" key={panelVisualization.id}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no requirement for this key property here.
Signed-off-by: Vishal Kushwah <[email protected]>
Description
[Describe what this change achieves]
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.