David, 
Thank you for your response. The JIRA access information is going to come 
to us as a file -- it is not something that a user is going to type in. At 
most, the location of the file is something the user can input into a 
settings form. Creating a form to type in just that info seems to be a lot, 
especially given my limited abilities and bandwidth. So finding the site 
directory from inside the extension remains the most feasible option we 
have. 

The Extensions feature that you have, that enables a user to customize RB 
for their team's needs is very impressive and powerful. Thank you!

Kartik
On Tuesday, September 9, 2025 at 11:45:07 AM UTC-4 David Trowbridge wrote:

> Kartik,
>
> Instead of storing your configuration in a file, I'd suggest providing a 
> settings form. Any data saved by the form will get serialized to JSON and 
> stored in the database, and then they'll be available in decoded form in 
> `extension.settings`
>
> See 
> https://www.reviewboard.org/docs/manual/latest/extending/extensions/configuration/#extension-configuration
>  
> for details on this.
>
> Apologies for the current state of the extensions documentation--we're 
> working on improving it.
>
> David
>
> On Sun, Sep 7, 2025 at 12:48 PM Kartik <[email protected]> wrote:
>
>> Hello,
>> I am trying my hand at writing an extension that uses signal hooks 
>> (e.g. on_review_published) to update the jira ticket with the progress of 
>> the code review. I would like to read the jira server access info from a 
>> settings file, and the site directory (default: /var/www/reviewboard) is a 
>> good place for that file. Rather than hard-coding the path, I'd like to 
>> find what is the site directory folder, and look in there. 
>> My question is: How can I find which is the site directory folder from 
>> inside my extension? 
>> Thanks!
>> Kartik
>>
>> -- 
>> 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 
>> "Review Board Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion visit 
>> https://groups.google.com/d/msgid/reviewboard/4c2e56bb-35c9-48e3-b9f4-81f5e8008251n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/reviewboard/4c2e56bb-35c9-48e3-b9f4-81f5e8008251n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/reviewboard/4cccc928-69db-4abf-9297-93e2f66c5d55n%40googlegroups.com.

Reply via email to