Skip to content

Conversation

@wntmddus
Copy link

@wntmddus wntmddus commented Nov 5, 2025

Description
This PR adds comprehensive support for the convert_index_to_remote ISM action in the Index Management Dashboards Plugin, aligning with the new functionality introduced in OpenSearch Index Management.
Key Changes:
Action Interface & Type Definitions (models/interfaces.ts)
Added ConvertIndexToRemoteAction interface with all required and optional parameters
Supports repository, snapshot, include_aliases, ignore_index_settings, and number_of_replicas
UI Component (ConvertIndexToRemoteUIAction.tsx)
Comprehensive form controls for all action parameters
Field validation for required fields (repository and snapshot)
Support for Mustache template variables (e.g., {{ctx.index}})
User-friendly help text based on OpenSearch documentation
Toggle switch for include_aliases
Number input for number_of_replicas with validation
Text input for comma-separated ignore_index_settings
Action Registration
Added ConvertIndexToRemote to ActionType enum
Registered in ActionRepository with default values
Integrated into the visual policy editor action dropdown
Test Coverage
Added ConvertIndexToRemoteUIAction.test.tsx with 10 test cases
Tests cover UI rendering, user interactions, field validation, and action conversion
Updated helpers.test.ts to verify action registration
Snapshot tests for UI consistency
Example Policy (sample_convert_index_to_remote_policy.json)
Demonstrates complete workflow: snapshot → convert_index_to_remote
Shows usage of all optional parameters
Features Implemented:
✅ Repository configuration with validation
✅ Snapshot naming with Mustache variable support
✅ Include aliases option
✅ Ignore index settings configuration
✅ Number of replicas configuration
This allows users to create ISM policies that convert indexes to searchable snapshots for cost-effective long-term storage while maintaining search capabilities.
Issues Resolved
Related to OpenSearch documentation PR: opensearch-project/documentation-website#11495
Implements dashboard support for the convert_index_to_remote action documented in: opensearch-project/index-management#1527
Check List
[ ] Commits are signed per the DCO using --signoff
[x] New functionality includes comprehensive test coverage
[x] All linter checks pass
[x] TypeScript types are properly defined
[x] UI follows existing patterns and design consistency
[x] Help text aligns with OpenSearch documentation
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant