Skip to content

[BUG] Blank page when trying to list sm policies when one of them does not have creation field #1405

Description

@ztomaszewska

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:

  1. Create SM Policy via API that is deletion-only policy.
  2. Go to Snapshot policies list.
  3. See blak page.
  4. 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.

Image

Do you have any additional context?
Add any other context about the problem.

I'd be interested to fix the issue. Looks pretty simple. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions