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

UrbanCCD-UChicago / plenario2 / 1128
76%
master: 76%

Build:
Build:
LAST BUILD BRANCH: vue-cleanup
DEFAULT BRANCH: master
Ran 07 Aug 2018 12:03AM UTC
Jobs 1
Files 122
Run time 14s
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
1128

push

travis-ci

vforgione
Detail Endpoint Now 404s for all Unknown Identifiers

So here's another fun one: what happens when you pass a legit Meta ID
instead of the slug for a ready data set to the detail endpoint?

If you said it returns the correct data set and its records as dictated
by other params, **you'd be wrong**. While this isn't the desired
behavior, you could reasonably expect that an ID would work. And if you
were wrong you'd like to know about it.

If you said it 404s because and ID is not a slug, **you'd be wrong**
also. Afterall this is what the router dictates, right?

If you said it works it way all the way down into the ModelRegistry,
finds the meta, creates and registers a dynamic model, and then explodes
because it registers both the _integer_ ID and the slug name and then
calls `Map.fetch!` with the _string_ ID, thus causing an uncaught error
and forcing a 500 response, well **unfortunately you were right**.

To fix this, I moved more code around and split out calls to private
functions that would match against errors and dump the call to
`halt_with`.

Fixes #405

1499 of 1969 relevant lines covered (76.13%)

168.72 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1128.1 (MIX_ENV=test) 07 Aug 2018 12:03AM UTC 0
76.13
Travis Job 1128.1
Source Files on build 1128
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1128
  • 9ef5f799 on github
  • Next Build on api-purge (#1129)
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