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
line property can be undefined if not available. This way we can check if there are any lines to optimize. Assumption is that we can optimize the code if there's at least one line available.
Code component has a view model which ensure line is a string and can be displayed.
🧪 How to test?
Check if "Optimize Code" is shown only when there's at least one line available
✨ Description
Related issue(s):
Fixes #203
📖 Summary of the changes
line
property can be undefined if not available. This way we can check if there are any lines to optimize. Assumption is that we can optimize the code if there's at least one line available.Code
component has a view model which ensure line is a string and can be displayed.🧪 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