Skip to content

Commit

Permalink
Merge pull request #16789 from dannon/sentry-report-toolmiss
Browse files Browse the repository at this point in the history
Add ClientSearchMiss Sentry Capture
  • Loading branch information
martenson authored Oct 9, 2023
2 parents 4f92d01 + 81749e0 commit 86db01d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/src/components/Panels/ToolBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,15 @@ export default {
this.queryPending = true;
},
onResults(results, closestTerm = null) {
const Galaxy = getGalaxyInstance();
this.results = results;
if (!this.hasResults) {
Galaxy.Sentry?.captureMessage("ClientSearchMiss", {
extra: {
query: this.query,
},
});
}
this.closestTerm = closestTerm;
this.queryFilter = this.hasResults ? this.query : null;
this.setButtonText();
Expand Down

0 comments on commit 86db01d

Please sign in to comment.