Skip to content

Commit

Permalink
Rename subtype CONFIG to POLICY (I don't think this string is ever se…
Browse files Browse the repository at this point in the history
…nt by agent, though)
  • Loading branch information
jen-huang committed Aug 14, 2020
1 parent 11f1832 commit 3c91e01
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/ingest_manager/common/openapi/spec_oas3.json
Original file line number Diff line number Diff line change
Expand Up @@ -3387,7 +3387,7 @@
"events": [
{
"type": "ACTION_RESULT",
"subtype": "CONFIG",
"subtype": "POLICY",
"timestamp": "2019-01-04T14:32:03.36764-05:00",
"action_id": "51c6ad1e-a9c0-4c70-80da-99a5c51eedaf",
"agent_id": "a6f14bd2-1a2a-481c-9212-9494d064ffdf",
Expand Down Expand Up @@ -4199,7 +4199,7 @@
"RUNNING",
"STARTING",
"IN_PROGRESS",
"CONFIG",
"POLICY",
"FAILED",
"STOPPING",
"STOPPED",
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/ingest_manager/common/types/models/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface NewAgentEvent {
| 'RUNNING'
| 'STARTING'
| 'IN_PROGRESS'
| 'CONFIG'
| 'POLICY'
| 'FAILED'
| 'STOPPING'
| 'STOPPED'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const SUBTYPE_LABEL: { [key in AgentEvent['subtype']]: JSX.Element } = {
/>
</EuiBadge>
),
CONFIG: (
POLICY: (
<EuiBadge color="hollow">
<FormattedMessage
id="xpack.ingestManager.agentEventSubtype.policyLabel"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('test acks schema', () => {
expect(() =>
AckEventSchema.validate({
type: 'ACTION_RESULT',
subtype: 'CONFIG',
subtype: 'POLICY',
timestamp: '2019-01-04T14:32:03.36764-05:00',
agent_id: 'agent',
message: 'hello',
Expand All @@ -31,7 +31,7 @@ describe('test acks schema', () => {
expect(
AckEventSchema.validate({
type: 'ACTION_RESULT',
subtype: 'CONFIG',
subtype: 'POLICY',
timestamp: '2019-01-04T14:32:03.36764-05:00',
agent_id: 'agent',
action_id: 'actionId',
Expand Down Expand Up @@ -60,7 +60,7 @@ describe('test acks handlers', () => {
events: [
{
type: 'ACTION_RESULT',
subtype: 'CONFIG',
subtype: 'POLICY',
timestamp: '2019-01-04T14:32:03.36764-05:00',
action_id: 'action1',
agent_id: 'agent',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('test agent acks services', () => {
[
{
type: 'ACTION_RESULT',
subtype: 'CONFIG',
subtype: 'POLICY',
timestamp: '2019-01-04T14:32:03.36764-05:00',
action_id: 'action1',
agent_id: 'id',
Expand Down Expand Up @@ -212,7 +212,7 @@ describe('test agent acks services', () => {
[
{
type: 'ACTION_RESULT',
subtype: 'CONFIG',
subtype: 'POLICY',
timestamp: '2019-01-04T14:32:03.36764-05:00',
action_id: 'action1',
agent_id: 'id',
Expand Down Expand Up @@ -355,7 +355,7 @@ describe('test agent acks services', () => {
[
{
type: 'ACTION_RESULT',
subtype: 'CONFIG',
subtype: 'POLICY',
timestamp: '2019-01-04T14:32:03.36764-05:00',
action_id: 'action1',
agent_id: 'id',
Expand Down Expand Up @@ -392,7 +392,7 @@ describe('test agent acks services', () => {
[
({
type: 'ACTION_RESULT',
subtype: 'CONFIG',
subtype: 'POLICY',
timestamp: '2019-01-04T14:32:03.36764-05:00',
action_id: 'action2',
agent_id: 'id',
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/ingest_manager/server/types/models/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const AgentEventBase = {
schema.literal('RUNNING'),
schema.literal('STARTING'),
schema.literal('IN_PROGRESS'),
schema.literal('CONFIG'),
schema.literal('POLICY'),
schema.literal('FAILED'),
schema.literal('STOPPING'),
schema.literal('STOPPED'),
Expand Down

0 comments on commit 3c91e01

Please sign in to comment.