Allow searching by Content-Type in the network marker view#5351
Conversation
canova
left a comment
There was a problem hiding this comment.
Thanks for the patch, there were some zero width spaces for some reason in the changes and that made all the CI fail. Also I applied the formatting changes.
Unfortunately tests are still failing. Apparently this change made it appear the content type twice in the tooltip. Here are some pics:
Before:

Notice the new "Content type" at the top in addition to "MIME type".
So unfortunately this PR needs some more changes to hide it in the tooltip and make sure that only one of them is visible.
This is the place we append the network maker details to the tooltip:
profiler/src/components/tooltip/Marker.js
Lines 304 to 308 in b5ea860
And this is the place we add the
data fields that are inside the schema:profiler/src/components/tooltip/Marker.js
Lines 252 to 269 in b5ea860
So we would need to either clear the details for the network markers in here, or we need to have a field in the schema to indicate that a field is hidden. Markus recently filed a bug about this already: #5299
@padenot So probably this is more work than you initially intended. Would you want to work on it or would you want to let us handle the rest?
|
We can add |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5351 +/- ##
=======================================
Coverage 85.84% 85.84%
=======================================
Files 312 312
Lines 29829 29829
Branches 8214 8214
=======================================
Hits 25607 25607
Misses 3627 3627
Partials 595 595 ☔ View full report in Codecov by Sentry. |
julienw
left a comment
There was a problem hiding this comment.
looks good to me!
do you think you could add a quick test to src/test/components/NetworkChart.test.js?
|
Thanks for the review!
Hm, I don't necessarily think that this needs extra testing. This field is essentially the combination of two things: |
## Updates: [Nicolas Chevobbe] Make timeline ruler notches visible in High Contrast Mode (#5346) [Nazım Can Altınova] Add the ability to mark marker fields as hidden (#5354) [Maxx Crawford] Update guide-startup-shutdown.md (#5357) [Nazım Can Altınova] Enable prettier on the docs-user markdown files (#5358) [Paul Adenot] Allow searching by Content-Type in the network marker view (#5351) [Florian Quèze] Hide the pid in global tracks if it is 0. (#5361) [Markus Stange] Make inverting the call tree fast, by computing inverted call nodes lazily (#4900) [Markus Stange] Use 64-bit floats for call tree timings. (#5371) [Markus Stange] Extend the workaround in the v53 upgrader to generate missing subcategory columns. (#5369) ## Also thanks to our localizers: de: Michael Köhler el: Jim Spentzos en-GB: Paul es-CL: ravmn fr: Théo Chevalier fur: Fabio Tomat fy-NL: Fjoerfoks ia: Melo46 it: Francesco Lodolo nl: Mark Heijl pt-BR: Marcelo Ghelman ru: Valery Ledovskoy sv-SE: Luna Jernberg, Andreas Pettersson tr: Grk uk: Іhor Hordiichuk zh-CN: Olvcpr423 zh-TW: Pin-guang Chen

Production / Deploy preview