Skip to content

[Due for payment 2026-03-30] Perfromance: NOOP migrateOnyx scripts which are no longer required #84787

@Julesssss

Description

@Julesssss

Problem

The Onyx migration framework runs two migration scripts on every app startup that read from Onyx storage even when no migration is needed:

  • RenameEmojiSkinTone: Reads PREFERRED_EMOJI_SKIN_TONE to check its type
  • ConvertPolicyChatReportIDsToString: Reads the entire policy collection (waitForCollectionCallback: true) to check if any policy has numeric chatReportIDAdmins or chatReportIDAnnounce

These migrations are no longer needed — the backend now sends correct data for all users, and sufficient time has passed for existing client data to have been migrated. However, the read-then-check pattern still costs ~934ms at P90 on ManualAppStartup, primarily from loading the full policy collection.

Original discussion.

Solution

NOOP these functions to ovoid unnecessary policy iteration.

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionEngineeringImprovementItem broken or needs improvement.WeeklyKSv2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions