-
Notifications
You must be signed in to change notification settings - Fork 11.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AzureMonitor: Fix Log Analytics portal links #65482
Conversation
- Build portal URL in backend - Correctly set multiple resource value - Move AddConfigLinks util function - Add necessary types - Remove unused functions
You have successfully added a new CodeQL configuration |
Backend code coverage report for PR #65482
|
Frontend code coverage report for PR #65482
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it anytime we can move code out of the frontend, nice find! 🏆
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-65482-to-v9.4.x origin/v9.4.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x e27cb67776de4872ac00fa9fcb441a9d611b0c22
# Push it to GitHub
git push --set-upstream origin backport-65482-to-v9.4.x
git switch main
# Remove the local backport branch
git branch -D backport-65482-to-v9.4.x Then, create a pull request where the |
* Fix and update Log Analytics portal links - Build portal URL in backend - Correctly set multiple resource value - Move AddConfigLinks util function - Add necessary types - Remove unused functions * Fix lint issue * Remove unused cache variable (cherry picked from commit e27cb67) # Conflicts: # .betterer.results
AzureMonitor: Fix Log Analytics portal links (#65482) * Fix and update Log Analytics portal links - Build portal URL in backend - Correctly set multiple resource value - Move AddConfigLinks util function - Add necessary types - Remove unused functions * Fix lint issue * Remove unused cache variable (cherry picked from commit e27cb67) # Conflicts: # .betterer.results
I noticed that the Log Analytics deep links no longer worked since the multiple resource picker feature was enabled. This PR fixes that issue by appropriately setting the resources field.
Additionally, I've moved the logic of adding the links to be in the backend to align with the other pseudo-datasources. This has allowed for a fair bit of code to be removed from the frontend, simplifying the Log Analytics datasource. This will also simplify some of the Traces work.
Further work will need to be done to appropriately test the backend response building as this doesn't exist yet. See #65481