Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build duration timer #842

Closed
wants to merge 2 commits into from
Closed

fix: build duration timer #842

wants to merge 2 commits into from

Conversation

ShashwatDadhich
Copy link
Contributor

Description

When we switch the triggered build in cases when the build is in progress then the dynamic timer below InProgress does'nt get updated. It shows the same time in every progressing build until we refresh the page.

Fixes # (841)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

It has been tested loaclly as well as by deploying my code to the vm.

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@ShashwatDadhich ShashwatDadhich changed the title fix : build duration fix fix : build duration timer Mar 20, 2023
@ShashwatDadhich ShashwatDadhich changed the title fix : build duration timer fix: build duration timer Mar 20, 2023
@sonarcloud
Copy link

sonarcloud bot commented Mar 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -205,6 +205,19 @@ export const Details = ({
[pipelineId, buildId, appId],
!!buildId && !terminalStatus.has(triggerDetails?.status?.toLowerCase()),
)
const [durationStr, setDurationStr] = useState<string>('')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a common function & pass dependy array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants