What is the bug?
It's impossible to list Snapshot Policies if one of the policies does not have creation field defined. This PR made the creation field optional in SMPolicy, allowing deletion-only policies.
How can one reproduce the bug?
Steps to reproduce the behavior:
- Create SM Policy via API that is deletion-only policy.
- Go to Snapshot policies list.
- See blak page.
- See error:
Cannot read properties of undefined (reading 'schedule')
What is the expected behavior?
See the list of all policies - even those delete-only. Be able to see the details delete-only policy as well.
What is your host/environment?
- OS: docker opensearch-dashboards:3.5.0
- Version: 3.5
- Plugins: all default + repository-s3
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
I'd be interested to fix the issue. Looks pretty simple. :)
What is the bug?
It's impossible to list Snapshot Policies if one of the policies does not have creation field defined. This PR made the creation field optional in SMPolicy, allowing deletion-only policies.
How can one reproduce the bug?
Steps to reproduce the behavior:
Cannot read properties of undefined (reading 'schedule')What is the expected behavior?
See the list of all policies - even those delete-only. Be able to see the details delete-only policy as well.
What is your host/environment?
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
I'd be interested to fix the issue. Looks pretty simple. :)