Skip to content

Conversation

@edugfilho
Copy link
Contributor

Fixes DENG-9522

Pull Request checklist

  • The pull request has a descriptive title (and a reference to an issue it
    fixes, if applicable)
  • All tests and linter checks are passing
  • The pull request is free of merge conflicts

@edugfilho edugfilho force-pushed the search-bump-glean branch 2 times, most recently from 68f70f9 to 1b540e4 Compare August 29, 2025 17:45
metric_sample_info.get(channel)["sampled_text"] = sampled_text

# We prefer the release channel text, but if it's
# not available, we use the first available
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was failing because there was no "release". So I decided to pick the first one in case, to fix it.

@edugfilho edugfilho requested review from badboy and chutten and removed request for badboy August 29, 2025 17:58
// the only criteria for legacy data is if it's "active" or not
score += item.active || item.active === undefined ? 1 : 0;
// for glam searches, glean metrics take precedence over legacy metrics
score += glamMode && item.glean ? 1 : 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment: I had to check the table to be certain that && had a higher precedence than the ternary (it does: logical AND is precedence 4, ternary is precedence 2)

@edugfilho edugfilho merged commit 87c4f1a into main Sep 2, 2025
7 checks passed
@edugfilho edugfilho deleted the search-bump-glean branch September 2, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants