Add fallback for to_yaml method

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Collaborate/take over this issue

The following discussion from !149338 (merged) should be addressed:

  • @arfedoro started a discussion: (+1 comment)

    thought (non-blocking) 🤔

    Since policyToYaml uses safeDump from js-yaml package, do you think we need to wrap it in try catch block?

Implementation plan

  • wrap policyToYaml call in try/catch block and return the default yaml in the catch block in all editor_component.vue components in ee/app/assets/javascripts/security_orchestration/components/policy_editor
Edited Aug 10, 2025 by Brian
Assignee Loading
Time tracking Loading