Skip to content

Conversation

@stanlp1
Copy link
Contributor

@stanlp1 stanlp1 commented Oct 11, 2023

No description provided.

@stanlp1 stanlp1 requested a review from a team October 11, 2023 22:43
@stanlp1 stanlp1 added the bug Something isn't working label Oct 12, 2023
@stanlp1 stanlp1 removed the bug Something isn't working label Oct 12, 2023
displaySearchTermHighlights?: boolean;
}

export function getSearchSuggestionFeatures(request: Partial<AutocompleteRequestType>) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this need to be part of the hooks logic and we only expose the features as a state returned form the hooks instead of exposing the utility function for consumers of the library to use it to get the features. And we do call getSearchSuggestionFeatures internally instead and expose smth like this in the hook response

featureToggles: {
    featureDisplaySearchSuggestionImages,
    featureDisplaySearchSuggestionResultCounts,
  }

@esezen what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this makes sense. @stanlp1 anything against this approach?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, Islam mentioned this to me, I suggested tagging you as the decision maker 😂

Copy link
Contributor

@mocca102 mocca102 left a comment

Choose a reason for hiding this comment

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

Thanks for making the changes! This is looking pretty good

Just left small comments and lets get a second eye

@mocca102 mocca102 requested a review from a team October 12, 2023 18:49
@esezen esezen requested review from esezen and mocca102 October 13, 2023 08:37
Copy link
Contributor

@mocca102 mocca102 left a comment

Choose a reason for hiding this comment

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

Thanks for making the changes @stanlp1 🚀

Copy link
Contributor

@esezen esezen left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@esezen esezen left a comment

Choose a reason for hiding this comment

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

@stanlp1 I thought tests are failing on main at first but they seem to be passing there. Would you be able to check why they are failing here?

@stanlp1
Copy link
Contributor Author

stanlp1 commented Nov 1, 2023

@stanlp1 I thought tests are failing on main at first but they seem to be passing there. Would you be able to check why they are failing here?

Looks like the changes I made to resolve the failing tests 3 weeks ago don't work anymore. Reverted 👍

@stanlp1 stanlp1 requested a review from esezen November 1, 2023 16:09
@esezen esezen merged commit e702506 into main Nov 2, 2023
@esezen esezen deleted the csl-2874-os-ui-autocomplete-enable-ui-ab-tests-in-autocomplete-os-ui branch November 2, 2023 18:40
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.

4 participants