Skip to content

feat: support from-url profiles in compare#4875

Merged
julienw merged 4 commits into
firefox-devtools:mainfrom
gthb:feat-compare-profiles-from-url
Jan 19, 2024
Merged

feat: support from-url profiles in compare#4875
julienw merged 4 commits into
firefox-devtools:mainfrom
gthb:feat-compare-profiles-from-url

Conversation

@gthb

@gthb gthb commented Jan 4, 2024

Copy link
Copy Markdown
Contributor

What

Support profiles with dataSource from-url in the comparison view.

Closes #3589

How

Simply:

  1. apply the “Maybe this would work” suggestion from @julienw in
    FR: Allow comparing non-public profiles #3589 (comment)
  2. remove the preceding check for every dataSource being public
  3. run yarn lint-fix.

This seems to work just fine for me when I run this project locally. I tested by pasting in two https://profiler.firefox.com/from-url/https%253A%252F%252F URLs that I had open in other browser tabs, and I get an apparently functioning comparison view.

┆Issue is synchronized with this Jira Task

Support profiles with dataSource `from-url` in the comparison view.

This change is simply applying the suggestion in
firefox-devtools#3589 (comment)
and removing the preceding check for dataSource being `public`, and running
`yarn lint-fix`.

It seems to work just fine for me when I run this project locally. I tested by
pasting in two `https://profiler.firefox.com/from-url/https%253A%252F%252F`
URLs that I had open in other browser tabs, and I get an apparently functioning
comparison view.

Closes firefox-devtools#3589
@codecov

codecov Bot commented Jan 4, 2024

Copy link
Copy Markdown

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (7236ea4) 88.41% compared to head (668227a) 88.39%.

❗ Current head 668227a differs from pull request most recent head 5408a08. Consider uploading reports for the commit 5408a08 to get more accurate results

Files Patch % Lines
src/actions/receive-profile.js 72.22% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4875      +/-   ##
==========================================
- Coverage   88.41%   88.39%   -0.03%     
==========================================
  Files         303      301       -2     
  Lines       27130    26901     -229     
  Branches     7329     7274      -55     
==========================================
- Hits        23988    23779     -209     
+ Misses       2924     2906      -18     
+ Partials      218      216       -2     

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

@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!
Thanks also for the new test.

@julienw julienw enabled auto-merge January 19, 2024 17:30
@julienw julienw merged commit 7afd2d5 into firefox-devtools:main Jan 19, 2024
@gthb gthb deleted the feat-compare-profiles-from-url branch January 20, 2024 01:57
@julienw julienw mentioned this pull request Feb 6, 2024
julienw added a commit that referenced this pull request Feb 6, 2024
[@canova Nazım Can Altınova] Return null instead of throwing an error if it fails to get the resource name in active tab view (#4905)
[@fqueze Florian Quèze] Improve the precision of the getFittedText implementation. (#4893)
[@fqueze Florian Quèze] Show marker count next to the marker name in the marker chart when a marker is hovered. (#4892)
[@mstange Markus Stange] Convert some code to use the non-inverted call node table even while we're showing the inverted call tree (Merge PR #4899)
[@canova Nazım Can Altınova] Bring the max stacking depth limit back for marker timings (#4898)
[@mstange Markus Stange] Various preparations in call tree code for fast inverted tree (Merge PR #4897)
[@mstange Markus Stange] Move call node path/index conversion functions into CallNodeInfo (Merge PR #4896)
[@mstange Markus Stange] Make mergeFunction fast (Merge PR #4895)
[@gthb Gunnlaugur Thor Briem] feat: support from-url profiles in compare (#4875)

And all the locale contributors:
de: Michael Köhler
el: Jim Spentzos
en-GB: Ian Neal
es-CL: ravmn
fr: Théo Chevalier
fy-NL: Fjoerfoks
ia: Melo46
it: Francesco Lodolo [:flod]
nl: Fjoerfoks, Mark Heijl
pt-BR: Marcelo Ghelman
ru: Valery Ledovskoy
sv-SE: Andreas Pettersson
uk: Artem Polivanchuk
zh-CN: 你我皆凡人, Olvcpr423, Pontoon
zh-TW: Pin-guang Chen
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.

FR: Allow comparing non-public profiles

2 participants