Class: Commons::Integrity::Check::AreaPositionsKnown
- Defined in:
- lib/commons/integrity/check/area_positions_known.rb
Overview
Ensure we have rich position data for positions associated with boundaries
This check should be applied to a boundaries/build/position-data.json file. It’ll check that that file has data for every position mentioned in the index.json file in the same directory.
Configuration Options
Instance Method Summary collapse
-
#errors ⇒ Array<Error>
Errors will be in the category ‘:position_id_message`.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Commons::Integrity::Check::Base
Instance Method Details
#errors ⇒ Array<Error>
Errors will be in the category ‘:position_id_message`
21 22 23 24 25 26 27 |
# File 'lib/commons/integrity/check/area_positions_known.rb', line 21 def errors positions_missing_role_data.map do |position| error( position_id_message: "#{position} was found in #{boundaries_index_pathname} but not in #{pathname}" ) end end |