From 7cdf77ce18bfb2d174be9e486363c5d97a4c8b74 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Tue, 29 Nov 2022 15:56:13 +0100 Subject: [PATCH] [IMP] runbot: hide some buttons Force new batch buttons can be sometimes confusing for user. Creating a group to show this button for advanced user only will help avoiding useless new batch when it's not needed. New batch is only needed: - to create a new slot when a new trigger is added/modified through a custom trigger - take last databases into account for upgrades, mainly when backporting a new field or strange usually forbiden operations - avoiding to need to push again to rebase when a r+ was added on one pr but one of them needs to be rebased or adapted. Thos case are unusuall but the button is used most of the time thinking this is a kind or rebuild or maybe it will rebase and push the branch on the pr. Only user with basic knowledge of when it is needed should have access to these buttons. --- runbot/security/runbot_security.xml | 7 ++++++- runbot/templates/bundle.xml | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/runbot/security/runbot_security.xml b/runbot/security/runbot_security.xml index 7872b85d..1aa25c6e 100644 --- a/runbot/security/runbot_security.xml +++ b/runbot/security/runbot_security.xml @@ -57,11 +57,16 @@ + + Advanced runbot user + + + Runbot administrator - + diff --git a/runbot/templates/bundle.xml b/runbot/templates/bundle.xml index cfe11b65..264c2029 100644 --- a/runbot/templates/bundle.xml +++ b/runbot/templates/bundle.xml @@ -11,13 +11,13 @@