-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure scene id props exist #4786
Conversation
Job #10035: Bundle Size — 59.81MiB (-4.08%).
Warning Bundle contains 66 duplicate packages – View duplicate packages Bundle metrics
Bundle size by type
View job #10035 report View fix/check-scene-id-prop branch activity View project dashboard |
jsExpressionValue(idPropValueToUse, emptyComments), | ||
) | ||
|
||
if (IS_TEST_ENVIRONMENT || isLeft(updatedProps)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put the IS_TEST_ENVIRONMENT
as the first clause in the function, to make it clear it's a separate thing
Problem
We link threads to scenes by adding the value of a scene's
id
prop to the thread metadata. If a scene doesn't have anid
prop, we won't be able to link comments to it. Not all scenes may have anid
prop, so we need a mechanism that adds theid
prop to scenes without it.Fix
Walk the contents tree after each dispatch, and ensure that all scenes have
id
s and their values are all unique. If a scene doesn't have anid
prop, or another scene already uses it, it's overwritten by the scene's uid.