Hi Matt,

It can probably be done via an extension, though Review Board isn't
explicitly designed for this and we don't have any official mechanism for
this. So it may change in the future.

Is it possible to instead go the other way, have Review Board sync any
changes to the other location on publish? This could be done via WebHooks
or extensions.

If you want to disable editing of fields entirely, you'd probably need to
change 'is_editable' to 'False' on all registered fields, doing something
like:


from reviewboard.reviews.fields import fields_registry

for field_cls in fields_registry:
    field_cls.is_editable = False


Or selectively fetch the fields you want to disable
(fields_registry.get('<field_id>')) and set them there.

Christian

On Wed, Jul 20, 2022 at 12:13 PM Matt Blythe <[email protected]> wrote:

> Hi,
>
> In my organization, I have some tooling built around 'rbt' so that when my
> users create and update review requests, it also stores some of the data
> off in a separate location.  When users change the review request through
> the web frontend, this data gets out of sync.
>
> Is there a way to disable editing fields of the review request through the
> web gui, but still allowing changes to be made via 'rbt post' or the APIs?
> If not, could it be done through an extension?
>
> Thanks,
> MattB
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/reviewboard/a65e9ae6-d825-4f93-bde6-8ab940ca7d30n%40googlegroups.com
> <https://groups.google.com/d/msgid/reviewboard/a65e9ae6-d825-4f93-bde6-8ab940ca7d30n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Christian Hammond
President/CEO of Beanbag <https://www.beanbaginc.com/>
Makers of Review Board <https://www.reviewboard.org/>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAE7VndmzGbRoED4KwQ6M-rWXn7YxCFU96DXpzCT2HAk79v_RzA%40mail.gmail.com.

Reply via email to