Skip to content

Conversation

@salesfelipe
Copy link
Contributor

@salesfelipe salesfelipe commented Oct 2, 2025

What problem is this solving?

Start routing 1% of the traffic that comes from our PDPs to evaluate wether we are ready to migrate some production traffic to our new endpoint.

How should this be manually tested?

Workspace

Example of log: https://developer.logs.vtex.com/_dashboards/app/data-explorer/discover#?_a=(discover:(columns:!(_source),isDirty:!f,sort:!()),metadata:(indexPattern:'99001f30-6c57-11ed-9a73-510481887478',view:discover))&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-1h,to:now))&_q=(filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'99001f30-6c57-11ed-9a73-510481887478',key:Attributes.data.message,negate:!f,params:(query:'Product%20Details:%20Results%20differ'),type:phrase),query:(match_phrase:(Attributes.data.message:'Product%20Details:%20Results%20differ')))),query:(language:kuery,query:'Attributes.app:%22vtex.search-resolver%22%20AND%20Attributes.data.message:%22*:%20Results*%22'))

GraphiQL interface:

https://felipe--intelbras.myvtex.com/_v/private/[email protected]/graphiql/v1?operationName=Product&variables=%7B%0A%09%22identifier%22%3A%20%7B%20%0A%09%09%22field%22%3A%20%22id%22%2C%20%22value%22%3A%20%229970360%22%0A%09%7D%0A%7D

`fragment ProductFragment on Product {
advertisement {
adId
adResponseId
adRequestId
}
cacheId
productId
description
productName
productReference
linkText
brand
brandId
link
categories
categoryId
releaseDate
priceRange {
sellingPrice {
highPrice
lowPrice
}
listPrice {
highPrice
lowPrice
}
}
specificationGroups {
name
originalName
specifications {
name
originalName
values
}
}
skuSpecifications {
field {
name
originalName
}
values {
name
originalName
}
}
productClusters {
id
name
}
clusterHighlights {
id
name
}
properties {
name
values
}
}

fragment ItemFragment on SKU {
itemId
name
nameComplete
complementName
ean
variations {
name
values
}
referenceId {
Key
Value
}
measurementUnit
unitMultiplier
images {
cacheId
imageId
imageLabel
imageTag
imageUrl
imageText
}
}

fragment SellerFragment on Seller {
sellerId
sellerName
sellerDefault
}

fragment CommertialOfferFragment on Offer {
discountHighlights {
name
}
teasers {
name
conditions {
minimumQuantity
parameters {
name
value
}
}
effects {
parameters {
name
value
}
}
}
Price
ListPrice
Tax
taxPercentage
spotPrice
PriceWithoutDiscount
RewardValue
PriceValidUntil
AvailableQuantity
}

fragment InstallmentFragment on Installment {
Value
InterestRate
TotalValuePlusInterestRate
NumberOfInstallments
Name
PaymentSystemName
}

query Product($slug: String, $identifier: ProductUniqueIdentifier, $skipCategoryTree: Boolean = false) {
product(slug: $slug, identifier: $identifier) @context(provider: "vtex.search-graphql") {
...ProductFragment
titleTag
metaTagDescription
categoryId
categoryTree @Skip(if: $skipCategoryTree) {
id
name
href
}
items {
...ItemFragment
videos {
videoUrl
}
sellers {
...SellerFragment
addToCartLink
sellerDefault
commertialOffer {
...CommertialOfferFragment
CacheVersionUsedToCallCheckout
Installments {
...InstallmentFragment
}
}
}
kitItems {
itemId
amount
product {
productName
productId
description
linkText
categoryTree {
id
name
href
}
categoryId
brand
properties {
name
values
}
}
sku {
itemId
name
referenceId {
Key
Value
}
images {
imageId
imageLabel
imageTag
imageUrl
imageText
}
sellers {
...SellerFragment
addToCartLink
sellerDefault
commertialOffer {
...CommertialOfferFragment
Installments(criteria: MAX) {
...InstallmentFragment
}
}
}
}
}
attachments {
id
name
required
}
estimatedDateArrival
}
itemMetadata {
items {
id
name
imageUrl
seller
assemblyOptions {
id
name
required
inputValues {
label
maxLength
type
domain
defaultValue
}
composition {
minQuantity
maxQuantity
items {
id
minQuantity
maxQuantity
priceTable
seller
initialQuantity
}
}
}
}
priceTable {
type
values {
id
assemblyId
price
}
}
}
}
}
`

Input:

{ "identifier": { "field": "id", "value": "9970360" } }

Checklist/Reminders

  • Updated README.md.
  • Updated CHANGELOG.md.
  • Linked this PR to a Clubhouse story (if applicable).
  • Updated/created tests (important for bug fixes).
  • Deleted the workspace after merging this PR (if applicable).

Screenshots or example usage

Type of changes

✔️ Type of Change
_ Bug fix
_ New feature
_ Breaking change
_ Technical improvements

Notes

@salesfelipe salesfelipe self-assigned this Oct 2, 2025
@salesfelipe salesfelipe requested a review from a team as a code owner October 2, 2025 18:05
@salesfelipe salesfelipe added the enhancement New feature or request label Oct 2, 2025
@vtex-io-ci-cd
Copy link

vtex-io-ci-cd bot commented Oct 2, 2025

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

@vtex-io-docs-bot
Copy link

vtex-io-docs-bot bot commented Oct 2, 2025

Beep boop 🤖

I noticed you didn't make any changes at the docs/ folder

  • There's nothing new to document 🤔
  • I'll do it later 😞

In order to keep track, I'll create an issue if you decide now is not a good time

  • I just updated 🎉🎉

RodrigoTadeuF
RodrigoTadeuF previously approved these changes Oct 2, 2025
Copy link
Contributor

@RodrigoTadeuF RodrigoTadeuF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@salesfelipe salesfelipe changed the title Add shadow traffic from PDP Using a feature flag to route the PDP traffic to some specific accounts to our endpoint on EKS. Oct 13, 2025
RodrigoTadeuF
RodrigoTadeuF previously approved these changes Oct 13, 2025
@salesfelipe salesfelipe merged commit 1f5d2d4 into main Oct 13, 2025
4 checks passed
@salesfelipe salesfelipe deleted the feature/tis-362 branch October 13, 2025 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants