-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Move Fields from pacakge libbeat/common to libbeat/mapping #11198
Conversation
7988670
to
9e75599
Compare
fields.yml
files
+1 on moving field out, but I don't think there is a direct relation between asset and field. Field is not even used in the asset package as far as I remember. I would like to keep the asset package reserved for the registry and asset generation. What about moving field to it's own package, for example |
Maybe time to define a project name for I'm no fan of the How about renaming the Alternative package names:
|
@ruflin I have moved the collection of fields be it in the form of an encoded string or yaml in a draft PR where I implement supporting additional fields.yml files. My reasoning was that every data/resource is an asset which is required to generate a template. As @urso Great idea! I like the name |
The asset package is not only intended to package fields but the goal was that it can handle anything we want as asset in the golang code. This could also be a config file or an ingest pipeline or other things. That is why I would prefer not to have it in this package. If I understand it correctly, this package change is needed for a follow up PR? To not block this, I suggest we move it for now to its own package and follow up with a renaming discussion. For schema keep in mind, we have an other schema package ... |
Failing tests are unrelated to this change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, don't have strong opinions about the naming of the package.
@elastic/apm-server This change might affect apm-server too?
@kvch Any idea what happened with the windows tests in https://beats-ci.elastic.co/job/elastic+beats+pull-request+multijob-windows/5947/beat=filebeat,label=windows/ Never saw them failing at once all together. Will rerun CI to be sure it's not related. |
jenkins, test this |
@ruflin i have reopened the tickets of those flaky tests |
The structures
Field
andFields
are moved fromcommon
to the packagemapping
.This is a step towards moving things from the abused package
common
.I would like to move fields and other asset related functionality to this package in the future.