Skip to content
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

Conversation

lauramargar
Copy link
Contributor

@lauramargar lauramargar commented Sep 4, 2023

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

  • Dependencies. If any, specify:
  • Open issue. If applicable, link: EMP-1897

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that causes existing functionality to not work as expected)
  • Change requires a documentation update

What is the destination branch of this PR?

  • Main
  • Other. Specify:

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:

  • My code follows the style guidelines of this project.
  • I have performed a self-review on my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.

@lauramargar lauramargar requested a review from a team as a code owner September 4, 2023 12:14
@@ -295,8 +295,6 @@ export const platformSearchResponse = {
title: 'Banner title',
url: 'https://assets.empathy.co/',
tagging: {
Copy link
Contributor

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?

Copy link
Contributor Author

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 {
Copy link
Contributor

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

@CachedaCodes CachedaCodes merged commit 4dd4666 into main Sep 7, 2023
4 checks passed
@CachedaCodes CachedaCodes deleted the feature/EMP-1897-remove-invalid-url-messages-in-console-when-searching-in-the-archetype branch September 7, 2023 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants