-
Notifications
You must be signed in to change notification settings - Fork 68
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
Support input packages #809
Conversation
testdata/generated/search-all.json
Outdated
"version": "1.0.1", | ||
"release": "ga", | ||
"description": "Execute custom queries against an SQL database and store the results in Elasticsearch.", | ||
"type": "input", |
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.
What are old versions of Kibana do with packages that are not integrations?
Should we filter by type: integration
when no type
is passed? and maybe have a type: all
to list all packages.
Or maybe this is a point where we should start versioning the API?
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.
and maybe have a type: all to list all packages.
I wouldn't like to design an API that won't be used by Fleet at all (KISS).
Should we filter by type: integration when no type is passed?
That would be counter-intuitive, you want to search for packages, but for some historical reason, the /search filters some of them. I would only go with that option to prevent any problems on the Fleet side.
Or maybe this is a point where we should start versioning the API?
It's always a good practice to version it, but not sure if this is a "dead end" to introduce versioning or if we just enable another GET parameter.
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.
Well, then going back to the first question, what are current/old versions of Kibana going to do with packages that are not integrations?
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.
Passing the question to @joshdover.
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.
This seems like something that could easily be tested manually without code-level knowledge of Fleet. That would be how I test this personally.
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.
Sounds like a good idea, but, to be honest, I wouldn't like to block this PR until that happens.
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.
Ah yeah, I didn't want to mean that 🙂 But this may delay declaring input package as GA in the spec.
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.
@mtojek I would say that each new input package should start with a kibana version constraints higher or equals to 8.3 which should then do the trick isn't it?
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.
Yes, Julien, that's the idea. Just waiting for the confirmation/approval from @joshdover.
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.
Kibana version constraint enforced by package-spec SGTM, agreed it can be done as a follow up.
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.
Looks good, waiting for the discussion about backwards compatibility with Kibana/Fleet.
As the input-type spec has been released, I suppose that this is the next task to be reviewed/merged. |
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
Meta-issue: elastic/package-spec#319
Blocker: elastic/package-spec#328
This PR modifies the Package Registry to support "input packages".
Changes:
sql_input
as test package.