Skip to content

[8.x] [UII] Add types to return content packages correctly (#195505)#195690

Merged
jen-huang merged 2 commits intoelastic:8.xfrom
jen-huang:backport/8.x/pr-195505
Oct 10, 2024
Merged

[8.x] [UII] Add types to return content packages correctly (#195505)#195690
jen-huang merged 2 commits intoelastic:8.xfrom
jen-huang:backport/8.x/pr-195505

Conversation

@jen-huang
Copy link
Copy Markdown
Contributor

@jen-huang jen-huang commented Oct 9, 2024

Backport

This will backport the following commits from main to 8.x:

Note that this includes manual changes to openapi spec files. This change is not present on the original PR as the main branch no longer uses openapi spec files.

Questions ?

Please refer to the Backport tool documentation

## Summary

Related to elastic#192484. This PR adding [new content package types and
schemas](elastic/package-spec#777) so that
content packages can be returned correctly from EPR to unblock
development of those packages.

The only current content package is `kubernetes_otel`. You will need to
bump up the max allowed spec version and search with beta (prerelease)
packages enabled to find it:
```
xpack.fleet.internal.registry.spec.max: '3.4'
```

Tests will come with the rest of work for elastic#192484

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit bd6533f)

# Conflicts:
#	oas_docs/bundle.json
#	oas_docs/bundle.serverless.json
#	oas_docs/output/kibana.serverless.staging.yaml
#	oas_docs/output/kibana.serverless.yaml
#	oas_docs/output/kibana.staging.yaml
#	oas_docs/output/kibana.yaml
#	x-pack/plugins/fleet/server/types/rest_spec/epm.ts
@jen-huang jen-huang added the backport This PR is a backport of another PR label Oct 9, 2024
@jen-huang jen-huang enabled auto-merge (squash) October 9, 2024 23:09
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Oct 9, 2024
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

type: array
items:
type: string
owner:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I found a few more package spec properties that weren't added to the openapi spec docs

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
fleet 1288 1289 +1

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
fleet 73 74 +1
Unknown metric groups

API count

id before after diff
fleet 1411 1412 +1

@jen-huang jen-huang merged commit 14de289 into elastic:8.x Oct 10, 2024
@jen-huang jen-huang deleted the backport/8.x/pr-195505 branch October 10, 2024 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:Fleet Team label for Observability Data Collection Fleet team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants