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

metacpan / metacpan-api / 1484
74%
master: 64%

Build:
Build:
LAST BUILD BRANCH: haarg/update-mailmap
DEFAULT BRANCH: master
Ran 26 Nov 2016 08:09PM UTC
Jobs 2
Files 23
Run time 2min
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
1484

push

travis-ci

tsibley
Provide backwards compatibility for clients which request only specific fields

We claim in our docs¹ that our convenience endpoints revert the newer
Elasticsearch behaviour of wrapping single values in arrays.  This makes
that so in more places, specifically the places where the client has
requested a limited subset of fields.

While this may seem like a pain for us and lead to uglier code, think
about it this way: either we do it for our API one time, or every client
that runs into the issue has to do it themselves many times over.

A better solution may exist which centralizes application of
single_valued_arrayref_to_scalar(), but this works for now.

See also GH#580 for an example case.²

This reverts a small change to tests which was made to accommodate the
new ES behaviour.

¹ https://github.com/metacpan/metacpan-examples/blob/master/README.md#upgrading-from-v0
² https://github.com/metacpan/metacpan-api/issues/580

295 of 398 relevant lines covered (74.12%)

2.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1484.1 (USE_CPANFILE_SNAPSHOT=true) 26 Nov 2016 08:09PM UTC 0
74.12
Travis Job 1484.1
2 1484.2 (USE_CPANFILE_SNAPSHOT=false) 26 Nov 2016 08:11PM UTC 0
74.12
Travis Job 1484.2
Source Files on build 1484
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1484
  • f7850d31 on github
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