gina-alaska / gina-catalog

Next-generation data catalog and geo-portal platform built for the next decade of the Internet
MIT License
0 stars 0 forks source link

added adiwg api endpoint #1015

Closed rwspicer closed 7 years ago

rwspicer commented 7 years ago

fixes #1012

teknofire commented 7 years ago

So I'm assuming that you'll need to add something similar to this on the job

class ApplicationJob < ActiveJob::Base
  include Rails.application.routes.url_helpers

  protected
  def default_url_options
    Rails.application.config.active_job.default_url_options
  end
end

And then in config/application.rb you need to add

config.active_job.default_url_options = { host: "example.com" }
grimm commented 7 years ago

This is a start here are the errors coming out of the translator.

{:readerFormat=>"json", :readerStructurePass=>false, :readerStructureMessages=>["Invalid input file schema declaration - see following message(s):\n", "The input file is missing the version:{} block."], :readerRequested=>"mdJson", :readerVersionRequested=>nil, :readerVersionUsed=>nil, :readerValidationLevel=>"normal", :readerValidationPass=>nil, :readerValidationMessages=>[], :readerExecutionPass=>nil, :readerExecutionMessages=>[], :writerName=>nil, :writerVersion=>nil, :writerFormat=>nil, :writerPass=>nil, :writerMessages=>[], :writerOutput=>nil, :writerShowTags=>false, :writerMissingIdCount=>"_000", :translatorVersion=>"1.3.0"} [ActiveJob] [MetadataExportJob] [c3922840-e036-46b8-a8e2-609c079e9aab] Performed MetadataExportJob from Inline(default) in 162.87ms

grimm commented 7 years ago

Almost ready, just need to edit the AdiwgControllerTest and remove the index test (which isn't needed) and add in a show test for the end point. Also need to delete the adiwg_helper and test which are not needed as well.

Lots of rubocop errors, mostly in the jbuilder file. Most of these can be fixed by rubocop automatically but using the -a param.

grimm commented 7 years ago

:+1: