Skip to content

Add HTTP response status code in the profiler network tab#5297

Merged
julienw merged 1 commit into
firefox-devtools:mainfrom
theskim:main
Jan 13, 2025
Merged

Add HTTP response status code in the profiler network tab#5297
julienw merged 1 commit into
firefox-devtools:mainfrom
theskim:main

Conversation

@theskim

@theskim theskim commented Jan 8, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@theskim

theskim commented Jan 8, 2025

Copy link
Copy Markdown
Contributor Author

@codecov

codecov Bot commented Jan 8, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.06%. Comparing base (72ce344) to head (940d79b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5297   +/-   ##
=======================================
  Coverage   86.06%   86.06%           
=======================================
  Files         311      311           
  Lines       29653    29655    +2     
  Branches     8180     8181    +1     
=======================================
+ Hits        25522    25524    +2     
  Misses       3550     3550           
  Partials      581      581           

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

);
});

it('renders page information for pages with response status code', () => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I limited the checks to one since we simply just displace responseStatus. Cases where responseStatus is absent are already covered by other test cases.

@julienw julienw 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.

Thanks, this looks good to me.
I'd adjust the label just a little bit, see below!

Comment thread src/components/tooltip/NetworkMarker.js Outdated

if (payload.responseStatus) {
details.push(
<TooltipDetail label="Response Status" key="Network-Response Status">

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.

Suggested change
<TooltipDetail label="Response Status" key="Network-Response Status">
<TooltipDetail label="Response Status Code" key="Network-Response Status">

@theskim theskim requested a review from julienw January 10, 2025 20:40
@julienw julienw merged commit 41646f1 into firefox-devtools:main Jan 13, 2025
@julienw julienw mentioned this pull request Jan 15, 2025
julienw added a commit that referenced this pull request Jan 15, 2025
Updates:

[Nicolas Chevobbe] Adapt Keyboard shortcut dialog in High Contrast Mode. (#5245)
[Nicolas Chevobbe] Fix sidebar-toggle in High Contrast Mode. (#5246)
[Nicolas Chevobbe] Fix timeline selection overlay time / hover line in High Contrast Mode (#5247)
[Zac Spitzer] fix broken link for processed profile format (#5267)
[Greg Tatum] Update the memory allocation docs and add DHAT docs (#5270)
[Markus Stange] Simplify some code related to thread CPU deltas (#5265)
[Greg Tatum] Update dhat convertor to work better with valgrind (#5269)
[Markus Stange] Rename UniqueStringArray to StringTable. (#5283)
[Markus Stange] Use snapshot testing in the symbolicator CLI test. (#5284)
[Markus Stange] Fix two confused upgraders which didn't expect to be run on the serialized format. (#5285)
[Nicolas Chevobbe] Fix timelineSettingsHiddenTracks in High Contrast Mode. (#5250)
[Julien Wajsberg] Fix some test and non-test warnings (#5294)
[Nisarg Jhaveri] Support importing simpleperf trace files from Android Studio (#5212)
[Sean Kim] Add HTTP response status code in the profiler network tab (#5297)
[Markus Stange] Change StringTable API a bit. (#5286)
[Markus Stange] Correctly declare imported simpleperf trace profiles to be of the current version. (#5312)
[Markus Stange] Two small changes (#5313)
[Nazım Can Altınova] Show sample tooltips on sample graph hover (#5298)

Also thanks to our localizers:

en-CA: chutten
es-CL: ravmn
es-CL: ravmn
fr: Théo Chevalier
ia: Melo46
ia: Melo46
sv-SE: Andreas Pettersson
uk: Lobodzets
zh-TW: Olvcpr423
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