Files
tubestation/browser/components
Drew Willcoxon 5903331bc7 Bug 1878444 - Update quick suggest config to account for Rust. r=daisuke
There are two types of config in Rust Suggest: global and per-provider. Right
now global contains `show_less_frequently_cap`, and the only provider config is
for weather, which contains `min_keyword_length`. This patch uses both of them.

It makes sense to me to fetch config as part of the ingest process, so that's
what I've done. I'm not sure when else would be a good time. It's async so it's
not too convenient to do it on demand.

In RS records and attachement JSON, we use snake_case, but Rust converts it to
camelCase (actually UniFFI does, I think). That means the JS backend will use
snake_case for all config, but the Rust backend will use camelCase. I wrote a
helper for converting snake to camel so we can always just use camel.

Depends on D200755

Differential Revision: https://phabricator.services.mozilla.com/D201023
2024-02-13 06:16:19 +00:00
..