Adding New Field to Review Board (on Windows)

55 views
Skip to first unread message

Christopher Nostrand

unread,
Oct 23, 2020, 3:56:45 PM10/23/20
to Review Board Community

Hello,

I am trying out Review Board (on Windows) for the first time and I am running into issues with adding a custom field extension.

I am using the PowerPack build of Review Board v3.0.18.

I've read the documentation to add a new custom field and used the examples provided to make a simple JavaScript extension (just to see the view layer changes so I know I'm on the right track).  However, every time I install the python extension (as a wheel), it shows up on Review Board, but fails when I enable the extension.

The error message I get in logs just says "unable to render JS bundle..."

Not sure what I'm doing wrong.  I am also not sure if extending Review Board is possible on Windows (or if there's a limitation of some kind).

Please advise.  Thanks,
Christopher Nostrand

David Trowbridge

unread,
Oct 23, 2020, 3:59:39 PM10/23/20
to reviewboard
Christopher,

Off the top of my head I can't think of any reason why extension bundles would fail on Windows, but there are a variety of issues that can occur on Windows due to its sketchy Python support, which is why we defer to bitnami for all of that.

Would it be possible to share what code you've created and we can see if anything is obviously wrong?

David

--
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 reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/ef756cc3-fec2-4d18-9e29-c8f1a79a5154n%40googlegroups.com.
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Christopher Nostrand

unread,
Nov 6, 2020, 9:23:10 AM11/6/20
to Review Board Community
Hello David,

Sorry for not responding earlier.  The conversation wasn't appearing for me after I posted it initially.

Yes, I can provide what I have.  However, I'm having trouble sending a zipped file of extension code.  Is there a way another way to send it to you?

Thank you,
Christopher Nostrand

David Trowbridge

unread,
Nov 6, 2020, 2:33:42 PM11/6/20
to reviewboard
Given that there are probably only a couple files that are relevant, you could just attach them non-zipped. Other ways of sharing them could be github or a pastebin.

David

--
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 reviewboard...@googlegroups.com.
Message has been deleted

Christopher Nostrand

unread,
Nov 6, 2020, 3:20:18 PM11/6/20
to Review Board Community
File structure:

sample_extension
        js
                extension.js
        __init__.py
        extension.py
setup.py

I had to change the extension.js file extension to ".txt" so google would send it.

Thanks,
Christopher Nostrand

extension.py
setup.py
extension.js.txt

Christopher Nostrand

unread,
Apr 1, 2021, 11:10:24 AM4/1/21
to Review Board Community
Hello,

I haven't heard from anyone in a while.  Checking back to get any feedback on why it's not working.  Any help would be appreciated.

Perhaps if someone could provide a basic working extension for adding new fields.  That would be great!

Thanks,
Christopher Nostrand

Christian Hammond

unread,
Apr 7, 2021, 6:12:13 PM4/7/21
to revie...@googlegroups.com
Hi Christopher,

I don't see anything inherently wrong. When developing this extension, are you testing against the Bitnami server, or do you have a development environment installed?

How are you bundling the package? Is it a .whl file, and if so, can you show me the contents of that (it's really just a zip: on Linux, unzip -l mypackage.whl)

Bundles should be compiled at package build time. If that's not happening, Review Board's going to fail (and it might be failing by thinking it needs to build it, which won't work on a typical install, as it's not set up as a development environment).

Christian


--
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 reviewboard...@googlegroups.com.


--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board
Reply all
Reply to author
Forward
0 new messages