Skip to content

Commit

Permalink
Add ClientSearchMiss basic sentry message -- might be better as a cus…
Browse files Browse the repository at this point in the history
…tom event for aggregation?
  • Loading branch information
dannon committed Oct 4, 2023
1 parent 605d8ca commit 2565db1
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 2565db1

Please sign in to comment.