Is there a way to query user activity through the Web API

19 views
Skip to first unread message

Jad Chamcham

unread,
Jan 30, 2012, 9:21:59 PM1/30/12
to reviewb...@googlegroups.com
Hi all,
I am looking to collect statistics on how many changes I have commented on. Of course this would have to be keyed off the user (as opposed to iterating through reviews).

Is this currently possible?

Best regards,
- Jad

Christian Hammond

unread,
Feb 1, 2012, 1:14:48 AM2/1/12
to reviewb...@googlegroups.com
Hi Jad,

This is not possible through the API today. It's something we'd like to provide in some form later on, but for now, you may need to write something custom that can talk to the database to do these queries.

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com
Message has been deleted

Wei Lu Liu

unread,
Feb 1, 2012, 5:04:53 AM2/1/12
to reviewboard-dev
Hi all,

I think this is a general problem for rookies.

I am currently working on "Tracking User Changes". Valeeds had a old
post request 2615 of it, but it was unfinished.
http://reviews.reviewboard.org/r/2615/

Q1. How should I reuse it as my starting code?

Since there are not too many changes in the diff viewer, the fastest
way I image is just to apply all the changes to each file manually. Is
this what I should do?

Q2. After I finish my code, shall I post it to the same review request
(2615) or submit a new review request instead? Consider I am ont admin
or special user account.

Thanks,
Wei

Mike Conley

unread,
Feb 2, 2012, 5:49:47 PM2/2/12
to reviewboard-dev
Hey Wei,

Here's where I'd start:

1) Download the diff (when viewing the review request, there's a
button in the top right to download)
2) Save the diff into your reviewboard root directory.
3) Apply the diff, using the command "git apply" - so if you named
the diff "tracking_changes.diff", you'd use:

git apply tracking_changes.diff

If all goes well, this will apply the diff to your current branch.
You'll still need to add / commit those changes.

Once you've got something you'd like to have reviewed, I'd put up a
new review request. You can link to the old request in the
description, but I think we should probably mark that old request as
"discarded".

-Mike

On Feb 1, 5:04 am, Wei Lu Liu <wei...@sfu.ca> wrote:
> Hi all,
>
> I think this is a general problem for rookies.
>
> I am currently working on "Tracking User Changes". Valeeds had a old
> post request 2615 of it, but it was unfinished.http://reviews.reviewboard.org/r/2615/

Wei Lu Liu

unread,
Feb 9, 2012, 1:54:59 AM2/9/12
to reviewboard-dev
Hey Mike,

Thanks for your reply. Ref to r/2615, I have applied Walee's old patch
then changed the code according to your and David's comments in that
thread.

Now I am not sure how to test it out? Shall I manually test it with
the local dev server, i.e., ./contrib/internal/devserver.py???

Thanks and regards,
Wei
Message has been deleted

Mike Conley

unread,
Feb 9, 2012, 11:05:56 PM2/9/12
to reviewboard-dev
Hey Wei,

For now, yes, test manually on your local server.

-Mike
Reply all
Reply to author
Forward
0 new messages