digma-ai / digma-ui

MIT License
3 stars 1 forks source link

Assets tab should be disabled if there are no assets under scope #839

Open doppleware opened 2 months ago

doppleware commented 2 months ago

If the navigation bar is set to a specific asset (for example a db query or an endpoint) and the asset does not have any nested assets - disable the assets tab.

For home the assets tab should never be disabled.

shaykeren commented 1 month ago

should consider extending the get asset display info request, to return HasDescendants field as part of the response, to allow this logic @kshmidt what do you think?