[Bps-public-commit] cpan2rt branch, deploy, updated. 7b8ab9287cd6ef30f99b6c5719c5fef9757c30cc
Alex Vandiver
alexmv at bestpractical.com
Wed Nov 27 11:20:54 EST 2013
The branch, deploy has been updated
via 7b8ab9287cd6ef30f99b6c5719c5fef9757c30cc (commit)
from b0e6e6250df30528b0d5a9a802fca298eb0f28a3 (commit)
Summary of changes:
lib/CPAN2RT.pm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 7b8ab9287cd6ef30f99b6c5719c5fef9757c30cc
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Wed Nov 27 11:19:38 2013 -0500
Revert "api.metacpan looks to no return "field" but rather "_source" now"
This reverts commit b0e6e6250df30528b0d5a9a802fca298eb0f28a3. The
switch in data format was due to a Fastly caching layer ignoring the
body on GET requests, and thus the set of requested fields. Fastly has
been rolled back until ElasticSearch has been modified to send POST
requests.
diff --git a/lib/CPAN2RT.pm b/lib/CPAN2RT.pm
index 0697fba..1bc2905 100644
--- a/lib/CPAN2RT.pm
+++ b/lib/CPAN2RT.pm
@@ -372,9 +372,9 @@ sub _sync_bugtracker_cpan2rt {
my $bugtracker = {};
# Record data
- my $dist = $result->{"_source"}->{"distribution"};
- my $mailto = $result->{"_source"}->{"resources.bugtracker"}->{"mailto"};
- my $web = $result->{"_source"}->{"resources.bugtracker"}->{"web"};
+ my $dist = $result->{"fields"}->{"distribution"};
+ my $mailto = $result->{"fields"}->{"resources.bugtracker"}->{"mailto"};
+ my $web = $result->{"fields"}->{"resources.bugtracker"}->{"web"};
# Email based alternative - we don't care if this is rt.cpan.org
if(defined($mailto) && !($mailto =~ m/rt\.cpan\.org/)) {
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list