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

Changed alerting API endpoints urls, bodies and params to follow Kibana STYLEGUIDE #66838

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c84afcc
Changed alerting API endpoints urls, bodies and params to follow Kiba…
YulNaumenko May 16, 2020
2df78f4
Merge remote-tracking branch 'upstream/master' into alerting-change-u…
YulNaumenko May 26, 2020
529875e
Changed alerting REST API to keep the pattern 'alerts/alert/{id}'
YulNaumenko May 26, 2020
c016a6d
Merge branch 'master' into alerting-change-urls-to-kibana-styleguide
elasticmachine May 26, 2020
a247e1e
fixed tests
YulNaumenko May 27, 2020
d2fec71
Merge branch 'alerting-change-urls-to-kibana-styleguide' of github.co…
YulNaumenko May 27, 2020
618e90e
fixed tests
YulNaumenko May 27, 2020
edd6a1a
Merge remote-tracking branch 'upstream/master' into alerting-change-u…
YulNaumenko May 27, 2020
7676025
Fixed jest tests
YulNaumenko May 27, 2020
5bacd42
Renamed plugin from alerting to alerts
YulNaumenko May 27, 2020
62c6642
Merge remote-tracking branch 'upstream/master' into alerting-change-u…
YulNaumenko May 27, 2020
7a26f49
fixed tests
YulNaumenko May 28, 2020
40e2bb0
fixed tests
YulNaumenko May 28, 2020
b396db5
Fixed alert type check error
YulNaumenko May 28, 2020
ee17ee3
Merge remote-tracking branch 'upstream/master' into alerting-change-u…
YulNaumenko May 28, 2020
ea75836
Fixed find api
YulNaumenko May 28, 2020
1f47537
fixed type checks
YulNaumenko May 29, 2020
f486629
Merge remote-tracking branch 'upstream/master' into alerting-change-u…
YulNaumenko Jun 1, 2020
668fd32
fixed tests security issues
YulNaumenko Jun 1, 2020
7dec745
Fixed view in app
YulNaumenko Jun 1, 2020
ef62641
Merge remote-tracking branch 'upstream/master' into alerting-change-u…
YulNaumenko Jun 1, 2020
07945b4
-
YulNaumenko Jun 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions examples/alerting_example/public/alert_types/astros.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ import {
import { i18n } from '@kbn/i18n';
import { flatten } from 'lodash';
import { ALERTING_EXAMPLE_APP_ID, Craft, Operator } from '../../common/constants';
import { SanitizedAlert } from '../../../../x-pack/plugins/alerting/common';
import { PluginSetupContract as AlertingSetup } from '../../../../x-pack/plugins/alerting/public';
import { SanitizedAlert } from '../../../../x-pack/plugins/alerts/common';
import { PluginSetupContract as AlertingSetup } from '../../../../x-pack/plugins/alerts/public';
import { AlertTypeModel } from '../../../../x-pack/plugins/triggers_actions_ui/public';

export function registerNavigation(alerting: AlertingSetup) {
alerting.registerNavigation(
export function registerNavigation(alerts: AlertingSetup) {
alerts.registerNavigation(
ALERTING_EXAMPLE_APP_ID,
'example.people-in-space',
(alert: SanitizedAlert) => `/astros/${alert.id}`
Expand Down
2 changes: 1 addition & 1 deletion examples/alerting_example/public/components/view_alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {
Alert,
AlertTaskState,
BASE_ALERT_API_PATH,
} from '../../../../x-pack/plugins/alerting/common';
} from '../../../../x-pack/plugins/alerts/common';
import { ALERTING_EXAMPLE_APP_ID } from '../../common/constants';

type Props = RouteComponentProps & {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
Alert,
AlertTaskState,
BASE_ALERT_API_PATH,
} from '../../../../x-pack/plugins/alerting/common';
} from '../../../../x-pack/plugins/alerts/common';
import { ALERTING_EXAMPLE_APP_ID } from '../../common/constants';

type Props = RouteComponentProps & {
Expand Down
10 changes: 5 additions & 5 deletions examples/alerting_example/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import { Plugin, CoreSetup, AppMountParameters } from 'kibana/public';
import { PluginSetupContract as AlertingSetup } from '../../../x-pack/plugins/alerting/public';
import { PluginSetupContract as AlertingSetup } from '../../../x-pack/plugins/alerts/public';
import { ChartsPluginStart } from '../../../src/plugins/charts/public';
import { TriggersAndActionsUIPublicPluginSetup } from '../../../x-pack/plugins/triggers_actions_ui/public';
import { DataPublicPluginStart } from '../../../src/plugins/data/public';
Expand All @@ -30,12 +30,12 @@ export type Setup = void;
export type Start = void;

export interface AlertingExamplePublicSetupDeps {
alerting: AlertingSetup;
alerts: AlertingSetup;
triggers_actions_ui: TriggersAndActionsUIPublicPluginSetup;
}

export interface AlertingExamplePublicStartDeps {
alerting: AlertingSetup;
alerts: AlertingSetup;
triggers_actions_ui: TriggersAndActionsUIPublicPluginSetup;
charts: ChartsPluginStart;
data: DataPublicPluginStart;
Expand All @@ -44,7 +44,7 @@ export interface AlertingExamplePublicStartDeps {
export class AlertingExamplePlugin implements Plugin<Setup, Start, AlertingExamplePublicSetupDeps> {
public setup(
core: CoreSetup<AlertingExamplePublicStartDeps, Start>,
{ alerting, triggers_actions_ui }: AlertingExamplePublicSetupDeps
{ alerts, triggers_actions_ui }: AlertingExamplePublicSetupDeps
) {
core.application.register({
id: 'AlertingExample',
Expand All @@ -59,7 +59,7 @@ export class AlertingExamplePlugin implements Plugin<Setup, Start, AlertingExamp
triggers_actions_ui.alertTypeRegistry.register(getAlwaysFiringAlertType());
triggers_actions_ui.alertTypeRegistry.register(getPeopleInSpaceAlertType());

registerNavigation(alerting);
registerNavigation(alerts);
}

public start() {}
Expand Down
Loading