Re: Importing users from LDAP

2014-03-12 Thread Renjith V
Hey Jan,

How can we use this code? Can you tell me where to put this and how to run 
this? I am guessing this has to be somehow invoked form within RB, am I 
right?

-Renjith

On Tuesday, 24 May 2011 01:04:53 UTC+5:30, Jan Koprowski wrote:
>
> Yes,
>
>   ReviewBoard use for such account passwordhash = "!" which means -
> please check password by way provide by external backend.
>
> This is major part of implementation cut from my own script:
> https://gist.github.com/987379
>
> Call looks like:
>
> add_many_users_by_ldap_filter('(&(memberOf=reviewboard_access)(nickname=*))')
>
> and all users from group reviewboard_access are added to ReviewBoard :)
>
> Greetings from Poland!
> --
> Jan Koprowski
>
>
> On Mon, May 23, 2011 at 9:19 PM, Joe > 
> wrote:
> > Hi all,
> >
> > I have a quick question. If we are using ldap as the authentication
> > and create an user(an existing id in ldap) in reviewboard using the
> > admin dashboard with a dummy password, will the user be able to login
> > with ldap credentials(userid/password)?
> >
> > Thanks for the help!
> >
> > On May 19, 11:55 am, Tucker  wrote:
> >> I don't know thing 1 about Django so I'm not sure if I'll be much use
> >> in that.  If I have some time, in the near future, I'll give it a shot
> >> though.  If there's someone out there who wants to strip out anything
> >> they find useful, feel free.
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> On Thu, May 19, 2011 at 12:26 AM, Christian Hammond <
> chip...@chipx86.com> wrote:
> >> > If this could be turned into a Django Management Command (basically, a
> >> > script that subclasses a certain class -- see the Django docs), and 
> was
> >> > updated to use our models for access instead of talking to the 
> database
> >> > directly, I think it'd be worth including in Review Board.
> >>
> >> > Christian
> >>
> >> > --
> >> > Christian Hammond - chip...@chipx86.com
> >> > Review Board -http://www.reviewboard.org
> >> > VMware, Inc. -http://www.vmware.com
> >>
> >> > On Thu, May 19, 2011 at 12:23 AM, junk  wrote:
> >>
> >> >> I saw this message and it got me interested.  I was thinking about
> >> >> this earlier (although this is not what I was searching for) and
> >> >> decided to take this as a chance to whip up something to do it.
> >> >> Please keep in mind that this was written in about three hours and is
> >> >> just a first pass.  I borrowed some existing LDAP code I had lying
> >> >> around and there's even a TODO telling me to figure out wtf I'm
> >> >> doing.  :)
> >>
> >> >> Anywho... you'll need to make some changes to this to make it work 
> for
> >> >> whatever you LDAP infrastructure looks like.
> >>
> >> >> NOTE: Our LDAP server has multiple user DNs.  We have one for
> >> >> employees and another for contractors/vendors.  Since I need to be
> >> >> able to search through any of them, I have to use a dictionary for my
> >> >> LUSER_DN.
> >>
> >> >> """
> >> >> #!/usr/bin/python
> >>
> >> >> """Update ReviewBoard users list with members of an LDAP group.
> >>
> >> >> Connect to LDAP and MySQL and generate users list.  Find the
> >> >> differences in
> >> >> the two lists and query LDAP for user data (username, first name, 
> last
> >> >> name).
> >> >> Insert unique users into ReviewBoard MySQL server.
> >>
> >> >> TODO(junk):
> >> >> * If named group doesn't exist in ReviewBoard, add to group list.
> >> >> * Add new users to named group in ReviewBoard.
> >> >> * If a user is removed from an LDAP group, remove them from the
> >> >> ReviewBoard group.
> >> >> * Check missing users for locaked status and mark inactive.
> >> >> """
> >>
> >> >> __author__ = 'Tucker '
> >>
> >> >> import ldap
> >> >> import MySQLdb
> >> >> import sys
> >> >> import time
> >>
> >> >> # Globals.
> >> >> L_HOST = 'ldap_server'
> >> >> LGROUP_DN = 'ou=Group,dc=company,dc=com'
> >> >> LUSER_DN = {'People': ['ou=People,dc=company,dc=com', 'uid'],
> >> >>'Outside': ['ou=Outside,dc=company,dc=com', 'cn'],
> >> >>   }
> >> >> RB_HOST = 'localhost'
> >> >> RB_USER = 'user'
> >> >> RB_PASS = 'password'
> >> >> RB_DB = 'reviewboard'
> >>
> >> >> def error_and_exit(msg, ret):
> >> >>  """Print our error message and exit.
> >>
> >> >>  Args:
> >> >>msg: Error message string
> >> >>ret: integer return value
> >> >>  """
> >> >>  print 'ERROR: %s' % msg
> >> >>  sys.exit(ret)
> >>
> >> >> def get_ldap_members(ldap_object, group_name):
> >> >>  """Query LDAP for group members.
> >>
> >> >>  Args:
> >> >>ldap_object: LDAP object user to connect and query the LDAP server
> >> >>group_name: group name string
> >> >>  Returns:
> >> >>group_members: dictionary containing all group members
> >> >>  """
> >> >>  search_scope = ldap.SCOPE_SUBTREE
> >> >>  ldap_filter = 'cn=%s' % group_name
> >>
> >> >>  # Run our LDAP query.
> >> >>  try:
> >> >>ldap_result_id = ldap_object.search(LGROUP_DN, search_scope,
> >> >> ldap_filter)
> >> >>results = []
> >> >>result_type, result_data = ldap_o

Re: Can reviewboard integrate with multiple domains or LDAP URLs?

2014-03-12 Thread David Trowbridge
If you're running 1.7.15 or newer with active directory, you can
authenticate against subdomains. You'd enter your top-level domain name in
the authentication config, and then users would use "subdomain\username"
when logging in.

There's no support for running with multiple top-level domains or doing
this against LDAP (as opposed to AD).

-David


On Tue, Mar 11, 2014 at 7:27 AM, Tamer Afify  wrote:

> How can I allow login and review process for users from different domains?
> I would appreciate any workaround or Dev walk through to get this if it
> isn't yet in feature list.
> Note I have 1.7.9 & I have 2.4 as well.
> Thanks for your support,
>
> --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ReviewBoard Hook

2014-03-12 Thread Allen
And also, is that extension ready to use or still under developing? I can 
do some test work for you if you like to.

On Wednesday, March 12, 2014 3:12:34 PM UTC-4, A.M. wrote:
>
> On Wed, 12 Mar 2014 08:15:36 -0700 (PDT), Allen 
> > 
>
> wrote: 
> > Hi guys, 
> > 
> > Does anybody familiar with the Hook system of ReviewBoard? 
> > The thing is my team really needs a feature that requires ReviewBoard to 
> > create a Jira ticket along with a new code review request. 
> > Write an extension is too much work for me and I also dont think it`s a 
> > good idea to directly modify the source code of ReviewBoard, so I am 
> > wondering is it possible to just write a script, and when a new code 
> review 
> > 
> > request is published, the ReviewBoard will trigger my script which will 
> do 
> > the Jira ticket creation? 
> > I have looked into the Hook`s documentation but did not get any helpful 
> > information. 
>
> We initially implemented a reviewboard extension to add the reviewboard 
> URL 
> to JIRA tickets in a "Code Review URL" field and update the issue status 
> to 
> "In Code Review". What we discovered is that, since the operation is 
> synchronous with JIRA, it slowed down submitting changes to reviewboard. 
> Also, when JIRA dies (not an uncommon occurrence), the request to update 
> the JIRA issue can just puke in the log file, cause reviewboard timeouts, 
> and is then subsequently lost. 
>
> To mitigate these problems, we implemented a cron job that polls for the 
> latest reviewboard changes and updates JIRA out-of-band. The cron job uses 
> the rbtools and jira-python modules. The downside is that the JIRA issue 
> updating is not instantaneous. 
>
> Cheers, 
> M 
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ReviewBoard Hook

2014-03-12 Thread Allen
Sounds cool! And is there a way to automatically create a Jira ticket along 
with a new code reivew? You know, people just want to do things at one 
place and they hate to create something twice even they should...
Anyway thanks for letting me know!

On Wednesday, March 12, 2014 3:12:34 PM UTC-4, A.M. wrote:
>
> On Wed, 12 Mar 2014 08:15:36 -0700 (PDT), Allen 
> > 
>
> wrote: 
> > Hi guys, 
> > 
> > Does anybody familiar with the Hook system of ReviewBoard? 
> > The thing is my team really needs a feature that requires ReviewBoard to 
> > create a Jira ticket along with a new code review request. 
> > Write an extension is too much work for me and I also dont think it`s a 
> > good idea to directly modify the source code of ReviewBoard, so I am 
> > wondering is it possible to just write a script, and when a new code 
> review 
> > 
> > request is published, the ReviewBoard will trigger my script which will 
> do 
> > the Jira ticket creation? 
> > I have looked into the Hook`s documentation but did not get any helpful 
> > information. 
>
> We initially implemented a reviewboard extension to add the reviewboard 
> URL 
> to JIRA tickets in a "Code Review URL" field and update the issue status 
> to 
> "In Code Review". What we discovered is that, since the operation is 
> synchronous with JIRA, it slowed down submitting changes to reviewboard. 
> Also, when JIRA dies (not an uncommon occurrence), the request to update 
> the JIRA issue can just puke in the log file, cause reviewboard timeouts, 
> and is then subsequently lost. 
>
> To mitigate these problems, we implemented a cron job that polls for the 
> latest reviewboard changes and updates JIRA out-of-band. The cron job uses 
> the rbtools and jira-python modules. The downside is that the JIRA issue 
> updating is not instantaneous. 
>
> Cheers, 
> M 
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error: Error applying evolution: (1051, "Unknown table 'auth_message'")

2014-03-12 Thread Christian Hammond
Hi,

First, did you back up your database?

Second, can you verify the version of Review Board you've upgraded to, and
also verify the version of django-evolution installed? (These should be in
your Python's site-packages directory).

You shouldn't do *any* hand-modifying of the database of any sort, or
you'll cause further issues in the upgrade process. Our stuff expects to
own the full schema of the database.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com


On Wed, Mar 12, 2014 at 3:23 AM, Bhaskar Roy wrote:

> Hi Christian,
>
> I am getting following error while doing site upgrade from 1.5 to Latest
> 1.7.
> Even created auth_message tablein MySqL DB.
>
>
> /usr/bin/python /usr/local/bin/rb-site upgrade "/var/www/reviewboard"
> Rebuilding directory structure
> Updating database. This may take a while.
>
> The log output below, including warnings and errors,
> can be ignored unless upgrade fails.
>
> --  --
> Creating tables ...
> There are unapplied evolutions for auth.
> There are unapplied evolutions for sessions.
> There are unapplied evolutions for accounts.
> There are unapplied evolutions for changedescs.
> There are unapplied evolutions for diffviewer.
> There are unapplied evolutions for reviews.
> There are unapplied evolutions for scmtools.
> Project signature has changed - an evolution is required
> Installing custom SQL ...
> Installing indexes ...
> Installed 0 object(s) from 0 fixture(s)
> Evolution could not be simulated, possibly due to raw SQL mutations
> Error: Error applying evolution: (1051, "Unknown table 'auth_message'")
>
> Regards
> bhaskar
>
> --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get review id before publishing a review request

2014-03-12 Thread Howard Lin
Hi Matthew,
Is below command available in 0.5.8 alpha 0 (dev) ?
=
"When RBTools 0.5 lands it will be much easier, as there should be an rbt 
command to take a review request ID and publish it. 
=
I'd like to get review request ID  before publishing, later it will be 
updated and published.
Thanks.

Howard


On Friday, February 22, 2013 12:29:43 PM UTC-5, Matthew Woehlke wrote:
>
> On 2013-02-22 01:20, chuck j wrote: 
> > Yes i am using wrapper over post-review script. I am already using 
> stdout 
> > of post-review to get the review id. I wanted to know if there is any 
> API 
> > which will help me get the review id before publishing the review 
> request? 
> > which i can use in my wrapper. 
>
> I don't think I understand what you want... the review ID doesn't exist 
> until you create the review, e.g. with post-review. Once the draft is 
> created, you can get the ID from post-review by parsing its stdout (not 
> elegant, but I don't know a better way). 
>
> If you mean that you need your script to create a draft, get the ID, do 
> something else, and then publish the review request... I don't believe 
> this is easily possible right now. When RBTools 0.5 lands it will be 
> much easier, as there should be an rbt command to take a review request 
> ID and publish it. 
>
> Otherwise, I think your only other option is to modify or copy 
> post-review so that you can add your own logic at the python layer. 
>
> Probably the best long term solution would be to write your logic in 
> Python and import the RBTools modules (again, will require at least 
> RBTools 0.5). RBTools should eventually have a way for other python code 
> to call to create a request that will get the ID back as a python 
> object, so that you do not need to do output parsing or other such 
> work-arounds. (And you will also be able to call other python code to 
> publish the request, once you have done whatever else you need to do.) 
>
> -- 
> Matthew 
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error: Error applying evolution: (1051, "Unknown table 'auth_message'")

2014-03-12 Thread Bhaskar Roy
Hi Christian,

I am getting following error while doing site upgrade from 1.5 to Latest 
1.7.
Even created auth_message tablein MySqL DB.


/usr/bin/python /usr/local/bin/rb-site upgrade "/var/www/reviewboard"
Rebuilding directory structure
Updating database. This may take a while.

The log output below, including warnings and errors,
can be ignored unless upgrade fails.

--  --
Creating tables ...
There are unapplied evolutions for auth.
There are unapplied evolutions for sessions.
There are unapplied evolutions for accounts.
There are unapplied evolutions for changedescs.
There are unapplied evolutions for diffviewer.
There are unapplied evolutions for reviews.
There are unapplied evolutions for scmtools.
Project signature has changed - an evolution is required
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
Evolution could not be simulated, possibly due to raw SQL mutations
Error: Error applying evolution: (1051, "Unknown table 'auth_message'")
 
Regards
bhaskar 

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ReviewBoard Hook

2014-03-12 Thread Christian Hammond
On Wed, Mar 12, 2014 at 12:12 PM, A.M.  wrote:

> On Wed, 12 Mar 2014 08:15:36 -0700 (PDT), Allen 
> wrote:
> > Hi guys,
> >
> > Does anybody familiar with the Hook system of ReviewBoard?
> > The thing is my team really needs a feature that requires ReviewBoard to
> > create a Jira ticket along with a new code review request.
> > Write an extension is too much work for me and I also dont think it`s a
> > good idea to directly modify the source code of ReviewBoard, so I am
> > wondering is it possible to just write a script, and when a new code
> review
> >
> > request is published, the ReviewBoard will trigger my script which will
> do
> > the Jira ticket creation?
> > I have looked into the Hook`s documentation but did not get any helpful
> > information.
>
> We initially implemented a reviewboard extension to add the reviewboard URL
> to JIRA tickets in a "Code Review URL" field and update the issue status to
> "In Code Review". What we discovered is that, since the operation is
> synchronous with JIRA, it slowed down submitting changes to reviewboard.
> Also, when JIRA dies (not an uncommon occurrence), the request to update
> the JIRA issue can just puke in the log file, cause reviewboard timeouts,
> and is then subsequently lost.
>
> To mitigate these problems, we implemented a cron job that polls for the
> latest reviewboard changes and updates JIRA out-of-band. The cron job uses
> the rbtools and jira-python modules. The downside is that the JIRA issue
> updating is not instantaneous.
>
> Cheers,
> M
>

Another option to consider is setting up RabbitMQ, and having your
extension make use of celery (http://www.celeryproject.org/) to put a
request in a distributed queue to do the update. With that, you don't have
to have the request wait around for the Jira communication to finish, and
you can code smart retries.

Review Bot (https://github.com/reviewboard/ReviewBot) makes use of celery
to do asynchronous operations.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ReviewBoard Hook

2014-03-12 Thread Christian Hammond
Hi Allen,

The extension stuff in current releases may have some issues. We'll have
them fixed up for the RC.

I'd recommend checking out one of our released extensions (
https://github.com/reviewboard/rb-extension-pack/) and using those as a
base.

We can answer any development questions on the reviewboard-dev list.

The Jira support will probably be in 2.1, if all goes well. Given that 2.0
is out, we're not talking a few weeks. It might be as much as half a year,
depending.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com


On Wed, Mar 12, 2014 at 12:05 PM, Allen  wrote:

> Official Jira support, I am so glad to hear that... Pretty cool and may I
> ask when this feature will be released? If I need to wait about half a
> year, then my boss may push me to develop one...
> And BTW, I tried the extension system of RB today, and with no luck I
> failed on the first step. When I tried to create a empty extension using
> the "generate_extension.py" tool, I got this error
> "jinja2.exceptions.TemplateNotFound: extension/__init__.py", any idea why
> this is happening?
> Really appreciate your help, thanks!
>
> On Wednesday, March 12, 2014 2:47:52 PM UTC-4, Christian Hammond wrote:
>
>> Hi Allen,
>>
>> We don't have hook support in the way you're describing. What you likely
>> saw was our extension support, which I assure you is not that hard to use
>> if you have any Python experience.
>>
>> Work is being done on official Jira support, though won't land until
>> after 2.0.
>>
>> Christian
>>
>>
>> On Wednesday, March 12, 2014, Allen  wrote:
>>
>>> Hi guys,
>>>
>>> Does anybody familiar with the Hook system of ReviewBoard?
>>> The thing is my team really needs a feature that requires ReviewBoard to
>>> create a Jira ticket along with a new code review request.
>>> Write an extension is too much work for me and I also dont think it`s a
>>> good idea to directly modify the source code of ReviewBoard, so I am
>>> wondering is it possible to just write a script, and when a new code review
>>> request is published, the ReviewBoard will trigger my script which will do
>>> the Jira ticket creation?
>>> I have looked into the Hook`s documentation but did not get any helpful
>>> information.
>>> Hope someone can give me a clue or some suggestions! Really appreciate
>>> your help! Thanks!
>>>
>>> --
>>> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
>>> ---
>>> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
>>> ---
>>> Happy user? Let us know at http://www.reviewboard.org/users/
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "reviewboard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to reviewboard+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> --
>> Christian Hammond - chi...@chipx86.com
>>
>> Review Board - http://www.reviewboard.org
>> Beanbag, Inc. - http://www.beanbaginc.com
>>
>>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ReviewBoard Hook

2014-03-12 Thread A.M.
On Wed, 12 Mar 2014 08:15:36 -0700 (PDT), Allen 
wrote:
> Hi guys,
> 
> Does anybody familiar with the Hook system of ReviewBoard? 
> The thing is my team really needs a feature that requires ReviewBoard to 
> create a Jira ticket along with a new code review request. 
> Write an extension is too much work for me and I also dont think it`s a 
> good idea to directly modify the source code of ReviewBoard, so I am 
> wondering is it possible to just write a script, and when a new code
review
> 
> request is published, the ReviewBoard will trigger my script which will
do 
> the Jira ticket creation?
> I have looked into the Hook`s documentation but did not get any helpful 
> information.

We initially implemented a reviewboard extension to add the reviewboard URL
to JIRA tickets in a "Code Review URL" field and update the issue status to
"In Code Review". What we discovered is that, since the operation is
synchronous with JIRA, it slowed down submitting changes to reviewboard.
Also, when JIRA dies (not an uncommon occurrence), the request to update
the JIRA issue can just puke in the log file, cause reviewboard timeouts,
and is then subsequently lost. 

To mitigate these problems, we implemented a cron job that polls for the
latest reviewboard changes and updates JIRA out-of-band. The cron job uses
the rbtools and jira-python modules. The downside is that the JIRA issue
updating is not instantaneous.

Cheers,
M

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ReviewBoard Hook

2014-03-12 Thread Allen
Official Jira support, I am so glad to hear that... Pretty cool and may I 
ask when this feature will be released? If I need to wait about half a 
year, then my boss may push me to develop one...
And BTW, I tried the extension system of RB today, and with no luck I 
failed on the first step. When I tried to create a empty extension using 
the "generate_extension.py" tool, I got this error 
"jinja2.exceptions.TemplateNotFound: extension/__init__.py", any idea why 
this is happening? 
Really appreciate your help, thanks!

On Wednesday, March 12, 2014 2:47:52 PM UTC-4, Christian Hammond wrote:
>
> Hi Allen,
>
> We don't have hook support in the way you're describing. What you likely 
> saw was our extension support, which I assure you is not that hard to use 
> if you have any Python experience.
>
> Work is being done on official Jira support, though won't land until after 
> 2.0.
>
> Christian
>
>
> On Wednesday, March 12, 2014, Allen > 
> wrote:
>
>> Hi guys,
>>
>> Does anybody familiar with the Hook system of ReviewBoard? 
>> The thing is my team really needs a feature that requires ReviewBoard to 
>> create a Jira ticket along with a new code review request. 
>> Write an extension is too much work for me and I also dont think it`s a 
>> good idea to directly modify the source code of ReviewBoard, so I am 
>> wondering is it possible to just write a script, and when a new code review 
>> request is published, the ReviewBoard will trigger my script which will do 
>> the Jira ticket creation?
>> I have looked into the Hook`s documentation but did not get any helpful 
>> information.
>> Hope someone can give me a clue or some suggestions! Really appreciate 
>> your help! Thanks!
>>
>> -- 
>> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
>> ---
>> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
>> ---
>> Happy user? Let us know at http://www.reviewboard.org/users/
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> -- 
> Christian Hammond - chi...@chipx86.com 
> Review Board - http://www.reviewboard.org
> Beanbag, Inc. - http://www.beanbaginc.com
>
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ReviewBoard Hook

2014-03-12 Thread Christian Hammond
Hi Allen,

We don't have hook support in the way you're describing. What you likely
saw was our extension support, which I assure you is not that hard to use
if you have any Python experience.

Work is being done on official Jira support, though won't land until after
2.0.

Christian


On Wednesday, March 12, 2014, Allen  wrote:

> Hi guys,
>
> Does anybody familiar with the Hook system of ReviewBoard?
> The thing is my team really needs a feature that requires ReviewBoard to
> create a Jira ticket along with a new code review request.
> Write an extension is too much work for me and I also dont think it`s a
> good idea to directly modify the source code of ReviewBoard, so I am
> wondering is it possible to just write a script, and when a new code review
> request is published, the ReviewBoard will trigger my script which will do
> the Jira ticket creation?
> I have looked into the Hook`s documentation but did not get any helpful
> information.
> Hope someone can give me a clue or some suggestions! Really appreciate
> your help! Thanks!
>
> --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 
> reviewboard+unsubscr...@googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ReviewBoard Hook

2014-03-12 Thread Allen
Hi guys,

Does anybody familiar with the Hook system of ReviewBoard? 
The thing is my team really needs a feature that requires ReviewBoard to 
create a Jira ticket along with a new code review request. 
Write an extension is too much work for me and I also dont think it`s a 
good idea to directly modify the source code of ReviewBoard, so I am 
wondering is it possible to just write a script, and when a new code review 
request is published, the ReviewBoard will trigger my script which will do 
the Jira ticket creation?
I have looked into the Hook`s documentation but did not get any helpful 
information.
Hope someone can give me a clue or some suggestions! Really appreciate your 
help! Thanks!

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: 2.0 RC1 - Unclear how to disable broken extension

2014-03-12 Thread Allen
What I figured out is you can 
1. remove dependences of that extension(use the easy_install -m)
2. delete the .egg file


On Tuesday, March 11, 2014 9:43:12 PM UTC-4, Javins, Walt wrote:
>
>  I was successfully able to get rid of this log spam by going to:
>
>  
>
> /admin/db/extensions/registeredextension/
>
>  
>
> And removing the reviewbot extension (apparently it was already disabled). 
> After an apache restart, the “Error loading extension” logspam was 
> suppressed.
>
>  
>
> Walt
>
>  
>  
> *From:* revie...@googlegroups.com  [mailto:
> revie...@googlegroups.com ] *On Behalf Of *Javins, Walt
> *Sent:* Tuesday, March 11, 2014 5:30 PM
> *To:* revie...@googlegroups.com 
> *Subject:* 2.0 RC1 - Unclear how to disable broken extension
>  
>  
>
> After upgrading from 1.7.21 to 2.0 RC1, I’m getting logspam like the 
> following:
>
>  
>
> 2014-03-12 07:19:09,446 - ERROR -  - Error loading extension reviewbotext: 
> cannot import name review_request_resource
>
>  
>
> I’ve attached a screenshot of what I see when I visit the extensions page 
> in the admin ui.
>
>  
>
> The work to make reviewbot 2.0 compatible aside, it doesn’t look like the 
> advertised disable extension feature is working:
>
>  
>
> http://www.reviewboard.org/docs/manual/dev/admin/extensions/#extensions
>
>  
>
> It would likely be worth updating the documentation or the code so that 
> the ‘fix’ for extensions broken by 2.0 is immediately apparent to users who 
> run into this problem.
>
>  
>
> Walt
>
>  
>
>  
>
> -- 
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://www.reviewboard.org/users/
> --- 
> You received this message because you are subscribed to the Google Groups 
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to reviewboard...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>  

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: 32-bit Installation of review board

2014-03-12 Thread Christian Hammond
Hi,

Review Board is not architecture-dependent. If you are hitting exceptions
that are definitely architecture-related, you'll need to look into the
libraries you have on your system and figure out what's going on.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com


On Wed, Mar 12, 2014 at 2:34 AM, Suneel  wrote:

> Is there a 32-bit installation of review board?, generates exception when
> installed on 32-bit.
> Please advice
>
> --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


32-bit Installation of review board

2014-03-12 Thread Suneel
Is there a 32-bit installation of review board?, generates exception when 
installed on 32-bit.
Please advice

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Plugin in Eclipse for RB?

2014-03-12 Thread Robert Munteanu
Yes, please use the Github issue tracker.

On Monday, March 10, 2014 7:50:23 PM UTC+2, Allen wrote:
>
> Thanks for your response Robert, I already found your cool project and I 
> am trying to play with it. So for now I have encountered some problems and 
> I think it`s better for me to post them on your github page, right?
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.