Re: How can a script determine if 'rbt post' needs a '-u' in a git post-commit workflow?

2017-01-05 Thread Terry Bringazi
Hi Christian,

Thank you very much for your quick detailed advice.

After numerous attempts on rbt version 0.7.7, I was unable to successfully 
post and then retrieve any extra variables with --field local_branch=.  

Fortunately, from your example arguments '--status=pending 
--only-fields=id,extra_data --only-links=', I learned how to select what I 
needed from /api/review-requests/ that already had our local branch names 
in it.  My use of rbt get-api this way is returning about 4 times as much 
as the query you suggested, but that's ok for now.  I appreciate the info 
you shared about version 0.8, having local branch info.  When we switch to 
that version, we can work on improving our script.  

Now that I can obtain the review ID, I can use -r , and with my tests 
so far, it works fine.

Without your assistance, I'm sure I would still be stuck trying to figure 
this out.

Thank you so much, and best regards,

Terry  L. Bringazi

On Wednesday, January 4, 2017 at 6:11:54 PM UTC-8, Terry Bringazi wrote:
>
> Hello, 
>
> I'm having a specific problem in trying to automate our use of 'rbt post' 
> in a git post-commit environment.  Any advice or solution would be 
> appreciated.
>
> In our current workflow, developers commit and push to their own branches 
> prior to peer review, and then we review changes in those branches before 
> merging from their branches.
>
> I'm trying to automate calls to the rbt command for changes that have 
> already been made to developer branches prior to merging from those 
> branches.  Basically, on the first 'rbt post', I want to call it without a 
> '-u', and for all subsequent calls for the same branch to include a '-u'.
>
> MY PROBLEM is, I have not yet been able to create a script that can 
> determine if 'rbt post' should be called with an update option '-u' or not.
>
> My script currently calls rbt post as follows,  (Note that $RB_UPDATE is 
> equal to either '-u' or ''):
> rbt post --api-token $RB_API_TOKEN $RB_UPDATE --guess-summary 
> --guess-description --branch $BRANCH --tracking-branch $PARENT_BRANCH -d -p 
> $commit_id
>
> I've found no efficient automated way to use 'rbt api-get' on 
> /review-requests/ to determine if rbt has any commit records for a 
> developer owned branch.  My thinking was that if reviewboard knows about a 
> prior commit for the branch, then for any subsequent 'rbt post', $RB_UPDATE 
> should be set to '-u'.I also tried using curl over http with a GET, but 
> did not find the right incantation.
>
> Is there an efficient way to automatically determine if 'rbt post' should 
> be called with an update option '-u' or not?
>
> Does my approach for automating use of reviewboard seem reasonable, or is 
> there a better strategy that I should consider?
>
> Thank you,
>
> Terry L. Bringazi
>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: Can't add GitHub Enterprise repo

2017-01-05 Thread Christian Hammond
Great! So Entry Points worked, but the repository types just never got
registered... Very strange, but glad it works now! It shouldn't happen
again, fortunately. The registerscmtools command registered persistent data
in the database that was just missing from the site installation.

Let me know if I can help with anything else :)

Christian

-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

On Thu, Jan 5, 2017 at 1:56 PM, Denys Pashutynskyi 
wrote:

> Sure.
>
> Here we go, see the screenshot. Seems like I have multiple options there.
>
>
> 
>
>
> On Thursday, January 5, 2017 at 1:50:20 PM UTC-8, Christian Hammond wrote:
>>
>> Glad it works!
>>
>> Can you sanity-check one more thing for me? Go into the Admin UI ->
>> Authentication settings and see if you have Active Directory, LDAP, etc. in
>> there as options. If not, then things are going to break in future releases
>> for you until we figure out what's wrong with the environment on that
>> server.
>>
>> Christian
>>
>> --
>> Christian Hammond
>> President/CEO of Beanbag 
>> Makers of Review Board 
>>
>> On Thu, Jan 5, 2017 at 1:45 PM, Denys Pashutynskyi 
>> wrote:
>>
>>> Now it works!
>>>
>>> Awesome, thank you so much for your help!
>>>
>>> ~# rb-site manage /var/www/reviewboard registerscmtools
>>>
>>> Registering new SCM Tool Subversion (reviewboard.scmtools.svn.SVNTool)
>>> in database
>>>
>>> Registering new SCM Tool Git (reviewboard.scmtools.git.GitTool) in
>>> database
>>>
>>> Registering new SCM Tool Bazaar (reviewboard.scmtools.bzr.BZRTool) in
>>> database
>>>
>>> Registering new SCM Tool CVS (reviewboard.scmtools.cvs.CVSTool) in
>>> database
>>>
>>> Registering new SCM Tool Perforce 
>>> (reviewboard.scmtools.perforce.PerforceTool)
>>> in database
>>>
>>> Registering new SCM Tool Plastic SCM 
>>> (reviewboard.scmtools.plastic.PlasticTool)
>>> in database
>>>
>>> Registering new SCM Tool ClearCase 
>>> (reviewboard.scmtools.clearcase.ClearCaseTool)
>>> in database
>>>
>>> Registering new SCM Tool Mercurial (reviewboard.scmtools.hg.HgTool) in
>>> database
>>>
>>>
>>>
>>> 
>>>
>>>
>>> Thanks again Christian for your amazing help and support!
>>>
>>>
>>> Denys
>>>
>>>
>>>
>>> On Thursday, January 5, 2017 at 1:32:19 PM UTC-8, Christian Hammond
>>> wrote:

 Hi Denys,

 Yep, something is definitely wrong. The registered entries are all
 missing, and this is the cause of the GitHub Enterprise issue (Git should
 be appearing in both lists). Is this a new install, and if so, was it
 installed into a virtual environment, standard system Python directory, or
 through a custom build setup? Basically, we make use of what's called
 Python Entrypoints (a native Python-wide introspectable class registration
 system) to register repository types (and auth backends, and other things),
 and if Review Board was installed into a custom environment through a
 custom packaging process, you can hit these things if the environment was
 not set up in the way the Python Entrypoints system expects.

 For now, let's try re-registering those entries. From the command line,
 run:

 $ rb-site manage /path/to/sitedir registerscmtools

 Then restart Apache one more time. See if they appear in the list.

 Depending on how things were installed, though, this may not be the
 ultimate fix. I'll work with you to figure out the proper course of action
 once I know more about the environment and install.

 Christian

 --
 Christian Hammond
 President/CEO of Beanbag 
 Makers of Review Board 

 On Thu, Jan 5, 2017 at 12:57 PM, Denys Pashutynskyi >>> > wrote:

> I restarted Apache. Nothing happened.
>
> I checked errors in browser - nothing critical, just few statical
> files not found:
>
>
> 
>
> I am also seeing that I can't specify of repo types except of "Team
> Foundation Server" and "Team Foundation Server (git)":
>
>
> 
>
>
> Do you think something is wrong with my overall setup?
>
>
> Thanks,
>
> Denys
>
>
> On Thursday, January 5, 2017 at 12:46:48 PM UTC-8, Christian Hammond
> wrote:
>>
>> Hi Denys,
>>

Re: Can't add GitHub Enterprise repo

2017-01-05 Thread Denys Pashutynskyi
Sure.

Here we go, see the screenshot. Seems like I have multiple options there.




On Thursday, January 5, 2017 at 1:50:20 PM UTC-8, Christian Hammond wrote:
>
> Glad it works!
>
> Can you sanity-check one more thing for me? Go into the Admin UI -> 
> Authentication settings and see if you have Active Directory, LDAP, etc. in 
> there as options. If not, then things are going to break in future releases 
> for you until we figure out what's wrong with the environment on that 
> server.
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
> On Thu, Jan 5, 2017 at 1:45 PM, Denys Pashutynskyi  > wrote:
>
>> Now it works!
>>
>> Awesome, thank you so much for your help!
>>
>> ~# rb-site manage /var/www/reviewboard registerscmtools
>>
>> Registering new SCM Tool Subversion (reviewboard.scmtools.svn.SVNTool) in 
>> database
>>
>> Registering new SCM Tool Git (reviewboard.scmtools.git.GitTool) in 
>> database
>>
>> Registering new SCM Tool Bazaar (reviewboard.scmtools.bzr.BZRTool) in 
>> database
>>
>> Registering new SCM Tool CVS (reviewboard.scmtools.cvs.CVSTool) in 
>> database
>>
>> Registering new SCM Tool Perforce 
>> (reviewboard.scmtools.perforce.PerforceTool) in database
>>
>> Registering new SCM Tool Plastic SCM 
>> (reviewboard.scmtools.plastic.PlasticTool) in database
>>
>> Registering new SCM Tool ClearCase 
>> (reviewboard.scmtools.clearcase.ClearCaseTool) in database
>>
>> Registering new SCM Tool Mercurial (reviewboard.scmtools.hg.HgTool) in 
>> database
>>
>>
>>
>> 
>>
>>
>> Thanks again Christian for your amazing help and support!
>>
>>
>> Denys
>>
>>
>>
>> On Thursday, January 5, 2017 at 1:32:19 PM UTC-8, Christian Hammond wrote:
>>>
>>> Hi Denys,
>>>
>>> Yep, something is definitely wrong. The registered entries are all 
>>> missing, and this is the cause of the GitHub Enterprise issue (Git should 
>>> be appearing in both lists). Is this a new install, and if so, was it 
>>> installed into a virtual environment, standard system Python directory, or 
>>> through a custom build setup? Basically, we make use of what's called 
>>> Python Entrypoints (a native Python-wide introspectable class registration 
>>> system) to register repository types (and auth backends, and other things), 
>>> and if Review Board was installed into a custom environment through a 
>>> custom packaging process, you can hit these things if the environment was 
>>> not set up in the way the Python Entrypoints system expects.
>>>
>>> For now, let's try re-registering those entries. From the command line, 
>>> run:
>>>
>>> $ rb-site manage /path/to/sitedir registerscmtools
>>>
>>> Then restart Apache one more time. See if they appear in the list.
>>>
>>> Depending on how things were installed, though, this may not be the 
>>> ultimate fix. I'll work with you to figure out the proper course of action 
>>> once I know more about the environment and install.
>>>
>>> Christian
>>>
>>> -- 
>>> Christian Hammond
>>> President/CEO of Beanbag 
>>> Makers of Review Board 
>>>
>>> On Thu, Jan 5, 2017 at 12:57 PM, Denys Pashutynskyi  
>>> wrote:
>>>
 I restarted Apache. Nothing happened.

 I checked errors in browser - nothing critical, just few statical files 
 not found:


 

 I am also seeing that I can't specify of repo types except of "Team 
 Foundation Server" and "Team Foundation Server (git)":


 


 Do you think something is wrong with my overall setup?


 Thanks,

 Denys


 On Thursday, January 5, 2017 at 12:46:48 PM UTC-8, Christian Hammond 
 wrote:
>
> Hi Denys,
>
> Can you try restarting Apache and trying again?
>
> Are there any errors in the browser's JavaScriot console log?
>
> Christian
>
>
> On Thu, Jan 5, 2017 at 09:22 Denys Pashutynskyi  
> wrote:
>
>> Hi Christian,
>>
>> Yes, I have Power Pack and I even activated the trial license.
>>
>> The version of Review Board Power Pack is 1.4.2
>>
>> GitHub Enterprise support enabled. The screenshot is below.
>>
>>
>>
>> 
>>
>>
>> On 

Re: Can't add GitHub Enterprise repo

2017-01-05 Thread Christian Hammond
Glad it works!

Can you sanity-check one more thing for me? Go into the Admin UI ->
Authentication settings and see if you have Active Directory, LDAP, etc. in
there as options. If not, then things are going to break in future releases
for you until we figure out what's wrong with the environment on that
server.

Christian

-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

On Thu, Jan 5, 2017 at 1:45 PM, Denys Pashutynskyi 
wrote:

> Now it works!
>
> Awesome, thank you so much for your help!
>
> ~# rb-site manage /var/www/reviewboard registerscmtools
>
> Registering new SCM Tool Subversion (reviewboard.scmtools.svn.SVNTool) in
> database
>
> Registering new SCM Tool Git (reviewboard.scmtools.git.GitTool) in
> database
>
> Registering new SCM Tool Bazaar (reviewboard.scmtools.bzr.BZRTool) in
> database
>
> Registering new SCM Tool CVS (reviewboard.scmtools.cvs.CVSTool) in
> database
>
> Registering new SCM Tool Perforce (reviewboard.scmtools.perforce.PerforceTool)
> in database
>
> Registering new SCM Tool Plastic SCM 
> (reviewboard.scmtools.plastic.PlasticTool)
> in database
>
> Registering new SCM Tool ClearCase 
> (reviewboard.scmtools.clearcase.ClearCaseTool)
> in database
>
> Registering new SCM Tool Mercurial (reviewboard.scmtools.hg.HgTool) in
> database
>
>
>
> 
>
>
> Thanks again Christian for your amazing help and support!
>
>
> Denys
>
>
>
> On Thursday, January 5, 2017 at 1:32:19 PM UTC-8, Christian Hammond wrote:
>>
>> Hi Denys,
>>
>> Yep, something is definitely wrong. The registered entries are all
>> missing, and this is the cause of the GitHub Enterprise issue (Git should
>> be appearing in both lists). Is this a new install, and if so, was it
>> installed into a virtual environment, standard system Python directory, or
>> through a custom build setup? Basically, we make use of what's called
>> Python Entrypoints (a native Python-wide introspectable class registration
>> system) to register repository types (and auth backends, and other things),
>> and if Review Board was installed into a custom environment through a
>> custom packaging process, you can hit these things if the environment was
>> not set up in the way the Python Entrypoints system expects.
>>
>> For now, let's try re-registering those entries. From the command line,
>> run:
>>
>> $ rb-site manage /path/to/sitedir registerscmtools
>>
>> Then restart Apache one more time. See if they appear in the list.
>>
>> Depending on how things were installed, though, this may not be the
>> ultimate fix. I'll work with you to figure out the proper course of action
>> once I know more about the environment and install.
>>
>> Christian
>>
>> --
>> Christian Hammond
>> President/CEO of Beanbag 
>> Makers of Review Board 
>>
>> On Thu, Jan 5, 2017 at 12:57 PM, Denys Pashutynskyi 
>> wrote:
>>
>>> I restarted Apache. Nothing happened.
>>>
>>> I checked errors in browser - nothing critical, just few statical files
>>> not found:
>>>
>>>
>>> 
>>>
>>> I am also seeing that I can't specify of repo types except of "Team
>>> Foundation Server" and "Team Foundation Server (git)":
>>>
>>>
>>> 
>>>
>>>
>>> Do you think something is wrong with my overall setup?
>>>
>>>
>>> Thanks,
>>>
>>> Denys
>>>
>>>
>>> On Thursday, January 5, 2017 at 12:46:48 PM UTC-8, Christian Hammond
>>> wrote:

 Hi Denys,

 Can you try restarting Apache and trying again?

 Are there any errors in the browser's JavaScriot console log?

 Christian


 On Thu, Jan 5, 2017 at 09:22 Denys Pashutynskyi 
 wrote:

> Hi Christian,
>
> Yes, I have Power Pack and I even activated the trial license.
>
> The version of Review Board Power Pack is 1.4.2
>
> GitHub Enterprise support enabled. The screenshot is below.
>
>
>
> 
>
>
> On Wednesday, January 4, 2017 at 8:30:48 PM UTC-8, Christian Hammond
> wrote:
>
>> Hi Denys,
>>
>> Hmm, there should have been something in that list..
>>
>> Do you have Power Pack (https://www.reviewboard.org/powerpack/)
>> installed, and if so, what version? GitHub Enterprise is a Power Pack
>> feature, and the entry in standalone Review Board is just a placeholder
>> describing how to install Power Pack.
>>
>> Christian
>>
>>

Re: Can't add GitHub Enterprise repo

2017-01-05 Thread Denys Pashutynskyi
Now it works!

Awesome, thank you so much for your help!

~# rb-site manage /var/www/reviewboard registerscmtools

Registering new SCM Tool Subversion (reviewboard.scmtools.svn.SVNTool) in 
database

Registering new SCM Tool Git (reviewboard.scmtools.git.GitTool) in database

Registering new SCM Tool Bazaar (reviewboard.scmtools.bzr.BZRTool) in 
database

Registering new SCM Tool CVS (reviewboard.scmtools.cvs.CVSTool) in database

Registering new SCM Tool Perforce 
(reviewboard.scmtools.perforce.PerforceTool) in database

Registering new SCM Tool Plastic SCM 
(reviewboard.scmtools.plastic.PlasticTool) in database

Registering new SCM Tool ClearCase 
(reviewboard.scmtools.clearcase.ClearCaseTool) in database

Registering new SCM Tool Mercurial (reviewboard.scmtools.hg.HgTool) in 
database





Thanks again Christian for your amazing help and support!


Denys



On Thursday, January 5, 2017 at 1:32:19 PM UTC-8, Christian Hammond wrote:
>
> Hi Denys,
>
> Yep, something is definitely wrong. The registered entries are all 
> missing, and this is the cause of the GitHub Enterprise issue (Git should 
> be appearing in both lists). Is this a new install, and if so, was it 
> installed into a virtual environment, standard system Python directory, or 
> through a custom build setup? Basically, we make use of what's called 
> Python Entrypoints (a native Python-wide introspectable class registration 
> system) to register repository types (and auth backends, and other things), 
> and if Review Board was installed into a custom environment through a 
> custom packaging process, you can hit these things if the environment was 
> not set up in the way the Python Entrypoints system expects.
>
> For now, let's try re-registering those entries. From the command line, 
> run:
>
> $ rb-site manage /path/to/sitedir registerscmtools
>
> Then restart Apache one more time. See if they appear in the list.
>
> Depending on how things were installed, though, this may not be the 
> ultimate fix. I'll work with you to figure out the proper course of action 
> once I know more about the environment and install.
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
> On Thu, Jan 5, 2017 at 12:57 PM, Denys Pashutynskyi  > wrote:
>
>> I restarted Apache. Nothing happened.
>>
>> I checked errors in browser - nothing critical, just few statical files 
>> not found:
>>
>>
>> 
>>
>> I am also seeing that I can't specify of repo types except of "Team 
>> Foundation Server" and "Team Foundation Server (git)":
>>
>>
>> 
>>
>>
>> Do you think something is wrong with my overall setup?
>>
>>
>> Thanks,
>>
>> Denys
>>
>>
>> On Thursday, January 5, 2017 at 12:46:48 PM UTC-8, Christian Hammond 
>> wrote:
>>>
>>> Hi Denys,
>>>
>>> Can you try restarting Apache and trying again?
>>>
>>> Are there any errors in the browser's JavaScriot console log?
>>>
>>> Christian
>>>
>>>
>>> On Thu, Jan 5, 2017 at 09:22 Denys Pashutynskyi  
>>> wrote:
>>>
 Hi Christian,

 Yes, I have Power Pack and I even activated the trial license.

 The version of Review Board Power Pack is 1.4.2

 GitHub Enterprise support enabled. The screenshot is below.



 


 On Wednesday, January 4, 2017 at 8:30:48 PM UTC-8, Christian Hammond 
 wrote:

> Hi Denys,
>
> Hmm, there should have been something in that list..
>
> Do you have Power Pack (https://www.reviewboard.org/powerpack/) 
> installed, and if so, what version? GitHub Enterprise is a Power Pack 
> feature, and the entry in standalone Review Board is just a placeholder 
> describing how to install Power Pack.
>
> Christian
>

> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
>
>
> On Wed, Jan 4, 2017 at 6:30 PM, Denys Pashutynskyi  > wrote:
>
 Hi All,
>>
>> I am having problems with adding GitHub Enterprise repo to 
>> my reviewboard setup (Review Board 2.5.7).
>>
>> "Account" under "REPOSITORY HOSTING" is always empty and "Repository 
>> type" is not selectable. 
>>
>> Do you have an idea what might be wrong? 
>>
>> Thanks!
>>
>>
>> 

Re: Can't add GitHub Enterprise repo

2017-01-05 Thread Christian Hammond
Hi Denys,

Yep, something is definitely wrong. The registered entries are all missing,
and this is the cause of the GitHub Enterprise issue (Git should be
appearing in both lists). Is this a new install, and if so, was it
installed into a virtual environment, standard system Python directory, or
through a custom build setup? Basically, we make use of what's called
Python Entrypoints (a native Python-wide introspectable class registration
system) to register repository types (and auth backends, and other things),
and if Review Board was installed into a custom environment through a
custom packaging process, you can hit these things if the environment was
not set up in the way the Python Entrypoints system expects.

For now, let's try re-registering those entries. From the command line, run:

$ rb-site manage /path/to/sitedir registerscmtools

Then restart Apache one more time. See if they appear in the list.

Depending on how things were installed, though, this may not be the
ultimate fix. I'll work with you to figure out the proper course of action
once I know more about the environment and install.

Christian

-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

On Thu, Jan 5, 2017 at 12:57 PM, Denys Pashutynskyi 
wrote:

> I restarted Apache. Nothing happened.
>
> I checked errors in browser - nothing critical, just few statical files
> not found:
>
>
> 
>
> I am also seeing that I can't specify of repo types except of "Team
> Foundation Server" and "Team Foundation Server (git)":
>
>
> 
>
>
> Do you think something is wrong with my overall setup?
>
>
> Thanks,
>
> Denys
>
>
> On Thursday, January 5, 2017 at 12:46:48 PM UTC-8, Christian Hammond wrote:
>>
>> Hi Denys,
>>
>> Can you try restarting Apache and trying again?
>>
>> Are there any errors in the browser's JavaScriot console log?
>>
>> Christian
>>
>>
>> On Thu, Jan 5, 2017 at 09:22 Denys Pashutynskyi 
>> wrote:
>>
>>> Hi Christian,
>>>
>>> Yes, I have Power Pack and I even activated the trial license.
>>>
>>> The version of Review Board Power Pack is 1.4.2
>>>
>>> GitHub Enterprise support enabled. The screenshot is below.
>>>
>>>
>>>
>>> 
>>>
>>>
>>> On Wednesday, January 4, 2017 at 8:30:48 PM UTC-8, Christian Hammond
>>> wrote:
>>>
 Hi Denys,

 Hmm, there should have been something in that list..

 Do you have Power Pack (https://www.reviewboard.org/powerpack/)
 installed, and if so, what version? GitHub Enterprise is a Power Pack
 feature, and the entry in standalone Review Board is just a placeholder
 describing how to install Power Pack.

 Christian

>>>
 --
 Christian Hammond
 President/CEO of Beanbag 
 Makers of Review Board 



 On Wed, Jan 4, 2017 at 6:30 PM, Denys Pashutynskyi 
 wrote:

>>> Hi All,
>
> I am having problems with adding GitHub Enterprise repo to
> my reviewboard setup (Review Board 2.5.7).
>
> "Account" under "REPOSITORY HOSTING" is always empty and "Repository
> type" is not selectable.
>
> Do you have an idea what might be wrong?
>
> Thanks!
>
>
> 
>
>
> 
>
>
>
>
>
>
>
>
>
>
>
> --
>
>
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
>
>
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
>
>
> Happy user? Let us know! https://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.
>
>
>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>> Supercharge your Review Board with Power Pack:
>>> https://www.reviewboard.org/powerpack/
>>>
>>>
>>> Want us to host Review Board for you? Check out RBCommons:
>>> https://rbcommons.com/
>>>
>>>
>>> Happy user? Let us know! https://www.r

Re: Can't add GitHub Enterprise repo

2017-01-05 Thread Denys Pashutynskyi
I restarted Apache. Nothing happened.

I checked errors in browser - nothing critical, just few statical files not 
found:



I am also seeing that I can't specify of repo types except of "Team 
Foundation Server" and "Team Foundation Server (git)":




Do you think something is wrong with my overall setup?


Thanks,

Denys


On Thursday, January 5, 2017 at 12:46:48 PM UTC-8, Christian Hammond wrote:
>
> Hi Denys,
>
> Can you try restarting Apache and trying again?
>
> Are there any errors in the browser's JavaScriot console log?
>
> Christian
>
>
> On Thu, Jan 5, 2017 at 09:22 Denys Pashutynskyi  > wrote:
>
>> Hi Christian,
>>
>> Yes, I have Power Pack and I even activated the trial license.
>>
>> The version of Review Board Power Pack is 1.4.2
>>
>> GitHub Enterprise support enabled. The screenshot is below.
>>
>>
>>
>> 
>>
>>
>> On Wednesday, January 4, 2017 at 8:30:48 PM UTC-8, Christian Hammond 
>> wrote:
>>
>>> Hi Denys,
>>>
>>> Hmm, there should have been something in that list..
>>>
>>> Do you have Power Pack (https://www.reviewboard.org/powerpack/) 
>>> installed, and if so, what version? GitHub Enterprise is a Power Pack 
>>> feature, and the entry in standalone Review Board is just a placeholder 
>>> describing how to install Power Pack.
>>>
>>> Christian
>>>
>>
>>> -- 
>>> Christian Hammond
>>> President/CEO of Beanbag 
>>> Makers of Review Board 
>>>
>>>
>>>
>>> On Wed, Jan 4, 2017 at 6:30 PM, Denys Pashutynskyi  
>>> wrote:
>>>
>> Hi All,

 I am having problems with adding GitHub Enterprise repo to 
 my reviewboard setup (Review Board 2.5.7).

 "Account" under "REPOSITORY HOSTING" is always empty and "Repository 
 type" is not selectable. 

 Do you have an idea what might be wrong? 

 Thanks!


 


 











 -- 


 Supercharge your Review Board with Power Pack: 
 https://www.reviewboard.org/powerpack/


 Want us to host Review Board for you? Check out RBCommons: 
 https://rbcommons.com/


 Happy user? Let us know! https://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.



>>
>>
>>
>>
>>
>>
>>
>> -- 
>>
>>
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>>
>>
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>>
>>
>> Happy user? Let us know! https://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.
>>
>>
>>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: Can't add GitHub Enterprise repo

2017-01-05 Thread Christian Hammond
Hi Denys,

Can you try restarting Apache and trying again?

Are there any errors in the browser's JavaScriot console log?

Christian


On Thu, Jan 5, 2017 at 09:22 Denys Pashutynskyi 
wrote:

> Hi Christian,
>
> Yes, I have Power Pack and I even activated the trial license.
>
> The version of Review Board Power Pack is 1.4.2
>
> GitHub Enterprise support enabled. The screenshot is below.
>
>
>
> 
>
>
> On Wednesday, January 4, 2017 at 8:30:48 PM UTC-8, Christian Hammond wrote:
>
> Hi Denys,
>
> Hmm, there should have been something in that list..
>
> Do you have Power Pack (https://www.reviewboard.org/powerpack/)
> installed, and if so, what version? GitHub Enterprise is a Power Pack
> feature, and the entry in standalone Review Board is just a placeholder
> describing how to install Power Pack.
>
> Christian
>
>
> --
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
>
>
> On Wed, Jan 4, 2017 at 6:30 PM, Denys Pashutynskyi 
> wrote:
>
> Hi All,
>
> I am having problems with adding GitHub Enterprise repo to my reviewboard
> setup (Review Board 2.5.7).
>
> "Account" under "REPOSITORY HOSTING" is always empty and "Repository type"
> is not selectable.
>
> Do you have an idea what might be wrong?
>
> Thanks!
>
>
> 
>
>
> 
>
>
>
>
>
>
>
>
>
>
>
> --
>
>
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
>
>
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
>
>
> Happy user? Let us know! https://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.
>
>
>
>
>
>
>
>
>
>
> --
>
>
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
>
>
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
>
>
> Happy user? Let us know! https://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.
>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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 bug link extra character

2017-01-05 Thread jerome
Hi,
we are having some trouble with the bug id link into the description with 
the #. It seem to grab more then wanted.

When looking at a bug page, into the description is as follow:

(4217af6d21d0) (Issue #2100) 
 fix after some 
behavior changes and property gone


and have the following html code:
Issue #2100)

If this link is used, the ending ')' grabbed that is part of the link is 
bad and make a bad link. It should not have highlight the ) and the link 
should be as follow:
/reviewboard/r/2775/bugs/2100/

It's probably an easy regex fix, but I don't known where to search for it, 
is it done into django, reviewboard, javascript code...
If someone known where to change it I could manage the regex on my own.


We have review board 2.5.1.1

Thanks,
Jerome

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: Can't add GitHub Enterprise repo

2017-01-05 Thread Denys Pashutynskyi
Hi Christian,

Yes, I have Power Pack and I even activated the trial license.

The version of Review Board Power Pack is 1.4.2

GitHub Enterprise support enabled. The screenshot is below.





On Wednesday, January 4, 2017 at 8:30:48 PM UTC-8, Christian Hammond wrote:
>
> Hi Denys,
>
> Hmm, there should have been something in that list..
>
> Do you have Power Pack (https://www.reviewboard.org/powerpack/) 
> installed, and if so, what version? GitHub Enterprise is a Power Pack 
> feature, and the entry in standalone Review Board is just a placeholder 
> describing how to install Power Pack.
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
> On Wed, Jan 4, 2017 at 6:30 PM, Denys Pashutynskyi  > wrote:
>
>> Hi All,
>>
>> I am having problems with adding GitHub Enterprise repo to my reviewboard 
>> setup (Review Board 2.5.7).
>>
>> "Account" under "REPOSITORY HOSTING" is always empty and "Repository 
>> type" is not selectable. 
>>
>> Do you have an idea what might be wrong? 
>>
>> Thanks!
>>
>>
>> 
>>
>>
>> 
>>
>>
>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://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.
>>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: Unable to import settings_local.py: No module named settings_local

2017-01-05 Thread pradeep kumar

Thank you Christian for immediate response. Will check and let you know.

On Thursday, January 5, 2017 at 2:36:25 PM UTC+5:30, Christian Hammond 
wrote:
>
> Hi Pradeep,
>
> This looks more like an issue with your Apache configuration. It looks 
> like the server is using a SSL certificate intended for a different name 
> than the virtualhost is configured for. It doesn't seem related to the 
> extension work. You'll need to be sure the virtualhost and certificate are 
> compatible.
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
> On Wed, Jan 4, 2017 at 11:32 PM, pradeep kumar  > wrote:
>
>> Hi Christian,
>>
>> After restart web server, my extension is showing in adamin/extensions 
>> page. But, when I enable my extension its failing with 500 error :
>>
>> [Wed Jan 04 06:12:19.002675 2017] [:error] [pid 14184] Misconfiguration 
>> of certificate's CN and virtual name. The certificate CN has 
>> localhost4.localdomain4. We expected vmax-dev-reviewboard as virtual name.
>>
>> Could you please provide solution for above error? 
>>
>>
>> Thanks for your timely help
>> Regards
>> Pradeep Kumar
>>
>>
>> On Monday, January 2, 2017 at 4:13:44 PM UTC+5:30, pradeep kumar wrote:
>>>
>>> Hi Christian,
>>>
>>> Thanks for the immediate response. I was on vacation last week, sorry 
>>> for the delay response.  
>>>
>>> I have written one extension as a package for customized widget on admin 
>>> page with the following files and directory structure :
>>>
>>> cd reviewboard
>>> mkdir -p mywidget
>>> cd mywidget
>>>
>>> mywidget
>>>   - setup.py
>>>   - mywidget (directory)
>>> - __init__.py
>>> - extension.py
>>> - admin_urls.py
>>> widgets (directory)
>>>  - my-widget.html
>>>
>>>
>>> setup.py :
>>> --
>>>
>>> from setuptools import setup
>>>
>>> PACKAGE = "mywidget"
>>> VERSION = "0.1"
>>>
>>> setup(
>>> name=PACKAGE,
>>> version=VERSION,
>>> description="Test of customized admin widget",
>>> author="pradeep",
>>> packages=["mywidget"],
>>> entry_points={
>>> 'reviewboard.extensions':
>>> '%s = mywidget.extension:MyWidget' % PACKAGE,
>>> },
>>> package_data={
>>> 'mywidget': [
>>> 'mywidget/widgets/my-widget.html',
>>> ],
>>> }
>>> )
>>>
>>>
>>> extension.py :
>>> 
>>>
>>> from django.utils.translation import ugettext_lazy as _
>>> from reviewboard.admin.widgets import Widget
>>> from reviewboard.extensions.base import Extension
>>> from reviewboard.extensions.hooks import AdminWidgetHook
>>>
>>>
>>> class SampleWidget(Widget):
>>> widget_id = 'my_sample_widget'
>>> title = _('My Widget')
>>> template = 'mywidget/widgets/my-widget.html'
>>>
>>> class MyWidget(Extension):
>>> def initialize(self):
>>> AdminWidgetHook(self, SampleWidget)
>>>
>>>
>>> my-widget.html :
>>> 
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ADAM WIDGET
>>> 
>>> 
>>> 
>>> 
>>> None Available
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>> Reviewboard version : 2.5.7
>>>
>>>
>>> After that I ran 'python setup.py develop', it successfully generated 
>>> mywidget.egg-info. 
>>> Then I went to my reviewboard admin page, clicked on 'Extensions' and 
>>> then 'Scan for installed extensions'. my extension doesn't exist. 
>>>
>>>
>>> Could you please help me out here. Please correct me if I missed 
>>> anything or made wrong. I am new to Django.
>>>
>>> Note : I didn't find ./contrib/tools/generate_extension.py in my 
>>> reviewboard package.
>>>
>>> Please help me to add a customized widget on my admin page. 
>>>
>>>
>>> Thanks for your timely help. 
>>> Regards
>>> Pradeep Kumar
>>>
>>>
>>> On Thursday, December 22, 2016 at 5:53:46 AM UTC+5:30, Christian Hammond 
>>> wrote:

 Hi Pradeep,

 You'll need to follow the guide on writing, packaging, and loading 
 extensions. This will have to be written as a packaged, loadable 
 extension, 
 which will be enabled through Review Board. It won't work as a standalone 
 script, since it won't be running within the context of Review Board.

 Christian


 On Tue, Dec 20, 2016 at 07:17 pradeep kumar  wrote:

> Hello There,
>
> As 
> https://www.reviewboard.org/docs/manual/2.5/extending/extensions/hooks/admin-widget-hook/,
>  
> I was trying to add a widget to my reviewboard admin dashboard.
>
> Review Board 2.5.7
> Python Version 2.7.5
> django Version (1, 6, 12, 'alpha', 0)
> OS Version :
> Linux centos72_base 3.10.0-327.10.1.el7.x86_64 #1 SMP Tue Feb 16 
> 17:03:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
>
>
> When I try to run above example code, I got the following output :

Re: Problem with 'python setup.py develop' - [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE]

2017-01-05 Thread bgrabows1
It works now! 

Thanks!

Regards,
Bartlomiej Grabowski

On Wednesday, January 4, 2017 at 11:54:12 PM UTC+1, Christian Hammond wrote:
>
> This *should* be working again. Can you give it a try?
>
> The problem was that, in the process of renewing a certificate, I also 
> enabled HTTP -> HTTPS redirect, but this broke older versions of Python 
> that couldn't work with SNI-based SSL setups (an unfortunate requirement in 
> our case). I've turned off the redirect, so it should be possible to 
> download over HTTP again.
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
> On Wed, Jan 4, 2017 at 1:07 PM, Christian Hammond  > wrote:
>
>> Hi,
>>
>> There was a change made to the servers that broke this. I'm working on a 
>> fix now. Sorry for the trouble! Keep trying periodically (some things will 
>> need to sync across our CDN), and let me know if it begins to work for you.
>>
>> Christian
>>
>>
>> On Wed, Jan 4, 2017 at 07:16 > wrote:
>>
>>> Hi,
>>>
>>> I tried to run 'python setup.py develop' but I have error as below:
>>>
>>> Download error on http://downloads.reviewboard.org/mirror/: [SSL: 
>>> SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:590) 
>>> -- Some packages may not be found!
>>> Download error on 
>>> http://downloads.reviewboard.org/releases/ReviewBoard/1.7/: [SSL: 
>>> SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:590) 
>>> -- Some packages may not be found!
>>>
>>> I suppose it is related to certificate upgrade on 
>>> downloads.reviewboard.org (protocol TLS 1.2 now)
>>>
>>> I use ReviewBoard 1.7.26 on Ubuntu 16.04. Virtualenv as below:
>>>
>>> chardet==2.3.0
>>> cryptography==1.2.3
>>> Django==1.4.22
>>> django-evolution==0.6.10
>>> django-loginas==0.1.4
>>> django-pipeline==1.2.24
>>> Djblets==0.7.33
>>> docutils==0.13.1
>>> enum34==1.1.2
>>> futures==3.0.5
>>> gitdb==0.6.4
>>> GitPython==1.0.1
>>> idna==2.0
>>> ipaddress==1.0.16
>>> itsdangerous==0.24
>>> Jinja2==2.8
>>> jsmin==2.2.1
>>> Mako==1.0.3
>>> Markdown==2.6.7
>>> MarkupSafe==0.23
>>> mimeparse==0.1.3
>>> msgpack-python==0.4.6
>>> mysqlclient==1.3.7
>>> ndg-httpsclient==0.4.0
>>> ordereddict==1.1
>>> paramiko==2.1.1
>>> pbr==1.10.0
>>> pyasn1==0.1.9
>>> pycrypto==2.6.1
>>> pycurl==7.43.0
>>> Pygments==2.1.3
>>> PyMySQL==0.7.2
>>> pyOpenSSL==0.15.1
>>> python-apt==1.1.0b1
>>> python-dateutil==1.5
>>> python-ldap==2.4.22
>>> python-memcached==1.58
>>> python-systemd==231
>>> pytz==2016.10
>>> PyYAML==3.11
>>> pyzmq==15.2.0
>>> recaptcha-client==1.0.6
>>> requests==2.9.1
>>> salt==2016.11.1
>>> simplejson==3.10.0
>>> six==1.10.0
>>> smmap==0.9.0
>>> stevedore==1.19.1
>>> suds==0.4
>>> tornado==4.2.1
>>> urllib3==1.13.1
>>> virtualenv==15.1.0
>>> virtualenv-clone==0.2.6
>>> virtualenvwrapper==4.7.2
>>>
>>>
>>> Any thoughts? 
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> -- 
>>>
>>>
>>> Supercharge your Review Board with Power Pack: 
>>> https://www.reviewboard.org/powerpack/
>>>
>>>
>>> Want us to host Review Board for you? Check out RBCommons: 
>>> https://rbcommons.com/
>>>
>>>
>>> Happy user? Let us know! https://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.
>>>
>>>
>>>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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 can a script determine if 'rbt post' needs a '-u' in a git post-commit workflow?

2017-01-05 Thread Christian Hammond
Hi Terry,

You can try using rbt api-get on /review-requests/ with the
commit-id= query parameter, if you know the previous commit.
However, it's likely this will have changed, since commit IDs aren't stable
when updating code on a branch.

The in-development version of RBTools (currently 0.8, might be 1.0) stores
some additional state when doing a `rbt post` containing the branch the
change was posted from. This is stored in
review_request.extra_data['local_branch']. We use this in `rbt status` to
show the corresponding branch when looking through the review requests that
are up for review.

One option is to beta test this and make use of it yourself. However, you
can do something very similar yourself today:


   1. When posting a change using `rbt post`, pass: --field
   local_branch= (or some other kind of identifier, if
   something else works better for you).

   2. To determine whether to update an existing review request, iterate
   through all opened review requests and look for an extra_data.local_branch
   (or your custom identifier) field. If you see one matching what you're
   checking against, you can decide to update. If you don't, then you post a
   new one.

   This can look like:

   $ rbt api-get https:///api/review-requests/
   --from-user= --status=pending --only-fields=id,extra_data
   --only-links=

   That will return just the ID and extra data (and a couple other little
   pieces of info that get added), keeping the results simple.

   3. Instead of using -u, use -r , where  is the ID in that
   result. This will be much faster than -u, and will be accurate, assuming
   the data you store in extra_data is enough to properly identify that review
   request.


Hope that helps!

Christian

-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

On Wed, Jan 4, 2017 at 6:10 PM, Terry Bringazi 
wrote:

> Hello,
>
> I'm having a specific problem in trying to automate our use of 'rbt post'
> in a git post-commit environment.  Any advice or solution would be
> appreciated.
>
> In our current workflow, developers commit and push to their own branches
> prior to peer review, and then we review changes in those branches before
> merging from their branches.
>
> I'm trying to automate calls to the rbt command for changes that have
> already been made to developer branches prior to merging from those
> branches.  Basically, on the first 'rbt post', I want to call it without a
> '-u', and for all subsequent calls for the same branch to include a '-u'.
>
> MY PROBLEM is, I have not yet been able to create a script that can
> determine if 'rbt post' should be called with an update option '-u' or not.
>
> My script currently calls rbt post as follows,  (Note that $RB_UPDATE is
> equal to either '-u' or ''):
> rbt post --api-token $RB_API_TOKEN $RB_UPDATE --guess-summary
> --guess-description --branch $BRANCH --tracking-branch $PARENT_BRANCH -d -p
> $commit_id
>
> I've found no efficient automated way to use 'rbt api-get' on
> /review-requests/ to determine if rbt has any commit records for a
> developer owned branch.  My thinking was that if reviewboard knows about a
> prior commit for the branch, then for any subsequent 'rbt post', $RB_UPDATE
> should be set to '-u'.I also tried using curl over http with a GET, but
> did not find the right incantation.
>
> Is there an efficient way to automatically determine if 'rbt post' should
> be called with an update option '-u' or not?
>
> Does my approach for automating use of reviewboard seem reasonable, or is
> there a better strategy that I should consider?
>
> Thank you,
>
> Terry L. Bringazi
>
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://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.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: Unable to import settings_local.py: No module named settings_local

2017-01-05 Thread Christian Hammond
Hi Pradeep,

This looks more like an issue with your Apache configuration. It looks like
the server is using a SSL certificate intended for a different name than
the virtualhost is configured for. It doesn't seem related to the extension
work. You'll need to be sure the virtualhost and certificate are compatible.

Christian

-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

On Wed, Jan 4, 2017 at 11:32 PM, pradeep kumar  wrote:

> Hi Christian,
>
> After restart web server, my extension is showing in adamin/extensions
> page. But, when I enable my extension its failing with 500 error :
>
> [Wed Jan 04 06:12:19.002675 2017] [:error] [pid 14184] Misconfiguration of
> certificate's CN and virtual name. The certificate CN has
> localhost4.localdomain4. We expected vmax-dev-reviewboard as virtual name.
>
> Could you please provide solution for above error?
>
>
> Thanks for your timely help
> Regards
> Pradeep Kumar
>
>
> On Monday, January 2, 2017 at 4:13:44 PM UTC+5:30, pradeep kumar wrote:
>>
>> Hi Christian,
>>
>> Thanks for the immediate response. I was on vacation last week, sorry for
>> the delay response.
>>
>> I have written one extension as a package for customized widget on admin
>> page with the following files and directory structure :
>>
>> cd reviewboard
>> mkdir -p mywidget
>> cd mywidget
>>
>> mywidget
>>   - setup.py
>>   - mywidget (directory)
>> - __init__.py
>> - extension.py
>> - admin_urls.py
>> widgets (directory)
>>  - my-widget.html
>>
>>
>> setup.py :
>> --
>>
>> from setuptools import setup
>>
>> PACKAGE = "mywidget"
>> VERSION = "0.1"
>>
>> setup(
>> name=PACKAGE,
>> version=VERSION,
>> description="Test of customized admin widget",
>> author="pradeep",
>> packages=["mywidget"],
>> entry_points={
>> 'reviewboard.extensions':
>> '%s = mywidget.extension:MyWidget' % PACKAGE,
>> },
>> package_data={
>> 'mywidget': [
>> 'mywidget/widgets/my-widget.html',
>> ],
>> }
>> )
>>
>>
>> extension.py :
>> 
>>
>> from django.utils.translation import ugettext_lazy as _
>> from reviewboard.admin.widgets import Widget
>> from reviewboard.extensions.base import Extension
>> from reviewboard.extensions.hooks import AdminWidgetHook
>>
>>
>> class SampleWidget(Widget):
>> widget_id = 'my_sample_widget'
>> title = _('My Widget')
>> template = 'mywidget/widgets/my-widget.html'
>>
>> class MyWidget(Extension):
>> def initialize(self):
>> AdminWidgetHook(self, SampleWidget)
>>
>>
>> my-widget.html :
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ADAM WIDGET
>> 
>> 
>> 
>> 
>> None Available
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>
>> Reviewboard version : 2.5.7
>>
>>
>> After that I ran 'python setup.py develop', it successfully generated
>> mywidget.egg-info.
>> Then I went to my reviewboard admin page, clicked on 'Extensions' and
>> then 'Scan for installed extensions'. my extension doesn't exist.
>>
>>
>> Could you please help me out here. Please correct me if I missed anything
>> or made wrong. I am new to Django.
>>
>> Note : I didn't find ./contrib/tools/generate_extension.py in my
>> reviewboard package.
>>
>> Please help me to add a customized widget on my admin page.
>>
>>
>> Thanks for your timely help.
>> Regards
>> Pradeep Kumar
>>
>>
>> On Thursday, December 22, 2016 at 5:53:46 AM UTC+5:30, Christian Hammond
>> wrote:
>>>
>>> Hi Pradeep,
>>>
>>> You'll need to follow the guide on writing, packaging, and loading
>>> extensions. This will have to be written as a packaged, loadable extension,
>>> which will be enabled through Review Board. It won't work as a standalone
>>> script, since it won't be running within the context of Review Board.
>>>
>>> Christian
>>>
>>>
>>> On Tue, Dec 20, 2016 at 07:17 pradeep kumar  wrote:
>>>
 Hello There,

 As https://www.reviewboard.org/docs/manual/2.5/extending/extens
 ions/hooks/admin-widget-hook/, I was trying to add a widget to my
 reviewboard admin dashboard.

 Review Board 2.5.7
 Python Version 2.7.5
 django Version (1, 6, 12, 'alpha', 0)
 OS Version :
 Linux centos72_base 3.10.0-327.10.1.el7.x86_64 #1 SMP Tue Feb 16
 17:03:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


 When I try to run above example code, I got the following output :

 >>> import os
 >>> os.environ.setdefault('DJANGO_SETTINGS_MODULE',
 'reviewboard.settings')
 'reviewboard.settings'
 >>> from django.utils.translation import ugettext_lazy as _
 >>> from reviewboard.admin.widgets import Widget
 Unable to import settings_local.py: No module named settings_local

 Please see https://www.reviewboard.org/docs/manua