-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
fix(5313-dataloaders-not-found): use SimpleInventory collection to fe… #5314
fix(5313-dataloaders-not-found): use SimpleInventory collection to fe… #5314
Conversation
…tch inventory docs when the call is made internally, i.e. in the consumer Signed-off-by: Alex Haproff <[email protected]>
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.
Thanks for the quick fix!
@alex-haproff I see the error reported on #5313 when publishing the example product in the Operator UI. Steps to reproduce:
|
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.
See comment.
Signed-off-by: Alex Haproff <[email protected]>
Signed-off-by: Alex Haproff <[email protected]>
hi @willopez thanks for reporting! |
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.
LGTM
Resolves #5313
Impact: major
Type: bugfix
Issue
DataLoaders do not exist when Reaction is running in a topic
consumer
mode or any other "non-web-request-serving" mode. DataLoaders are only supposed to be used in the context of a web request.Solution
Check if
context.dataLoaders
is not empty, otherwise fallback to Mongo collection.Breaking changes
None