-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: update tagging from banners and promoteds #1274
feat: update tagging from banners and promoteds #1274
Conversation
@@ -295,8 +295,6 @@ export const platformSearchResponse = { | |||
title: 'Banner title', | |||
url: 'https://assets.empathy.co/', | |||
tagging: { |
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.
Shouldn't you add the same tagging object to the promoted response?
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.
Promoted didn't have any tagging object before (with the tagging&query object), so I understood that maybe it must be like this for some reason. But yes, I think that promoted response should contain the same tagging as banner response.
@@ -409,7 +392,7 @@ Object { | |||
"image": "https://assets.empathy.co/images-demo/31335.jpg", | |||
"modelName": "Promoted", | |||
"tagging": Object { | |||
"query": Object { | |||
"click": Object { |
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.
I would say that the tagging&click object of the promoted should be equal to the banner one
Pull request template
The reason why we are receiving
Invalid URL
messages in the console is that the back is not sending the tagging in banners and promoteds. Both of these elements expect query tagging, but this tagging should be used once in the response, not in a single result of the response.So our proposal is to add, as optional, the click tagging in both elements (banner and promoted) and remove query tagging.
Motivation and context
Type of change
What is the destination branch of this PR?
Main
How has this been tested?
Search for a query with banner or promoted. You should obtain one
Invalid URL
message for each element.(This messages should disappear when the back sends tagging fields)
Checklist: