Skip to content

Make PacketViewer table loading state more robust#2560

Merged
jmthomas merged 4 commits intomainfrom
packet-viewer-loading
Nov 25, 2025
Merged

Make PacketViewer table loading state more robust#2560
jmthomas merged 4 commits intomainfrom
packet-viewer-loading

Conversation

@EmilyRagan
Copy link
Copy Markdown
Contributor

I was running into some situations where the table was never showing items because the numeric loading state was not going back to 0. This was due to changeUpdater being called twice while this.rows.length was 0, each of which increasing the loading state, then the first resolution decreasing the loading state value and the second no longer triggering the decrease because this.rows.length was no longer 0. By adding a scoped boolean to control whether to decrease the component state, and a decrease in the immediate return case, we can ensure that the value is always decreased after it has been increased

@EmilyRagan EmilyRagan self-assigned this Nov 22, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.22%. Comparing base (9316dce) to head (fb8ed90).
⚠️ Report is 35 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2560      +/-   ##
==========================================
+ Coverage   79.21%   79.22%   +0.01%     
==========================================
  Files         662      662              
  Lines       51218    51259      +41     
  Branches      736      736              
==========================================
+ Hits        40570    40609      +39     
- Misses      10568    10570       +2     
  Partials       80       80              
Flag Coverage Δ
python 81.29% <ø> (-0.01%) ⬇️
ruby-api 84.59% <ø> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@EmilyRagan EmilyRagan force-pushed the packet-viewer-loading branch from b6ba592 to 39190a8 Compare November 24, 2025 14:54
@EmilyRagan EmilyRagan requested a review from jmthomas November 24, 2025 14:56
Copy link
Copy Markdown
Member

@jmthomas jmthomas left a comment

Choose a reason for hiding this comment

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

@clayandgen
Copy link
Copy Markdown
Contributor

When I directly navigate via http://localhost:2900/tools/packetviewer/INST/HEALTH_STATUS/ it appears to hang and I just get the loading screen

Seems to load ok for me 🤔

Copy link
Copy Markdown
Contributor

@clayandgen clayandgen left a comment

Choose a reason for hiding this comment

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

Loading well for me, the simplified loader approach is definitely going to make this easier!

@jmthomas jmthomas merged commit 54864e6 into main Nov 25, 2025
47 of 50 checks passed
@jmthomas jmthomas deleted the packet-viewer-loading branch November 25, 2025 23:55
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.

3 participants