NAME

CPAN::Testers::Schema::Result::Release - Collected test report stats about a single CPAN release

VERSION

version 0.027

SYNOPSIS

my $release = $schema->resultset( 'Release' )->find({
    dist => 'My-Dist',
    version => '1.001',
});

say sprintf "My dist has %d pass and %d fail reports",
    $release->pass, $release->fail;

$schema->resultset( 'Release' )
    ->search({ dist => 'My-Dist', version => '1.001' })
    ->update({ pass => \'pass+1' }); # increment PASSes

DESCRIPTION

This table contains a collected summary of release data suitable for quick views of sets of distributions and versions.

This table's data is generated by Labyrinth::Plugin::CPAN::Release.

ATTRIBUTES

dist

The name of the distribution.

version

The version of the distribution.

id

The ID of the latest report for this release from the `cpanstats` table. See CPAN::Testers::Schema::Result::Stats.

guid

The GUID of the latest report for this release from the `cpanstats` table. See CPAN::Testers::Schema::Result::Stats.

oncpan

The installability of this release: 1 if the release is on CPAN. 2 if the release has been deleted from CPAN and is only on BackPAN.

distmat

The maturity of this release. 1 if the release is stable and ostensibly indexed by CPAN. 2 if the release is a developer release, unindexed by CPAN.

perlmat

The maturity of the Perl these reports were sent by: 1 if the Perl is a stable release. 2 if the Perl is a developer release.

patched

The patch status of the Perl that sent the report. 2 if the Perl reports being patched, 1 otherwise.

pass

The number of PASS results for this release.

fail

The number of FAIL results for this release.

na

The number of NA results for this release.

unknown

The number of UNKNOWN results for this release.

uploadid

The ID of this upload from the `uploads` table.

METHODS

upload

Get the related row from the `uploads` table. See CPAN::Testers::Schema::Result::Upload.

report

Get the related row from the `cpanstats` table. See CPAN::Testers::Schema::Result::Stats.

This report is the latest report, by date, that went in to this release summary. The date field in the report can be used to determine when this release was last updated.

SEE ALSO

DBIx::Class::Row, CPAN::Testers::Schema

AUTHORS

  • Oriol Soriano <oriolsoriano@gmail.com>

  • Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Oriol Soriano, Doug Bell.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.