You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was doing an asynchronous import on "account.asset" and realized that my assets were created but not visible.
After some investigation, I found that that it was caused by a field 'asset_type' that is set using the context key 'default_asset_type'
Proposition
I think that the context used during import should be propagate to the jobs created.
Or, at least, every key starting by 'default_...' .
It could be easily done by modifying the function on base_import.import:
This PR has some context: #432 (and links to much more context :)
Thanks! It gives more context but note that it refers to the "general" case and here, I would like to debate on the specific case of asynchronous import.
Context
I was doing an asynchronous import on "account.asset" and realized that my assets were created but not visible.
After some investigation, I found that that it was caused by a field 'asset_type' that is set using the context key 'default_asset_type'
Proposition
I think that the context used during import should be propagate to the jobs created.
Or, at least, every key starting by 'default_...' .
It could be easily done by modifying the function on
base_import.import
:Question
Since I know that it could generate a debate, I opened this issue before creating any PR.
Should we propagate the context? All of it? A sub part of it?
The text was updated successfully, but these errors were encountered: