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/03/29 05:18:45 UTC

(incubator-devlake) branch fix-onboard-log-progress created (now afe0529e4)

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

mintsweet pushed a change to branch fix-onboard-log-progress
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


      at afe0529e4 fix: progress revert in onboard subtask progress

This branch includes the following new commits:

     new afe0529e4 fix: progress revert in onboard subtask progress

The 1 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.



(incubator-devlake) 01/01: fix: progress revert in onboard subtask progress

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

mintsweet pushed a commit to branch fix-onboard-log-progress
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit afe0529e4dc3b5ecf5167a77758d18805d5c1d65
Author: mintsweet <0x...@gmail.com>
AuthorDate: Fri Mar 29 18:18:34 2024 +1300

    fix: progress revert in onboard subtask progress
---
 config-ui/src/routes/onboard/step-4.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config-ui/src/routes/onboard/step-4.tsx b/config-ui/src/routes/onboard/step-4.tsx
index d7c88fc3b..1541f8256 100644
--- a/config-ui/src/routes/onboard/step-4.tsx
+++ b/config-ui/src/routes/onboard/step-4.tsx
@@ -137,7 +137,7 @@ export const Step4 = () => {
       plugin: collectorTask.plugin,
       name: `Collect non-Git entitles in ${collectorTask.options?.fullName ?? 'Unknown'}`,
       percent: collectorSubtasks.length
-        ? Math.floor(((collectorSubtasks.length - collectorSubtasksFinished.length) / collectorSubtasks.length) * 100)
+        ? Math.floor((collectorSubtasksFinished.length / collectorSubtasks.length) * 100)
         : 0,
       tasks: collectorSubtasks.map((it) => ({
         step: it.sequence,
@@ -154,7 +154,7 @@ export const Step4 = () => {
       plugin: extractorTask.plugin,
       name: `Collect Git entitles in ${extractorTask.options?.fullName ?? 'Unknown'}`,
       percent: extractorSubtasks.length
-        ? Math.floor(((extractorSubtasks.length - extractorSubtasksFinished.length) / extractorSubtasks.length) * 100)
+        ? Math.floor((extractorSubtasksFinished.length / extractorSubtasks.length) * 100)
         : 0,
       tasks: (extractorTask.subtaskDetails ?? [])
         .filter((it) => it.isCollector)