Skip to content

Warn::UnlessFieldValueMatches transform does not warn in STDOUT when job using it is run? #208

@kspurgin

Description

@kspurgin

Check this out.

Is it because the job is in a nested project? Or in an IterativeCleanup module? Or did this never work in real life?

Ran into this when trying to add this to final_post_xforms in Kiba::Csu::County config.

Workaround was to add this inline transform:

transform do |row|
  if row[:preferred].blank?
    warn("WARNING: #{row[:geographicallocationcounty]} does not "\
         "match a county value")
  end

  row
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions