-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Ingest Manager] Data source names should be unique #68019
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
The data source name is not our unique identifier. This is especially important as the name can change. This is the reason I would not consider this a bug. But having unique data source names could be especially beneficial for our users, especially in case data sources can be reused at one stage. Should the data source name be unique per config or on a global level? |
I think data source names should be unique per config, as data source can only be used by one config atm. |
From a usability point of view enforcing this can really help users. Do we want a separate issue about Configuration names too? Or can we handle it here, likely the same arguments apply. |
Its a different API that would need to be fixed to enforce this so I will log it separately I guess unless its easier and ok to fix and test them together and I hear back |
If we think of a future where we have reusable data source, the name should probably be unique globally? It might become awkward if with RBAC we get into a situation that we tell a user you can't use @EricDavisX ++ on separate issue. |
logged as here: #68275 |
@ph this could be a breaking change to implement later. I thought we were trying to get breaking changes in 7.9? |
I have discussed with @ruflin we were not sure we would consider this a bug but more like a feature, this is why we removed the bug label to that issue. |
@paul-tavares @kevinlog Are you using the integration config name as the policy name? |
It looks like I can have two policies both named "endpoint-1". It seems to work but is confusing from an UX perspective. I'm worried if we launch and users create a bunch of policies that we won't have an easy way to rename them later. |
It wouldn't be a breaking change when this is implemented. If a user has the same name for multiple package configs previously, the configs would still remain in place if they do nothing. If they choose to edit one of those configs, we would then surface an error on saving. BTW it's currently not very easy to get a package config with the same names. By default it is populated with |
@ph yes, we use the name as the "Policy Name" @jen-huang |
Oh, I didn't know you were using a 1:1 match here. For breaking changes we are in beta so we could do it? |
@paul-tavares We already implemented functionality for beta to not allow more than one Endpoint package config per agent config, so I don't think we can run into a naming conflict error on update for Endpoint any more? In any case, I'm working on #70030 right now and plan to squash some related bugs while I'm in that code, so I'll add this bug to my list :) @ph |
Oh - wait. I just realized this is uniqueness per Agent Config so yes
@jen-huang, I agree. Not an issue for us based on the change that enforces
a cardinal of 0-1 for endpoint package configs that is already in master.
_(In endpoint Policy list we may want to do something more than just
display the policy name on the list because the user there could see
duplicates and be confused (ex: we could show the agent config name along
with it, but we don’t have that info currently. @kevinlog - FYI)_
…--
___
*Paul Tavares *| Sr. Software Engineer | Elastic / www.elastic.co | Durham,
NC, USA
|
…71187) * Match add integration page with designs * Clean up package config layout code * Match edit integration config page with designs * Fix typing and i18n issues * Add back data test subj * Add loading UI for second step; code clean up * Fix limited packages incorrect response * Add ability to create agent config when selecting config to add integration to * Add error count to input-level panel; memoize children components * Add error count next to all advanced options toggles * Move general form error to bottom bar * #69750 Auto-expand inputs with required & empty (invalid) vars * #68019 Enforce unique package config names, per agent config * Fix typing * Fix i18n * Fix reloading when new agent config _wasn't_ created * Memoize edit integration and fix fields not collapsing on edit * Really fix types
…71187) (#71460) * Match add integration page with designs * Clean up package config layout code * Match edit integration config page with designs * Fix typing and i18n issues * Add back data test subj * Add loading UI for second step; code clean up * Fix limited packages incorrect response * Add ability to create agent config when selecting config to add integration to * Add error count to input-level panel; memoize children components * Add error count next to all advanced options toggles * Move general form error to bottom bar * #69750 Auto-expand inputs with required & empty (invalid) vars * #68019 Enforce unique package config names, per agent config * Fix typing * Fix i18n * Fix reloading when new agent config _wasn't_ created * Memoize edit integration and fix fields not collapsing on edit * Really fix types # Conflicts: # x-pack/plugins/translations/translations/ja-JP.json # x-pack/plugins/translations/translations/zh-CN.json
Each data source should have a unique name in an Agent configuration. However, we can have multiple with matching names.
The text was updated successfully, but these errors were encountered: