Skip to content

Commit

Permalink
fix: misc bugs in restore operation view and activity bar view
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Sep 4, 2024
1 parent 546482f commit 656ac9e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions internal/orchestrator/tasks/taskrestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ func restoreHelper(ctx context.Context, st ScheduledTask, taskRunner TaskRunner,
}
lastSent = time.Now()

zap.S().Infof("restore progress: %v", entry)

restoreOp.LastStatus = entry

sendWg.Add(1)
Expand Down
2 changes: 1 addition & 1 deletion webui/src/components/ActivityBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const ActivityBar = () => {
return (
<span key={idx}>
{displayName} in progress for plan {op.planId} to {op.repoId} for{" "}
{formatDuration(Number(op.unixTimeEndMs - op.unixTimeStartMs))}
{formatDuration(Date.now() - Number(op.unixTimeStartMs))}
</span>
);
})}
Expand Down
5 changes: 1 addition & 4 deletions webui/src/components/OperationRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,7 @@ const RestoreOperationStatus = ({ operation }: { operation: Operation }) => {
<>
Restore {restoreOp.path} to {restoreOp.target}
{!isDone ? (
<Progress
percent={Math.round(progress * 1000) / 1000}
status="active"
/>
<Progress percent={Math.round(progress * 1000) / 10} status="active" />
) : null}
{operation.status == OperationStatus.STATUS_SUCCESS ? (
<>
Expand Down

0 comments on commit 656ac9e

Please sign in to comment.