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

[Ingest Manager] Replace OutputType enum with separate type and runtime object #82230

Merged
merged 3 commits into from
Nov 3, 2020

Conversation

jfsiii
Copy link
Contributor

@jfsiii jfsiii commented Nov 1, 2020

Summary

Expands on pattern added in #82188

rutime value is now outputType.Elasticsearch (lowercase b/c JS value)

-  type: OutputType.Elasticsearch,
+  type: outputType.Elasticsearch,

Screen Shot 2020-11-02 at 4 46 24 PM

Screen Shot 2020-11-02 at 4 46 35 PM

Screen Shot 2020-11-02 at 4 46 47 PM

TS type is OutputType

Can get union type of values with ValueOf<OutputType>

Screen Shot 2020-11-02 at 4 47 31 PM

Or access as OutputType['Elasticsearch']

@jfsiii jfsiii requested a review from a team November 1, 2020 20:05
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Nov 1, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@jfsiii jfsiii added release_note:skip Skip the PR/issue when compiling release notes v7.11.0 v8.0.0 labels Nov 1, 2020
@jfsiii jfsiii marked this pull request as draft November 2, 2020 03:51
@jfsiii
Copy link
Contributor Author

jfsiii commented Nov 2, 2020

@elasticmachine merge upstream

@jfsiii jfsiii changed the title Replace OutputType enum with type. Add outputTypes array. [Ingest Manager] Replace OutputType enum with separate type and runtime object Nov 2, 2020
@jfsiii jfsiii marked this pull request as ready for review November 2, 2020 22:00
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

page load bundle size

id before after diff
ingestManager 385.8KB 386.1KB +274.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jfsiii jfsiii merged commit e916a1d into elastic:master Nov 3, 2020
@jfsiii jfsiii self-assigned this Nov 3, 2020
jfsiii pushed a commit that referenced this pull request Nov 5, 2020
…me object (#82230) (#82655)

## Summary

Expands on pattern added in #82188

### rutime value is now `outputType.Elasticsearch` (lowercase b/c JS value)

```diff
-  type: OutputType.Elasticsearch,
+  type: outputType.Elasticsearch,
```

<img width="821" alt="Screen Shot 2020-11-02 at 4 46 24 PM" src="https://user-images.githubusercontent.com/57655/97923244-ae4ccc80-1d2b-11eb-9cc9-d98636ca9a40.png">
<img width="594" alt="Screen Shot 2020-11-02 at 4 46 35 PM" src="https://user-images.githubusercontent.com/57655/97923245-aee56300-1d2b-11eb-917e-483a68280e8e.png">
<img width="429" alt="Screen Shot 2020-11-02 at 4 46 47 PM" src="https://user-images.githubusercontent.com/57655/97923246-aee56300-1d2b-11eb-964a-37b496211167.png">

### TS type is `OutputType`
#### Can get union type of values with `ValueOf<OutputType>`
<img width="455" alt="Screen Shot 2020-11-02 at 4 47 31 PM" src="https://user-images.githubusercontent.com/57655/97923247-aee56300-1d2b-11eb-8492-40a9367ad90e.png">

#### Or access as `OutputType['Elasticsearch']`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants