-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] Honor registry datastream source_mode in package policy editor UI #147034
Conversation
b1c506c
to
5e9aa60
Compare
@elasticmachine merge upstream |
Pinging @elastic/fleet (Team:Fleet) |
...te_package_policy_page/components/steps/components/experimental_datastream_settings.test.tsx
Outdated
Show resolved
Hide resolved
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, not tested locally.
Don't see any docs around this. User will have quite a few questions on the exact behaviour on what the effect of the toggles have. Lets make sure we have a docs page where we can go into the details and also reference when questions come up. |
I am wondering if we could solve this with a tool tip and a in product doc here, instead of adding a new doc? |
I suspect the topic is too complex to cover in a single tooltip but if we can, great! This doesn't mean we shouldn't have a tool tip with a short explanation and a link to longer docs / details. One thing to keep in mind around docs: We can't link anyone to docs only in the UI directly. |
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.
I'm getting a little confused because this deals with synthetic
source which in reality has nothing to do with synthetics
, but I see some of our files changed here. Is this just because some changes were made as part of this PR to remove release key from streams?
@dominiqueclarke Yes that correct the release field do need to be persisted into package policy stream we can retrieve that information from the registry or the installation it's what updated all you test |
@elasticmachine merge upstream |
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.
Uptime changes LGTM
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 great, thanks for the unit tests too 👍
.../create_package_policy_page/components/steps/components/experimental_datastream_settings.tsx
Outdated
Show resolved
Hide resolved
.../create_package_policy_page/components/steps/components/experimental_datastream_settings.tsx
Show resolved
Hide resolved
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @nchaulet |
I did some testing on this and so far I'm not sure if it works as expected. The change I made in system.memory dataset manifest is as following:
When I startup with elastic-package, the package is automatically installed. The good news is when I look at the data stream component template, When I toggle it between enable and disable, the "Save policy" button never becomes available, for other datasets where I have not set this setting it just works. Here is the change I'm testing with: elastic/integrations#4749 There is another use case I wanted to test which I couldn't yet because the above already seems to not work as expected in the UI.
|
@ruflin thanks for testing this I found a few bug with the experimental datastream settings:
I am working on a PR to fix that and add tests. (link to the PR #147368) |
Description
Resolve #141211
Honor registry datastream
source_mode
in package policy editor UI, package can define asource_mode
for a package in the UI,if
source_mode
is:default
we should not allow user to enable the experimental featuresynthetic
user can disable synthetic sourceI did some refacto against the package policy datastream type, and found we persisted the
release
field.I also move the experimental datastream to his own component to be able to easily unit test it.
UI Changes
With
source_mode
default the field is disabledWith
source_mode
synthetic