import-rollouts.js |
This is a script to import Nimbus experiments from a given collection into
browser/components/asrouter/tests/NimbusRolloutMessageProvider.sys.mjs. By
default, it only imports messaging rollouts. This is done so that the content
of off-train rollouts can be easily searched. That way, when we are cleaning
up old assets (such as Fluent strings), we don't accidentally delete strings
that live rollouts are using because it was too difficult to find whether
they were in use.
This works by fetching the message records from the Nimbus collection and
then writing them to the file. The messages are converted from JSON to JS.
The file is structured like this:
export const NimbusRolloutMessageProvider = {
getMessages() {
return [
{ ...message1 },
{ ...message2 },
];
},
};
|
12241 |