- Package:
- nm.debian.org
- Source:
- nm.debian.org
- Submitter:
- Enrico Zini
- Date:
- 2024-07-29 06:30:04 UTC
- Severity:
- wishlist
Hello,
suggested by Zhenech, it would be nice to have some data export for people who
want to build things like stats over contributors.d.o data.
Export should be only for data that the user would be allowed to see anyway,
and maybe at least at first mostly limited to DDs to avoid opening a door to
providing massive amounts of aggregated data to untrusted people.
One way of doing this can be to use django-restframework to export the
contributors.models.Aggregate* models readonly to DDs users.
Another thing that could be exported, still via restframework, is a JSON with
everything about the current user (contributors.models.{User, UserLog,
Identifier, IdentifierLog, Contribution}).
The readme for local deployment is at:
https://anonscm.debian.org/cgit/nm/dc.git/tree/README.md
To get some contributor data, for example for the perl team, log into alioth
and run: dc-tool --mine /srv/home/users/tincho/python-debiancontributors/pkg-perl.conf > file.json
Enrico
some data using the specified configuration file.
When I run it on Alioth, it crashes:
=====
$ dc-tool --mine /srv/home/users/tincho/python-debiancontributors/pkg-perl.conf > file.json
Traceback (most recent call last):
File "/usr/bin/dc-tool", line 90, in <module>
miner.scan()
File "/usr/lib/python2.7/dist-packages/debiancontributors/datamine.py", line 141, in scan
for ident, begin, until, url in s["scanner"].scan():
File "/usr/lib/python2.7/dist-packages/debiancontributors/scanners/git.py", line 91, in scan
for line in stream_command_stdout(cmd):
File "/usr/lib/python2.7/dist-packages/debiancontributors/scanners/utils/proc.py", line 100, in stream_command_stdout
raise RuntimeError("{} exited with status {}: {}".format(cmd[0], result, lines.stderr.getvalue().strip()))
RuntimeError: git exited with status 128: fatal: bad default revision 'HEAD'
=====