Re: How to Get the user from the current session.

2017-03-21 Thread Christian Hammond
You can perform some modifications to the code to turn off caching. You'll have to do this for file-based caching and all aspects of diff generation. Your Review Board server may become very slow if you have any real usage of it, depending on the load, the server, and the repository's response

Re: How to Get the user from the current session.

2017-03-21 Thread Vanaja Narayanaswamy
Also, is there a way to turn off caching and force reviewboard go to the repository every time? Thanks, Vanaja On Tue, Mar 21, 2017 at 3:44 PM, Vanaja Narayanaswamy wrote: > >>Files are also not fetched by that user's account. They're fetched using > the credentials set

Re: How to Get the user from the current session.

2017-03-21 Thread Vanaja Narayanaswamy
>>Files are also not fetched by that user's account. They're fetched using the credentials set up when configuring the >>repository. We know this. That's why we want to check the user's access first and then fetch. I thought the get_file method in myscm.py can first do the check for loggedin

Re: How to Get the user from the current session.

2017-03-21 Thread Vanaja Narayanaswamy
Hi, To make sure that user has read access(in our scm) on the file that is being diffed. Thanks, Vanaja On Tue, Mar 21, 2017 at 1:38 PM, Christian Hammond wrote: > Hi Vanaja, > > SCMTools don't have access to the current HTTP request or user, and we > can't provide

Re: Review Board Ticket #4513: User selector in the Group configuration breaks for non-active users

2017-03-21 Thread David Trowbridge
-- To reply, visit https://hellosplat.com/s/beanbag/tickets/4513/ -- New update by chipx86 For Beanbag, Inc. > Review Board > Ticket #4513

Re: How to Get the user from the current session.

2017-03-21 Thread Christian Hammond
Hi Vanaja, SCMTools don't have access to the current HTTP request or user, and we can't provide it. What do you need the user for? Christian -- Christian Hammond President/CEO of Beanbag Makers of Review Board On Tue, Mar 21, 2017

Re: Python API: How to modify submitter on draft

2017-03-21 Thread Christian Hammond
Yep, this is what you need. You'll need your automation user to have the "can_submit_as" permission enabled as well. Christian -- Christian Hammond President/CEO of Beanbag Makers of Review Board On Tue, Mar 21, 2017 at 1:35 PM, Erik

Re: Python API: How to modify submitter on draft

2017-03-21 Thread Erik Johansson
Hi, Without knowing much about this I would guess you need to set submit_as when creating the review request. See https://www.reviewboard.org/docs/manual/2.5/webapi/2.0/resources/review-request-list/#POST // Erik On 21 March 2017 at 10:21, mav14117 wrote: > Hi there, > > I

Python API: How to modify submitter on draft

2017-03-21 Thread mav14117
Hi there, I am using the Python API to create a new review. My main goal is to create a review with an automation user, eg, jenkins, but make the submitter and the reviewers real users. I was following the tutorial and I thought I could do something like this: # Modify the review draft =

How to Get the user from the current session.

2017-03-21 Thread Vanaja Narayanaswamy
Hi, When the user is logged into the reviewboard via the browser, I would like to get user info(loginId) to pass it on to my scmtool. How do I achieve that in scmtools/myscm.py module? Thanks, Vanaja -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/

Re: Review Board Ticket #4398: Make date of review / change description / status an anchor link to that item

2017-03-21 Thread Daniel Kuecker
-- To reply, visit https://hellosplat.com/s/beanbag/tickets/4398/ -- New update by mconley For Beanbag, Inc. > Review Board > Ticket #4398

Re: Unable to use rbt tools with svn-git

2017-03-21 Thread Oriol Odena
Hi Christian. that's the 'rbt post' with debug from commit e2e8497c3c34a88ef1b726f60f3724ccef1ca385: *oodena@linux-oodena:~/workspace/trunk_git> rbt post --debug e2e8497c3c34a88ef1b726f60f3724ccef1ca385* *>>> RBTools 0.7.9* *>>> Python 2.6.9 (unknown, Apr 7 2015, 08:28:12) * *[GCC 4.3.4