karma in API is less granular than karma on the web site

Bug #298502 reported by Brian Murray
32
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

People's +karma, http://launchpad.net/people/+me/+karma, page is broken out into sections (Bug Management, Bazaar Branches and Answer Tracker) but only total karma is returned by the API. The API would be more complete if it exposed the distribution of karma.

Curtis Hovey (sinzui)
Changed in launchpad-registry:
importance: Undecided → Wishlist
status: New → Triaged
tags: added: karma
Revision history for this message
Bryce Harrington (bryce) wrote :

I would like to ditto this request. The particular use I have for this is because I use karma to help highlight bugs from people with high bug karma, since their bug reports tend to be higher quality and thus better correlate to issues that should be investigated. Currently I use the aggregate karma value, but this is not sufficient.

Revision history for this message
Curtis Hovey (sinzui) wrote :

I imagine someone can update the Person to export the attribute

IPerson...
karma_category_caches = exported(
        CollectionField(
            title=_("The caches of karma scores, by karma category"),
            readonly=False, required=False,
            value_type=Reference(schema=IKarmaCache)))

But a lot more work is need to export IKarmaCache which is not Published by Launchpad. There is not infrastructure to support this. This problem is like gpg_keys (which is still broken at the moment) or distribution mirrors. At a minimum, someone must create a safe url to that REST use may be/?

    <browser:url
        for="lp.registry.interfaces.karma.IKarmaCache"
        path_expression="string:+karma-caches/${id}"
        rootsite="api"
        attribute_to_parent="person" />

Then update the interface:
IKarmaCache...
export_as_webservice_entry('karma_cache')...

Then export some or all the of the fields.

Gary Poster (gary)
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
Curtis Hovey (sinzui)
Changed in launchpad-foundations:
status: Triaged → Invalid
importance: Low → Undecided
Revision history for this message
David Planella (dpm) wrote :

I was pointing someone who asked about this to this bug, but I've just noticed it has been marked as invalid without specifying the reason.

What was the rationale for marking it as Invalid?

Thanks.

Revision history for this message
Robert Collins (lifeless) wrote :

We have some open questions about karma, but its true - this bug describes a real problem.

Changed in launchpad:
status: Invalid → Triaged
summary: - karma not granular enough in api
+ karma in API is less granular than karma on the web site
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.