add kibana.jsonc files to existing packages#138965
Conversation
2101788 to
5b04812
Compare
25962a1 to
7348364
Compare
7348364 to
60ec59d
Compare
flash1293
left a comment
There was a problem hiding this comment.
VisEditors additions LGTM
| packages/kbn-react-field @elastic/kibana-app-services | ||
| packages/kbn-repo-source-classifier @elastic/kibana-operations | ||
| packages/kbn-repo-source-classifier-cli @elastic/kibana-operations | ||
| packages/kbn-rule-data-utils @elastic/apm-ui |
There was a problem hiding this comment.
Should we be the only code owners here? cc @dgieselaar
There was a problem hiding this comment.
Probably all of Obs + Security.
jbudz
left a comment
There was a problem hiding this comment.
I tested the three generate cli commands, manually verified package.json in the build, and that kibana.jsonc was removed.
Maybe in the future we'll have to add an offline flag to node scripts/generate, but not worried about it atm.
|
@jbudz Updated in |
walterra
left a comment
There was a problem hiding this comment.
ML team related changes LGTM, also checked CODEOWNERS.
azasypkin
left a comment
There was a problem hiding this comment.
Kibana Security related changes LGTM (including the ones in CODEOWNERS).
|
Alright, we have approvals from the vast majority of folks so I'm going to merge this once CI passes unless someone objects in that time. |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Public APIs missing exports
Unknown metric groupsAPI count
ESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
* [packages] add kibana.jsonc files * auto-migrate to kibana.jsonc * support interactive pkg id selection too * remove old codeowners entry * skip codeowners generation when .github/CODEOWNERS doesn't exist * fall back to format validation if user is offline * update question style * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
As best I can tell this was default assigned to operations during a large refactor - #138965. Operations is mostly disconnected from the UI. I'm proposing transferring this over to area teams where flot is in use - stack monitoring, canvas, and timelion.

Beyond the code-owner specific changes you see will you also please search for the new lines in
.github/CODEOWNERSthat mention your team/teams? These new lines represent the packages for which your team has been assigned ownership. Ownership is now going to automatically create codeowner entries so you don't need to manually setup codeowner-entries anymore.This PR implements the new
kibana.jsoncpackage manifest file which will be the only "boilerplate" file in packages and will include the details necessary to generate all other metadata files on-demand. This file's schema was outlined in #137611 and is relatively sparse on details for now. I'll be working on generating package.json files based on the kibana.json file next.Improvements:
node scripts/generate packagenow asks for the name of the package interactively when not specified on the command line."owner"field inkibana.jsoncis required to be a string starting with@and is injected into the codeowners file as the default codeowner for the package. This will enable code-ownership of many packages which currently don't have an owner, and will allow us to validate the owners in a "soft" way by leveraging the codeowners validation that Github provides. The values of these"owner"fields were based on the existing codeowner entries, text-based owner values in package.json files, and in a few cases the package id.node scripts/generate packagewill interactively ask for an owner if it's not supplied on the command line. The owner is then validated and suggestions are provided when the value isn't an actual team in the@elasticorg.--ownerCLI flagkibana.devOnlyflag from the package.json file to thekibana.jsoncfile. This field determines if the package should be in the deps or devDeps, and whether the package can import devDeps or not. This field is now feeding into the eslint config properly and doing import checking in places which were previously broken. These fixes led to the following packages being moved to "devOnly":@kbn/apm-synthtrace@kbn/eslint-plugin-disable@kbn/eslint-plugin-imports@kbn/kibana-manifest-schema