-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Strange adservice behavior. Is it intentional? #586
Comments
Yeah, the adservice API is only designed to receive product categories, not IDs. I think the invoker should be passing product categories instead of ids. The complexity of the client-side stack is a little beyond me, but this line is suspect, as is this Ad.provider which seems founded on product IDs. In turn, that provider is used in 3 pages: cart, order, and product. I cant follow the types enough to know how much work it would be to pass categories. Products definitely have categories as a list of strings, but I can't tell how |
@breedx-splk, correct. If you agree that current behavior is a bug, please, check out the linked PR. ☝️ |
…he Ad serice
…he Ad serice
…he Ad service
…600) Co-authored-by: Juliano Costa <[email protected]> Co-authored-by: Pierre Tessier <[email protected]>
…he Ad service (open-telemetry#600) Co-authored-by: Juliano Costa <[email protected]> Co-authored-by: Pierre Tessier <[email protected]>
Bug Report
Version:
v1.1.0
/9a66c3a7e490dc0a30c738b92d931d04ce42f479
/main
(just plaingit clone
)Symptom
It seems that the request for the ad is crafted incorrectly. It results in random ads being served.
After a quick looking at the docs and scenarios it's not clear whether it's intentional or not.
What is the expected behavior?
Appropriate adds are served for every request.
What is the actual behavior?
Random ad is served for every request.
Reproduce
9SIQT8TOJO
is a product id, right?9SIQT8TOJO
is used to queryadservice
:opentelemetry-demo/src/frontend/pages/api/data.ts
Line 12 in 9a66c3a
adservice
:9SIQT8TOJO
is treated as ten separate context words.opentelemetry-demo/src/adservice/src/main/java/hipstershop/AdService.java
Lines 221 to 227 in 9a66c3a
getRandomAds
any time.getRandomAds
at the end):Additional Context
N/A
The text was updated successfully, but these errors were encountered: