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

Avoid usage of Thread.Sleep : Devices #844

Merged
merged 9 commits into from
Jun 24, 2022

Conversation

audserraCGI
Copy link
Contributor

Description

What's new?

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Tests
  • Other

@audserraCGI audserraCGI force-pushed the 818_avoid_usage_of_thread_sleep_on_device_pages branch from 36569a9 to c7fb1d4 Compare June 22, 2022 15:51
_ = this.mockDialogService.Setup(c => c.Close(It.Is<DialogReference>(x => x == mockDialogReference)));

_ = this.mockSnackbarService.Setup(c => c.Add("One or more validation errors occurred", Severity.Error, null)).Returns((Snackbar)null);
_ = this.mockSnackbarService.Setup(c => c.Add(It.IsAny<string>(), Severity.Error, null)).Returns((Snackbar)null);

Check warning

Code scanning / CodeQL

Useless upcast

There is no need to upcast from [null](1) to [Snackbar](2) - the conversion can be done implicitly.
@audserraCGI audserraCGI force-pushed the 818_avoid_usage_of_thread_sleep_on_device_pages branch from f485a3e to ada1d7c Compare June 23, 2022 13:34
@codecov
Copy link

codecov bot commented Jun 23, 2022

Codecov Report

Merging #844 (d909e31) into main (affd724) will increase coverage by 0.25%.
The diff coverage is 100.00%.

❗ Current head d909e31 differs from pull request most recent head ab7ab95. Consider uploading reports for the commit ab7ab95 to get more accurate results

@@            Coverage Diff             @@
##             main     #844      +/-   ##
==========================================
+ Coverage   82.93%   83.19%   +0.25%     
==========================================
  Files         149      153       +4     
  Lines        5234     5277      +43     
==========================================
+ Hits         4341     4390      +49     
+ Misses        893      887       -6     
Impacted Files Coverage Δ
...ent/Pages/EdgeDevices/ConnectionStringDialog.razor 85.71% <ø> (ø)
...ent/Pages/EdgeDevices/CreateEdgeDeviceDialog.razor 25.00% <ø> (ø)
...geDevices/EdgeDeviceDeleteConfirmationDialog.razor 100.00% <ø> (ø)
...lient/Pages/EdgeDevices/EdgeDeviceDetailPage.razor 91.34% <ø> (ø)
.../Client/Pages/EdgeDevices/EdgeDeviceListPage.razor 67.16% <ø> (ø)
...al/Client/Pages/EdgeDevices/ModuleLogsDialog.razor 100.00% <ø> (ø)
...lient/Pages/Dashboard/DashboardMetricCounter.razor 100.00% <100.00%> (ø)
...rtal/Client/Pages/Dashboard/DashboardMetrics.razor 100.00% <100.00%> (ø)
...Portal/Client/Pages/Devices/DeviceDetailPage.razor 69.04% <100.00%> (ø)
...b.Portal/Client/Services/DashboardLayoutService.cs 100.00% <100.00%> (ø)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e063b87...ab7ab95. Read the comment docs.

@audserraCGI audserraCGI marked this pull request as ready for review June 24, 2022 11:56
@audserraCGI audserraCGI requested a review from a team as a code owner June 24, 2022 11:56
@kbeaugrand kbeaugrand force-pushed the 818_avoid_usage_of_thread_sleep_on_device_pages branch from d909e31 to ab7ab95 Compare June 24, 2022 12:11
@kbeaugrand kbeaugrand merged commit 1683f74 into main Jun 24, 2022
@kbeaugrand kbeaugrand deleted the 818_avoid_usage_of_thread_sleep_on_device_pages branch June 24, 2022 12:11
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