grafana / explore-profiles

Explore Profiles is a native Grafana application designed to integrate seamlessly with Pyroscope, the open-source continuous profiling platform, providing a smooth, query-less experience for browsing and analyzing profiling data.
GNU Affero General Public License v3.0
18 stars 1 forks source link

fix(Code): do not show Optimize Code button when no code is available #208

Closed ifrost closed 3 weeks ago

ifrost commented 3 weeks ago

✨ Description

Related issue(s):

Fixes #203

📖 Summary of the changes

🧪 How to test?

Check if "Optimize Code" is shown only when there's at least one line available

https://github.com/user-attachments/assets/19c4386b-e0cd-40a5-bc03-c9fcdadf1405

github-actions[bot] commented 3 weeks ago

Unit test coverage

Lines Statements Branches Functions
Coverage: 10%
10.64% (415/3897) 8.3% (112/1348) 8.09% (100/1236)