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

likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new ed5933478 fix(config-ui): some bugs (#4177)
ed5933478 is described below

commit ed5933478bfbe081707ad758b817e6b75e18fed0
Author: 青湛 <[email protected]>
AuthorDate: Tue Jan 10 20:36:49 2023 +0800

    fix(config-ui): some bugs (#4177)
    
    * fix(config-ui): doc link
    
    * fix(config-ui): createdDateAfter format problem
    
    * fix(config-ui): updated the data scope not await
---
 config-ui/src/pages/blueprint/components/advanced-editor/index.tsx  | 6 +++++-
 config-ui/src/pages/blueprint/create/bp-context.tsx                 | 2 +-
 .../src/pages/connection/form/components/github-token/index.tsx     | 2 +-
 config-ui/src/pages/connection/form/index.tsx                       | 2 +-
 config-ui/src/plugins/common/transformation/use-transformation.ts   | 2 +-
 5 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/config-ui/src/pages/blueprint/components/advanced-editor/index.tsx 
b/config-ui/src/pages/blueprint/components/advanced-editor/index.tsx
index 24092157d..5a69e29c4 100644
--- a/config-ui/src/pages/blueprint/components/advanced-editor/index.tsx
+++ b/config-ui/src/pages/blueprint/components/advanced-editor/index.tsx
@@ -61,7 +61,11 @@ export const AdvancedEditor = ({ value, onChange }: Props) 
=> {
       <h3>Task Editor</h3>
       <p>
         <span>Enter JSON Configuration or preload from a template.</span>
-        <a 
href="https://devlake.apache.org/docs/UserManuals/ConfigUI/AdvancedMode/"; 
rel="noreferrer" target="_blank">
+        <a
+          
href="https://devlake.apache.org/docs/UserManuals/ConfigUI/AdvancedMode/#examples";
+          rel="noreferrer"
+          target="_blank"
+        >
           See examples
         </a>
       </p>
diff --git a/config-ui/src/pages/blueprint/create/bp-context.tsx 
b/config-ui/src/pages/blueprint/create/bp-context.tsx
index 08249f5b4..6a8ef205b 100644
--- a/config-ui/src/pages/blueprint/create/bp-context.tsx
+++ b/config-ui/src/pages/blueprint/create/bp-context.tsx
@@ -85,7 +85,7 @@ export const BPContextProvider = ({ from, projectName, 
children }: Props) => {
   const [isManual, setIsManual] = useState(false);
   const [skipOnFail, setSkipOnFail] = useState(true);
   const [createdDateAfter, setCreatedDateAfter] = useState<string | null>(
-    formatTime(dayjs().subtract(6, 'month').startOf('day').toDate()),
+    formatTime(dayjs().subtract(6, 'month').startOf('day').toDate(), 
'YYYY-MM-DD[T]HH:mm:ssZ'),
   );
 
   const history = useHistory();
diff --git 
a/config-ui/src/pages/connection/form/components/github-token/index.tsx 
b/config-ui/src/pages/connection/form/components/github-token/index.tsx
index 6ffe8f8c9..5f3a3ab34 100644
--- a/config-ui/src/pages/connection/form/components/github-token/index.tsx
+++ b/config-ui/src/pages/connection/form/components/github-token/index.tsx
@@ -104,7 +104,7 @@ export const GitHubToken = ({ form, value, onChange }: 
Props) => {
       </p>
       <p>
         <a
-          
href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token";
+          
href="https://devlake.apache.org/docs/UserManuals/ConfigUI/GitHub/#auth-tokens";
           target="_blank"
           rel="noreferrer"
         >
diff --git a/config-ui/src/pages/connection/form/index.tsx 
b/config-ui/src/pages/connection/form/index.tsx
index 9d344ab01..297bfd084 100644
--- a/config-ui/src/pages/connection/form/index.tsx
+++ b/config-ui/src/pages/connection/form/index.tsx
@@ -142,7 +142,7 @@ export const ConnectionFormPage = () => {
           <div>
             <p>
               <a
-                
href="https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html";
+                
href="https://devlake.apache.org/docs/UserManuals/ConfigUI/GitLab/#auth-tokens";
                 target="_blank"
                 rel="noreferrer"
               >
diff --git a/config-ui/src/plugins/common/transformation/use-transformation.ts 
b/config-ui/src/plugins/common/transformation/use-transformation.ts
index 2dfe5dae2..dae87e4a2 100644
--- a/config-ui/src/plugins/common/transformation/use-transformation.ts
+++ b/config-ui/src/plugins/common/transformation/use-transformation.ts
@@ -118,7 +118,7 @@ export const useTransformation = ({
       }));
 
       if (payload.length) {
-        API.updateDataScope(plugin, connectionId, {
+        await API.updateDataScope(plugin, connectionId, {
           data: payload,
         });
       }

Reply via email to