Giter VIP home page Giter VIP logo

lupo's Introduction

DataCite REST API

Identifier Release Maintainability Test Coverage

Rails API application for managing DataCite providers, clients, prefixes and DOIs. The API usesthe JSONAPI specification.

Installation

Using Docker.

docker run -p 8065:80 datacite/lupo

or

docker-compose up

If you want to build the docker image locally (instead of pulling it from docker hub) and use docker compose for development you can use

docker-compose -f docker-compose.yml -f docker-compose.local.yml

You can now point your browser to http://localhost:8065 and use the application. Some API endpoints require authentication.

Development

For basic setup one can use the following:

bundle exec rake db:create
bundle exec rake db:schema:load
bundle exec rake db:seed:development:base

All other seed options can be found using rake --tasks

We use Rspec for testing:

bundle exec rspec

Note when using a fresh test database you will need to instantiate the test db with:

bundle exec rake db:create RAILS_ENV=test

Note when accessing the console you will need to disable spring:

env DISABLE_SPRING=true bundle exec rails console

Follow along via Github Issues.

Note on Patches/Pull Requests

  • Fork the project
  • Write tests for your new feature or a test that reproduces a bug
  • Implement your feature or make a bug fix
  • Do not mess with Rakefile, version or history
  • Commit, push and make a pull request. Bonus points for topical branches.

License

Lupo is released under the MIT License.

lupo's People

Contributors

ashwinisukale avatar bklaing2 avatar codycooperross avatar dependabot[bot] avatar digitaldogsbody avatar jrhoads avatar kaysiz avatar kellystathis avatar kjgarza avatar mfenner avatar richardhallett avatar sarala avatar svogt0511 avatar wendelfabianchinsamy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lupo's Issues

send sign in link

Given a username, send link to sign in via the contact_email. Should be a JWT

Errno::ECONNREFUSED in clients#show

Error in Client API

Errno::ECONNREFUSED in clients#show
Failed to open TCP connection to ecs.datacite.org:42463 (Connection refused - connect(2) for "10.0.20.182" port 42463)

View on Bugsnag

Stacktrace

app/models/ability.rb:38 - initialize
app/controllers/application_controller.rb:53 - new
app/controllers/application_controller.rb:53 - current_ability
app/controllers/clients_controller.rb:72 - show

View full stacktrace

Created by Kristian Garza via Bugsnag

ArgumentError in dois#validate

Error in Client API

ArgumentError in dois#validate
invalid byte sequence in UTF-8

View on Bugsnag

Stacktrace

app/models/concerns/crosscitable.rb:98 - new
app/models/concerns/crosscitable.rb:98 - xml=
app/controllers/dois_controller.rb:62 - validate

View full stacktrace

Created by Martin Fenner via Bugsnag

ActiveRecord::ValueTooLong in UrlJob@default

Error in Client API

ActiveRecord::ValueTooLong in UrlJob@default
Mysql2::Error: Data too long for column 'url' at row 1: UPDATE dataset SET dataset.url = 'http://core.tdar.org/document/365177/new-york-african-burial-ground-skeletal-biology-final-report-volume-1-chapter-5-origins-of-the-new-york-african-burial-ground-population-biological-evidence-of-geographical-and-macroethnic-affiliations-using-craniometrics-dental-morphology-and-preliminary-genetic-analysis' WHERE dataset.id = 857825

View on Bugsnag

Stacktrace

app/models/doi.rb:179 - set_url
app/jobs/url_job.rb:10 - perform

View full stacktrace

Created by Martin Fenner via Bugsnag

Support validation against specific minor schema versions

Error in Client API

Errno::ENOENT in dois#update
No such file or directory @ rb_sysopen - /home/app/webapp/vendor/bundle/ruby/2.4.0/gems/bolognese-0.10.22/resources/kernel-4.0/metadata.xsd

View on Bugsnag

Stacktrace

app/models/concerns/crosscitable.rb:156 - validation_errors
app/models/concerns/crosscitable.rb:179 - validation_errors?
app/controllers/dois_controller.rb:132 - update

View full stacktrace

Created by Martin Fenner via Bugsnag

Error generating description in codemeta

Error in Client API

TypeError in index#show
no implicit conversion of String into Integer

View on Bugsnag

Stacktrace

config/initializers/mime_types.rb:39 - block (2 levels) in <main>
app/controllers/index_controller.rb:24 - block (2 levels) in show
app/controllers/index_controller.rb:12 - show

View full stacktrace

Created by Martin Fenner via Bugsnag

ActiveRecord::RecordNotUnique in client_prefixes#create

Error in Client API

ActiveRecord::RecordNotUnique in client_prefixes#create
Mysql2::Error: Duplicate entry '31716-32025' for key 'index_datacentre_prefixes_on_datacentre_and_prefixes': INSERT INTO datacentre_prefixes (datacentre, prefixes, id, created_at, updated_at, allocator_prefixes) VALUES (31716, 32025, 2899362415986606080, '2018-06-22 00:35:00', '2018-06-22 00:35:00', 970006206896668672)

View on Bugsnag

Stacktrace

app/controllers/client_prefixes_controller.rb:69 - create

View full stacktrace

Created by Martin Fenner via Bugsnag

ExampleException in home#example

Test error in Example.com

ExampleException in home#example
Something really bad happened

View on Bugsnag

Stacktrace

app/controllers/home_controller.rb:123 - example
app/controllers/other_controller.rb:12 - broken
lib/important/magic.rb:4 - load_something

View full stacktrace

Created by Martin Fenner via Bugsnag

Enable feature flags

Enable or disable features or parts of your application, ideally without re-deploying or changing anything in your code base.

DEV NOTES

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.