Skip to content
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

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Feature/integration #2

wants to merge 21 commits into from

Conversation

vkushwah
Copy link
Owner

Description

[Describe what this change achieves]

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

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.

Vishal Kushwah and others added 20 commits August 1, 2022 14:54
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]>
dashboards-observability/common/constants/shared.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';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove if not necessary

dashboards-observability/common/constants/shared.ts Outdated Show resolved Hide resolved
@@ -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';
Copy link
Collaborator

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';
Copy link
Collaborator

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) => {
Copy link
Collaborator

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.

<EuiFlexGrid columns={2} direction="column">
{panelVisualizations.map((panelVisualization: VisualizationType, index) => (
<EuiFlexItem>
<div className="height" key={panelVisualization.id}>
Copy link
Collaborator

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants