Closed ebenenglish closed 6 months ago
Documenting the process for adding a new authority:
bpldc_authority_api app
bin/rails db:seed
Bpldc::Authority.all.map(&:code).sort
, confirm the new authority is therecurator_app
auth_data = Curator::ControlledTerms::AuthorityService.call(path: 'authorities')
auth_data&.each do |auth_input|
Curator.controlled_terms.authority_class.transaction do
begin
Curator.controlled_terms.authority_class.where(auth_input).first_or_create!
rescue StandardError => e
puts "==== Failed to seed ControlledTerms::Authority with input #{auth_input.inspect} ===="
puts e.inspect
end
end
end
Curator.controlled_terms.authority_class.all.map(&:code).sort
For Trac #2109, we need to add two new authorities:
Need to:
rake db:seed
rake db:seed