vtex-apps / store-graphql

GraphQL schema and resolvers for the VTEX Commerce Stores API
78 stars 45 forks source link

Add: Campaigns object to simulation #657

Closed beatrizmaselli closed 1 year ago

beatrizmaselli commented 1 year ago

What problem is this solving?

Add the campaign context for the simulation.

How to test it?

With the context:

curl --location 'https://bibi--northlatamprojects.vtexcommercestable.com.br/api/io/_v/api/intelligent-search/product_search/trade-policy/1/%2F?simulationBehavior=default&count=10&page=1&hideUnavailableItems=false&query=1661366' \
--header 'Cookie: VtexWorkspace=master%3A-; janus_sid=a02b1cd8-8add-4351-aecc-2875de14f049; vtex_segment=eyJjYW1wYWlnbnMiOiI5YmRiYjYwZC02MDY5LTQ2MzYtOGY3ZS0wZmViODMzMmZjZGUiLCJjaGFubmVsIjoiMSIsInByaWNlVGFibGVzIjpudWxsLCJyZWdpb25JZCI6bnVsbCwidXRtX2NhbXBhaWduIjpudWxsLCJ1dG1fc291cmNlIjpudWxsLCJ1dG1pX2NhbXBhaWduIjpudWxsLCJjdXJyZW5jeUNvZGUiOiJDT1AiLCJjdXJyZW5jeVN5bWJvbCI6IiQiLCJjb3VudHJ5Q29kZSI6IkNPTCIsImN1bHR1cmVJbmZvIjoiZW4tVVMiLCJhZG1pbl9jdWx0dXJlSW5mbyI6ImVuLVVTIiwiY2hhbm5lbFByaXZhY3kiOiJwdWJsaWMifQ; '

Without the context:

curl --location 'https://northlatamprojects.vtexcommercestable.com.br/api/io/_v/api/intelligent-search/product_search/trade-policy/1/%2F?simulationBehavior=default&count=10&page=1&hideUnavailableItems=false&query=1661366' \
--header 'Cookie: VtexWorkspace=master%3A-; janus_sid=a02b1cd8-8add-4351-aecc-2875de14f049; vtex_segment=eyJjYW1wYWlnbnMiOiI5YmRiYjYwZC02MDY5LTQ2MzYtOGY3ZS0wZmViODMzMmZjZGUiLCJjaGFubmVsIjoiMSIsInByaWNlVGFibGVzIjpudWxsLCJyZWdpb25JZCI6bnVsbCwidXRtX2NhbXBhaWduIjpudWxsLCJ1dG1fc291cmNlIjpudWxsLCJ1dG1pX2NhbXBhaWduIjpudWxsLCJjdXJyZW5jeUNvZGUiOiJDT1AiLCJjdXJyZW5jeVN5bWJvbCI6IiQiLCJjb3VudHJ5Q29kZSI6IkNPTCIsImN1bHR1cmVJbmZvIjoiZW4tVVMiLCJhZG1pbl9jdWx0dXJlSW5mbyI6ImVuLVVTIiwiY2hhbm5lbFByaXZhY3kiOiJwdWJsaWMifQ; '
vtex-io-ci-cd[bot] commented 1 year ago

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:

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

vtex-io-ci-cd[bot] commented 1 year ago

Your PR has been merged! App is being published. :rocket: Version 2.168.0 → 2.169.0

After the publishing process has been completed (check #vtex-io-releases) and doing A/B tests with the new version, you can deploy your release by running:

vtex deploy vtex.store-graphql@2.169.0

After that your app will be updated on all accounts.

For more information on the deployment process check the docs. :book: