You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2024/09/20 02:59:59 UTC

(incubator-devlake) branch feat-dora-config updated (db8a442eb -> dfaf6c192)

This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a change to branch feat-dora-config
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


    from db8a442eb feat: improve the bamboo transformation cicd configuration
     new 0a0190ec7 fix: not reset state in check matched items
     new dfaf6c192 fix: remove default value about jenkins cicd

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 config-ui/src/plugins/components/check-matched-items/index.tsx | 3 +++
 config-ui/src/plugins/register/jenkins/config.tsx              | 5 +----
 config-ui/src/plugins/register/jenkins/transformation.tsx      | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)


(incubator-devlake) 02/02: fix: remove default value about jenkins cicd

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch feat-dora-config
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit dfaf6c1927de56c23f40cebbcf0d9c86f206938a
Author: mintsweet <0x...@gmail.com>
AuthorDate: Fri Sep 20 14:59:48 2024 +1200

    fix: remove default value about jenkins cicd
---
 config-ui/src/plugins/register/jenkins/config.tsx         | 5 +----
 config-ui/src/plugins/register/jenkins/transformation.tsx | 4 ++--
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/config-ui/src/plugins/register/jenkins/config.tsx b/config-ui/src/plugins/register/jenkins/config.tsx
index 9bfc02f4e..431b88099 100644
--- a/config-ui/src/plugins/register/jenkins/config.tsx
+++ b/config-ui/src/plugins/register/jenkins/config.tsx
@@ -56,9 +56,6 @@ export const JenkinsConfig: IPluginConfig = {
   },
   scopeConfig: {
     entities: ['CICD'],
-    transformation: {
-      deploymentPattern: '(deploy|push-image)',
-      productionPattern: 'prod(.*)',
-    },
+    transformation: {},
   },
 };
diff --git a/config-ui/src/plugins/register/jenkins/transformation.tsx b/config-ui/src/plugins/register/jenkins/transformation.tsx
index 5caea5945..61a223d1e 100644
--- a/config-ui/src/plugins/register/jenkins/transformation.tsx
+++ b/config-ui/src/plugins/register/jenkins/transformation.tsx
@@ -102,7 +102,7 @@ const renderCollapseItems = ({
             </span>
             <Input
               style={{ width: 200, margin: '0 8px' }}
-              placeholder="(deploy|push-image)"
+              placeholder="(?i)(deploy|push-image)"
               value={transformation.deploymentPattern ?? ''}
               onChange={(e) =>
                 onChangeTransformation({
@@ -120,7 +120,7 @@ const renderCollapseItems = ({
             <Input
               style={{ width: 120, margin: '0 8px' }}
               disabled={!transformation.deploymentPattern}
-              placeholder="prod(.*)"
+              placeholder="(?i)(prod|release)"
               value={transformation.productionPattern ?? ''}
               onChange={(e) =>
                 onChangeTransformation({


(incubator-devlake) 01/02: fix: not reset state in check matched items

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch feat-dora-config
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 0a0190ec7217993bf0dafc8a534e2c54333d00fd
Author: mintsweet <0x...@gmail.com>
AuthorDate: Fri Sep 20 14:59:27 2024 +1200

    fix: not reset state in check matched items
---
 config-ui/src/plugins/components/check-matched-items/index.tsx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/config-ui/src/plugins/components/check-matched-items/index.tsx b/config-ui/src/plugins/components/check-matched-items/index.tsx
index 420b739fa..ee4a613f5 100644
--- a/config-ui/src/plugins/components/check-matched-items/index.tsx
+++ b/config-ui/src/plugins/components/check-matched-items/index.tsx
@@ -51,6 +51,9 @@ export const CheckMatchedItems = ({ plugin, connectionId, transformation }: Prop
 
   useEffect(() => {
     dispatch({ type: 'RESET' });
+    setInitial(false);
+    setPage(1);
+    setTotal(0);
   }, [transformation.deploymentPattern, transformation.productionPattern]);
 
   const handleLoadItems = async () => {