Module: Dradis::Plugins::Templates::MigrateTemplates

Extended by:
ActiveSupport::Concern
Defined in:
lib/dradis/plugins/templates/migrate_templates.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

LEGACY_FIELDS_REGEX =

Apr 2024 migration to move from .template files to db-backed mappings. Can be removed in Apr 2026

/%(\S+?)%/.freeze
LEGACY_MAPPING_REFERENCE =
{
  'burp' => {
    'html_evidence' => 'html_evidence',
    'html_issue' => 'issue',
    'xml_evidence' => 'evidence',
    'xml_issue' => 'issue'
  },
  'qualys' => {
    'asset_evidence' => 'asset-evidence',
    'asset_issue' => 'asset-issue',
    'vuln_evidence' => 'evidence',
    'vuln_element' => 'element',
    'was_evidence' => 'was-evidence',
    'was_issue' => 'was-issue'
  }
}.freeze