Skip to content

[DISCO-4064] Resolve naming conflict and update suggest options#7322

Open
misaniwere wants to merge 3 commits intomainfrom
DISCO-4064
Open

[DISCO-4064] Resolve naming conflict and update suggest options#7322
misaniwere wants to merge 3 commits intomainfrom
DISCO-4064

Conversation

@misaniwere
Copy link
Copy Markdown
Contributor

[DISCO-4064]

  • Renamed SuggestApiErrorMerinoSuggestApiError to avoid a naming conflict with the existing suggest component, which was breaking the Swift docs CI pipeline.
  • For SuggestOptions, providers and client_variants now expect a list of strings as it's easier for the consumers. These values are joined as comma-separated values when sent to Merino.

Pull Request checklist

  • Breaking changes: This PR follows our breaking change policy
    • This PR follows the breaking change policy:
      • This PR has no breaking API changes, or
      • There are corresponding PRs for our consumer applications that resolve the breaking changes and have been approved
  • Quality: This PR builds and tests run cleanly
    • Note:
      • For changes that need extra cross-platform testing, consider adding [ci full] to the PR title.
      • If this pull request includes a breaking change, consider cutting a new release after merging.
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry in CHANGELOG.md or an explanation of why it does not need one
    • Any breaking changes to Swift or Kotlin binding APIs are noted explicitly
  • Dependencies: This PR follows our dependency management guidelines
    • Any new dependencies are accompanied by a summary of the due diligence applied in selecting them.

@misaniwere misaniwere requested a review from a team April 16, 2026 17:51
Comment thread components/merino/src/suggest/mod.rs Outdated
options: SuggestOptions,
endpoint_url: &Url,
) -> Result<viaduct::Response> {
let providers = options.providers.map(|v| v.join(","));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just an edge case concern. Would we ever get an empty vec? This would result an empty string, I think?

Asking because https://merino.services.mozilla.com/api/v1/suggest?q=ama&providers="" doesn't return anything

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

good catch! i'll handle that case

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.

2 participants