Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make DBIx::Class schema for cpantesters database #12

Open
preaction opened this issue Aug 17, 2016 · 3 comments
Open

Make DBIx::Class schema for cpantesters database #12

preaction opened this issue Aug 17, 2016 · 3 comments
Labels

Comments

@preaction
Copy link
Member

It would be nice to have DBIx::Class schemas for the CPANTesters database. These schemas would provide both an API and documentation onto the data contained in the database.

This schema should focus on the cpanstats database, which contains the core data that CPANTesters uses to provide the web application. This is the data that users would be primarily concerned about having an API for.

The schema module should be named CPAN::Testers::Schema and follow the standard DBIx::Class naming conventions.

https://github.com/cpan-testers/cpantesters-schema

ureesoriano added a commit to cpan-testers/cpantesters-schema that referenced this issue Aug 17, 2016
@ureesoriano
Copy link

Pushed an initial version of the Schema.

Important: most datatypes are just guesses (based on the query result you kindly provided). Also, regarding result classes, I only added one for 'cpanstats' table, give it's the only table I know the existance of :)

@barbie
Copy link

barbie commented Aug 18, 2016

Sorry for being out of action for some time. The following should also help, if though they haven't all been kept up to date:

https://v1.metacpan.org/source/BARBIE/CPAN-Testers-Data-Generator-1.21/examples/cpanstats.sql
https://v1.metacpan.org/source/BARBIE/CPAN-Testers-Data-Addresses-0.17/examples/create-address.sql
https://v1.metacpan.org/source/BARBIE/CPAN-Testers-Data-Uploads-0.21/examples/uploads.sql

BTW, cpanstats.type denotes whether the entry is active or to be ignored. It's used by the CPAN Testers Admin site to "delete" reports that authors/testers agree are bogus.

If you have any specific queries about tables or fields, let me know and I'll see how much I can remember!

You're both doing a great job with this, as it's something I would have liked to have done a few years ago.

@preaction
Copy link
Member Author

I've renamed the CpanStats result class to just Stats, I restructured the repository to be a CPAN-style dist (though releasing to CPAN is far off on the horizon), and I've documented the Stats table with everything I could glean from the links (thanks barbie) and the Admin web app.

The next couple places to go are:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants