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

Remove unnecessary onOptionSelected call #801

Merged

Conversation

codders
Copy link
Contributor

@codders codders commented Nov 15, 2024

The code for SpellingVariantInput was making an unnecessary extra call to onOptionSelected when onInput was called, to satisfy assertions in the unit test suite that are very involved with the internals of the component eventing logic. This worked okay for codex 1.14.0, but is incompatible with the behaviour changes introduced in Icd4b7ed1e34bf5b2d62f705fdd8c6f4e0cf088d1.

Remove the unnecessary call, and remove the unnecessarily detailed unit tests.

Bug: T379595

The code for `SpellingVariantInput` was making an unnecessary
extra call to `onOptionSelected` when `onInput` was called, to
satisfy assertions in the unit test suite that are very involved
with the internals of the component eventing logic. This worked
okay for codex 1.14.0, but is incompatible with the behaviour
changes introduced in Icd4b7ed1e34bf5b2d62f705fdd8c6f4e0cf088d1.

Remove the unnecessary call, and remove the unnecessarily detailed
unit tests.

Bug: T379595
Copy link
Member

@lucaswerkmeister lucaswerkmeister left a comment

Choose a reason for hiding this comment

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

LGTM; the behavior is apparently sufficiently covered by the integration tests (once we use the right Codex version, anyway).

@lucaswerkmeister lucaswerkmeister merged commit 29647d4 into main Nov 15, 2024
3 checks passed
@lucaswerkmeister lucaswerkmeister deleted the bugfix/remove-unnecessary-event-call-20241115 branch November 15, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants