Skip to content
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

[data views] Enforce uniqueness by name instead of index pattern #136071

Merged
merged 17 commits into from
Jul 14, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update index pattern saved object definition
  • Loading branch information
mattkime committed Jul 13, 2022
commit d786aa2f83324f667fdbadd759ccf74c84b93643
4 changes: 2 additions & 2 deletions src/plugins/data_views/server/saved_objects/data_views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export const dataViewSavedObjectType: SavedObjectsType = {
management: {
displayName: 'data view',
icon: 'indexPatternApp',
defaultSearchField: 'title',
defaultSearchField: 'name',
importableAndExportable: true,
getTitle(obj) {
return obj.attributes.title;
return obj.attributes.name || obj.attributes.title;
},
getEditUrl(obj) {
return `/management/kibana/dataViews/dataView/${encodeURIComponent(obj.id)}`;
Expand Down