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:
displayNamefield: Added toIndexPatternSpecinterface and index pattern data modeltitlefield maintains the technical pattern (used in queries), whiledisplayNameprovides a user-friendly name for the UIdisplayNameis not set,titleis 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
mainbranch:git clone https://github.com/dfradehubs/OpenSearch-Dashboards.git cd OpenSearch-Dashboards yarn install yarn startStart OpenSearch Dashboards in development mode
Test Cases:
1. Create New Index Pattern with Display Name
test-logs-*,test-metrics-*Test Environment Data2. Edit Display Name of Existing Index Pattern
3. Backward Compatibility
displayNameshould automatically display theirtitle4. Functionality in Discover
displayNameshow the friendly name, others showtitle5. Queries Unaffected
displayNametitlefield (technical pattern)6. Export/Import
displayNamedisplayNameis preserved correctly7. Migration
Automated Tests:
Changelog
displayNamefield to Index Patterns for improved UX with friendly names while preserving technical patternsgetDisplayName()method with automatic fallback totitlefor backward compatibilitydisplayNameCheck List
yarn test:jestyarn test:jest_integrationAdditional Notes for Reviewers
Files Modified (~30 files):
Core Models & Types:
src/plugins/data/common/index_patterns/index_patterns/index_pattern.tssrc/plugins/data/common/index_patterns/types.tsUI 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: undefinedto all existing index patternsPerformance Impact:
✅ Minimal impact - only one additional field in memory
✅ No additional backend queries
✅ Lazy loading where possible
Implementation Highlights: