Closed abhishek-tripathi-yral closed 2 months ago
graph LR
subgraph "PR 1: Add New Field (Skipped during Upgrade)"
A[Add field: `posts_index_sorted_by_yral_feed_score`] --> B{Marked as `skip_deserializing`}
B --> C(Pre-Upgrade: No action)
C --> D(Post-Upgrade: No migration, default value applied)
end
D --> E((Code Deployed with New Field))
subgraph "PR 2: Activate Deserialization & Migration"
E --> F[Remove `skip_deserializing`]
F --> G(Pre-Upgrade: No action)
G --> H{Post-Upgrade: Migration logic runs}
end
H --> I((Field ready for frontend))
tested post_upgrade locally.
usually, home feed => posts are ranked by home_feed_score usually, hon feed => posts are ranked by hot_or_not_feed_score
Now, yral_feed = posts (home + hot or not) are ranked by hot_or_not_feed_score