Closed Bug 1775187 Opened 2 years ago Closed 2 years ago

refactor fxms schemas to pull out common features (i.e., everything but content)

Categories

(Firefox :: New Tab Page, task)

task

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: barret, Assigned: barret)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

The fxms schemas (e.g, Spotlight, ExtensionDoorhanger, etc.) all share common fields that should be refactored out into the messaging experiment schema.

See Also: → 1776753

The following propertie have been refactored out into the top-level message
schema so that they don't have to be repeated in each template's schema:

  • frequency
  • groups
  • id
  • priority
  • targeting
  • trigger

Each template schema now requires only its template (as a const value or enum)
and its content, as well as any additional top-level properties that are
message specific (e.g., order for WhatsNewMessage).

The trigger property is no longer a required property for any message. The
id, content, template, and targeting properties are required for all
messages. Individual template schemas do not need to mark content and
template as required since they are required by the top-level schema.

Depends on D150704

Blocks: 1779142
Blocks: 1779950
Pushed by brennie@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/568811e2c4f1
Refactor out localizableText and localizedText from FxMS schemas r=nalexander,dmose
https://hg.mozilla.org/integration/autoland/rev/9523cd578625
Refactor out common elements of FxMS schema r=Mardak
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: