Skip to content

fix #228 removed setTimeout and used ngOnInit - #235

Open
TerranceKhumalo-absa wants to merge 3 commits into
developfrom
fix/228-setTimeout-refactor
Open

fix #228 removed setTimeout and used ngOnInit#235
TerranceKhumalo-absa wants to merge 3 commits into
developfrom
fix/228-setTimeout-refactor

Conversation

@TerranceKhumalo-absa

@TerranceKhumalo-absaTerranceKhumalo-absa commented Feb 15, 2023

Copy link
Copy Markdown
Collaborator

Removed setTimeout to initialize the values on ngOnInit instead.

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed! Quality Gate passed

BugA0 Bugs
VulnerabilityA0 Vulnerabilities
Security HotspotA0 Security Hotspots
Code SmellA0 Code Smells

No Coverage information No Coverage information
0.0%0.0% Duplication


setTimeout(() => {

this.updateState({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@TerranceKhumalo-absa I would recommend investigating why the developer called 2 times this.updateState (and the second time he used setTimeout) for a better understanding of how to refactor this code correctly.

graphLoadingProcessing: ProcessingStoreNs.eventProcessingStart(this.state.graphLoadingProcessing)
})

setTimeout(() => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@korel-sankorel-san left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pls, rework code after removal setTimeout

dependabotBotand others added 3 commits September 18, 2024 17:10
Bumps [send](https://github.com/pillarjs/send) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.
Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](pillarjs/send@0.18.0...0.19.0)
Updates `express` from 4.18.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](expressjs/express@4.18.2...4.21.0)
---
updated-dependencies:
- dependency-name: send
dependency-type: indirect
- dependency-name: express
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
@wajda
wajdaforce-pushed the fix/228-setTimeout-refactor branch from f1faab3 to 4a46843CompareSeptember 18, 2024 17:29
@sonarqubecloud

Copy link
Copy Markdown

Sign up for freeto 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

@TerranceKhumalo-absa@korel-san