Skip to content

Bug 1973876 - Use the geonames SQL collation for weather keywords too#6812

Merged
0c0w3 merged 1 commit intomainfrom
adw/suggest-weather-keywords-collate-bug-1973876
Jun 25, 2025
Merged

Bug 1973876 - Use the geonames SQL collation for weather keywords too#6812
0c0w3 merged 1 commit intomainfrom
adw/suggest-weather-keywords-collate-bug-1973876

Conversation

@0c0w3
Copy link
Contributor

@0c0w3 0c0w3 commented Jun 25, 2025

This creates a new keywords_i18n table that's the same as keywords except the main column uses the collation from the geonames table. Weather keywords are now added to this table instead of the old one.

I think we should use the new table in the future especially if/as we expand to non-English locales, but it's useful for English too since it ignores some punctuation.

Since the collation is now used for other things besides geonames, I renamed it i18n_collation.

Let me know if you have ideas on better names for the table and collation. I used "i18n" because I wanted to capture the idea they're useful for locale-specific user-facing strings. "i18n" seemed more appropriate than "l10n" because these things are structures/facilities that enable l10n and aren't the l10n artifacts themselves. I thought about using "unicode" but that's pretty ambiguous I think.

This also makes some improvements to keywords metrics.

Pull Request checklist

  • Breaking changes: This PR follows our breaking change policy
    • This PR follows the breaking change policy:
      • This PR has no breaking API changes, or
      • There are corresponding PRs for our consumer applications that resolve the breaking changes and have been approved
  • Quality: This PR builds and tests run cleanly
    • Note:
      • For changes that need extra cross-platform testing, consider adding [ci full] to the PR title.
      • If this pull request includes a breaking change, consider cutting a new release after merging.
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry in CHANGELOG.md or an explanation of why it does not need one
    • Any breaking changes to Swift or Kotlin binding APIs are noted explicitly
  • Dependencies: This PR follows our dependency management guidelines
    • Any new dependencies are accompanied by a summary of the due diligence applied in selecting them.

@0c0w3 0c0w3 requested review from bendk and ncloudioj June 25, 2025 02:55
Copy link
Member

@ncloudioj ncloudioj left a comment

Choose a reason for hiding this comment

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

This looks great, thanks!
Merino could take lots of inspirations from here to handle i18n in the future. 👍

@0c0w3 0c0w3 force-pushed the adw/suggest-weather-keywords-collate-bug-1973876 branch 2 times, most recently from 8ee6255 to 8f0b430 Compare June 25, 2025 20:09
This creates a new `keywords_i18n` table that's the same as `keywords` except
the main column uses the collation from the geonames table. Weather keywords are
now added to this table instead of the old one.

I think we should use the new table in the future especially if/as we expand to
non-English locales, but it's useful for English too since it ignores some
punctuation.

Since the collation is now used for other things besides geonames, I renamed it
`i18n_collation`.

Let me know if you have ideas on better names for the table and collation. I
used "i18n" because I wanted to capture the idea they're useful for
locale-specific user-facing strings. "i18n" seemed more appropriate than "l10n"
because these things are structures/facilities that enable l10n and aren't the
l10n artifacts themselves. I thought about using "unicode" but that's pretty
ambiguous I think.

This also makes some improvements to keywords metrics.
@0c0w3 0c0w3 force-pushed the adw/suggest-weather-keywords-collate-bug-1973876 branch from 8f0b430 to fbf31a2 Compare June 25, 2025 20:14
@0c0w3 0c0w3 enabled auto-merge June 25, 2025 20:15
@0c0w3 0c0w3 added this pull request to the merge queue Jun 25, 2025
Merged via the queue into main with commit d1736c5 Jun 25, 2025
15 checks passed
@0c0w3 0c0w3 deleted the adw/suggest-weather-keywords-collate-bug-1973876 branch June 25, 2025 21:15
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.

2 participants