From 64dac20010335302366a4400542ea0a8b07aa148 Mon Sep 17 00:00:00 2001 From: rolaca11 Date: Thu, 21 Oct 2021 23:38:34 +0200 Subject: [PATCH] feat: display value selector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * #81 add a displayExpression property, that allows a different display value to the one included in env variables * #81 fix test configuration * #81 enhancements based on review comments * #81 revert select option values to be the actual value * fix: parameter rebuild behaviour * refactor display value logic * bump version * remove no longer working tooltip Co-authored-by: László Stahorszki Co-authored-by: h1dden-da3m0n <33120068+h1dden-da3m0n@users.noreply.github.com> --- .idea/codeStyles/Project.xml | 2 +- pom.xml | 2 +- .../RestListParameterDefinition.java | 55 +++++++++++--- .../restlistparam/RestListParameterValue.java | 18 +++-- .../restlistparam/logic/RestValueService.java | 65 ++++++++-------- .../restlistparam/logic/ValueResolver.java | 75 ++++++++++++++----- .../restlistparam/model/ValueItem.java | 57 ++++++++++++++ .../plugins/restlistparam/Messages.properties | 1 + .../RestListParameterDefinition/config.jelly | 6 +- .../config.properties | 1 + .../help-displayExpression.html | 13 ++++ .../RestListParameterDefinition/index.jelly | 6 +- .../RestListParameterValue/value.jelly | 2 +- .../restlistparam/RestValueServiceTest.java | 31 ++++---- .../plugins/restlistparam/TestConst.java | 19 ++++- .../restlistparam/ValueResolverTest.java | 59 ++++++++++----- 16 files changed, 303 insertions(+), 109 deletions(-) create mode 100644 src/main/java/io/jenkins/plugins/restlistparam/model/ValueItem.java create mode 100644 src/main/resources/io/jenkins/plugins/restlistparam/RestListParameterDefinition/help-displayExpression.html diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index fc4a467..75afe59 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -31,7 +31,7 @@