Module: Dradis::Plugins::CSV::Mapping

Defined in:
lib/dradis/plugins/csv/mapping.rb

Overview

Unlike other integrations, CSV files don't have a fixed structure, so the list of sources can't be defined upfront. Instead, a new source is registered every time a user maps a new CSV format (i.e. a new set of column headers) through the column mapper (see MappingForm). The class methods below give Dradis::Plugins::Mappings::Base's default, constant-backed implementations (mapping_sources, source_fields, default_mapping) database-backed overrides instead, so there's no DEFAULT_MAPPING/SOURCE_FIELDS constant here for them to fall back to.

Constant Summary collapse

IDENTIFIER_FIELD =

Reserved destination fields that carry row metadata instead of entity content. They're stored alongside the content fields but are excluded from the entity text during import.

'plugin_id'.freeze
NODE_LABEL_FIELD =
'node_label'.freeze