• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ndlib / sipity / 555
100%
master: 98%

Build:
Build:
LAST BUILD BRANCH: DLTP-967-remediate-slow-dashboard
DEFAULT BRANCH: master
Ran 19 Jan 2015 03:32PM UTC
Jobs 1
Files 77
Run time 31s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
555

push

travis-ci

jeremyf
Preparing for next enrichment

Building on DLTP-346 and preparing for DLTP-347, I'm looking to reduce
the need for multiple controllers based on enrichment.

This current step is moving the routing to a less resource-based route
and more of a task-based route.

From:

```ruby
resources :works do
  resource :work_description
end
```

To:

```ruby
get(
  'works/:work_id/describe',
  to: 'work_descriptions#new', as: 'describe_work'
)
post 'works/:work_id/describe', to: 'work_descriptions#create'
```

My eventual goal for describe and attach are to leverage a shared
route as follows:

```ruby
get(
  'works/:work_id/:enrichment_type',
  to: 'work_descriptions#new', as: 'enrich_work'
)
post 'works/:work_id/:enrichment_type', to: 'work_enrichments#update'
```

Note that the action names change from #new/#update to #edit/#create.
This is because an enrichment is always a modification to an
underlying work.

For example (and it is arbitrary):

One enrichment is for DOIs:

* Title
* Publisher
* Publication Year
* Authors

Another enrichment is for Publication Intent:

* Publication date
* Publisher
* Publication format

If you complete the Publication Intent enrichment, then go to the DOI
enrichment, the publisher and publication year would be pre-populated
because you have already provided some of the information.

1442 of 1442 relevant lines covered (100.0%)

4.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 555.1 (2.1.5) 19 Jan 2015 03:32PM UTC 0
100.0
Travis Job 555.1
Source Files on build 555
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #555
  • b609d287 on github
  • Prev Build on teasing-out-enrichment (#552)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc