feat(index-patterns): Added displayName feature for friendly UI creating index patterns #10694
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR implements Display Names functionality for Index Patterns, allowing users to assign friendly, intuitive names to complex technical patterns without altering their semantic behavior.
Key Changes:
displayName
field: Added toIndexPatternSpec
interface and index pattern data modeltitle
field maintains the technical pattern (used in queries), whiledisplayName
provides a user-friendly name for the UIdisplayName
is not set,title
is used as fallbackBenefits:
✅ Significant UX improvement for complex patterns (e.g.,
logs-*,prod-istio-gateway-*,metrics-*
→ "Production Logs")✅ Easier adoption for non-technical users
✅ Reduces errors when selecting patterns in environments with many index patterns
✅ No breaking changes - transparent migration
✅ Enterprise-friendly with readable naming conventions
Issues Resolved
Closes #10645
Screenshot
Management - Index Pattern Creation:

Index Pattern Selector in Discover:
Creation Wizard - Step 1:
Visualization:
Testing the changes
Initial Setup:
Clone the fork and switch to the
main
branch:git clone https://github.com/dfradehubs/OpenSearch-Dashboards.git cd OpenSearch-Dashboards yarn install yarn start
Start OpenSearch Dashboards in development mode
Test Cases:
1. Create New Index Pattern with Display Name
test-logs-*,test-metrics-*
Test Environment Data
2. Edit Display Name of Existing Index Pattern
3. Backward Compatibility
displayName
should automatically display theirtitle
4. Functionality in Discover
displayName
show the friendly name, others showtitle
5. Queries Unaffected
displayName
title
field (technical pattern)6. Export/Import
displayName
displayName
is preserved correctly7. Migration
Automated Tests:
Changelog
displayName
field to Index Patterns for improved UX with friendly names while preserving technical patternsgetDisplayName()
method with automatic fallback totitle
for backward compatibilitydisplayName
Check List
yarn test:jest
yarn test:jest_integration
Additional Notes for Reviewers
Files Modified (~30 files):
Core Models & Types:
src/plugins/data/common/index_patterns/index_patterns/index_pattern.ts
src/plugins/data/common/index_patterns/types.ts
UI Components:
src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/
src/plugins/index_pattern_management/public/components/edit_index_pattern/
src/plugins/data/public/ui/index_pattern_select/
Integration Points:
Migration Strategy:
Migration runs automatically on startup and is safe:
displayName: undefined
to all existing index patternsPerformance Impact:
✅ Minimal impact - only one additional field in memory
✅ No additional backend queries
✅ Lazy loading where possible
Implementation Highlights: