-
Notifications
You must be signed in to change notification settings - Fork 28
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
Manager.createChildContext
should deep-copy the locale
#896
Comments
foundrytom
added a commit
to foundrytom/OpenAssetIO
that referenced
this issue
Apr 18, 2023
`createChildContext` is meant to produce a new context that is associated with the parent. Speicifcally, for when you wish to modify an existing context in paralell. Sharing a locale (as we were only copying the ptr) meant that modifing the locale in one would update the locale in another. This is confusing and undesirable. Now the locale `TraitsData` is deep-copied. Closes OpenAssetIO#896 Signed-off-by: Tom Cowland <tom@foundry.com>
foundrytom
added a commit
to foundrytom/OpenAssetIO
that referenced
this issue
Apr 18, 2023
`createChildContext` is meant to produce a new context that is associated with the parent. Speicifcally, for when you wish to modify an existing context in paralell. Sharing a locale (as we were only copying the ptr) meant that modifing the locale in one would update the locale in another. This is confusing and undesirable. Now the locale `TraitsData` is deep-copied. Closes OpenAssetIO#896 Signed-off-by: Tom Cowland <tom@foundry.com>
foundrytom
added a commit
to foundrytom/OpenAssetIO
that referenced
this issue
Apr 18, 2023
`createChildContext` is meant to produce a new context that is associated with the parent. Speicifcally, for when you wish to modify an existing context in paralell. Sharing a locale (as we were only copying the ptr) meant that modifing the locale in one would update the locale in another. This is confusing and undesirable. Now the locale `TraitsData` is deep-copied. Closes OpenAssetIO#896 Signed-off-by: Tom Cowland <tom@foundry.com>
foundrytom
added a commit
to foundrytom/OpenAssetIO
that referenced
this issue
Apr 18, 2023
`createChildContext` is meant to produce a new context that is associated with the parent. Speicifcally, for when you wish to modify an existing context in paralell. Sharing a locale (as we were only copying the ptr) meant that modifing the locale in one would update the locale in another. This is confusing and undesirable. Now the locale `TraitsData` is deep-copied. Closes OpenAssetIO#896 Signed-off-by: Tom Cowland <tom@foundry.com>
foundrytom
added a commit
to foundrytom/OpenAssetIO
that referenced
this issue
Apr 18, 2023
`createChildContext` is meant to produce a new context that is associated with the parent. Speicifcally, for when you wish to modify an existing context in paralell. Sharing a locale (as we were only copying the ptr) meant that modifing the locale in one would update the locale in another. This is confusing and undesirable. Now the locale `TraitsData` is deep-copied. Closes OpenAssetIO#896 Signed-off-by: Tom Cowland <tom@foundry.com>
foundrytom
added a commit
to foundrytom/OpenAssetIO
that referenced
this issue
Apr 19, 2023
`createChildContext` is meant to produce a new context that is associated with the parent. Speicifcally, for when you wish to modify an existing context in paralell. Sharing a locale (as we were only copying the ptr) meant that modifing the locale in one would update the locale in another. This is confusing and undesirable. Now the locale `TraitsData` is deep-copied. Closes OpenAssetIO#896 Signed-off-by: Tom Cowland <tom@foundry.com>
elliotcmorris
pushed a commit
to foundrytom/OpenAssetIO
that referenced
this issue
Apr 20, 2023
`createChildContext` is meant to produce a new context that is associated with the parent. Speicifcally, for when you wish to modify an existing context in paralell. Sharing a locale (as we were only copying the ptr) meant that modifing the locale in one would update the locale in another. This is confusing and undesirable. Now the locale `TraitsData` is deep-copied. Closes OpenAssetIO#896 Signed-off-by: Tom Cowland <tom@foundry.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What
createChildContext
should copy the locale vs sharing.Why
This method is used to create 'related but detached' contexts, sharing a locale couples them
Acceptance Criteria
Out of scope
The text was updated successfully, but these errors were encountered: