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

[Android] Fix behaviour for Filtered ChoiceSet #6525

Merged
merged 21 commits into from
Oct 8, 2021

Conversation

almedina-ms
Copy link
Contributor

@almedina-ms almedina-ms commented Oct 6, 2021

Related Issue

Fixes #6483
Fixes #6485

Description

Adds a filter to overrride how does the AutocompleteTextView object used finds matches in the list of options.

The filter checks against lower case versions of the string array to find if the provided string is contained in each string.

Due to the high volume of the elements and the processing time required for comparing each string, the filter has to synchronize the filtered list, otherwise this provokes an application crash.

Finally, tests were added to verify the correct functioning by checking against preffixes, suffixes, substring, case ignoring and empty strings

Sample Card

  • Input.ChoiceSet.Filtered.json

How Verified

Added UI tests to verify the correct behaviour

Microsoft Reviewers: Open in CodeFlow

Copy link
Member

@jwoo-msft jwoo-msft left a comment

Choose a reason for hiding this comment

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

:shipit:

@almedina-ms
Copy link
Contributor Author

/azp run android-ci.yml

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@almedina-ms
Copy link
Contributor Author

/azp run android-ci.yml

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@almedina-ms
Copy link
Contributor Author

/azp run AdaptiveCards-.NET-PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@almedina-ms
Copy link
Contributor Author

/azp run AdaptiveCards-iOS-CI

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@almedina-ms
Copy link
Contributor Author

/azp run android-ci.yml

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@almedina-ms
Copy link
Contributor Author

/azp run AdaptiveCards-iOS-CI

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@almedina-ms almedina-ms enabled auto-merge (squash) October 8, 2021 10:17
@almedina-ms
Copy link
Contributor Author

/azp run android-ci.yml

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@almedina-ms almedina-ms merged commit 7ea77e7 into main Oct 8, 2021
@almedina-ms almedina-ms deleted the user/almedina-ms/FiletedChoiceSetFix branch October 8, 2021 10:43
michaelfarnsworth pushed a commit to michaelfarnsworth/AdaptiveCards that referenced this pull request Nov 10, 2022
* Fix all scenarios but empty string

* Fix break due to long processing time and add tests

* Add comment to explain the synchronized block

* Fix comments from PR

* Add new test case and cleanup test code

* Add wait for popup dismiss

* Add wait times for failing tests

* Another try to fix the test

* Add more wait time

* Add more time to all elements test

* Ignore test until a fix can be found

Co-authored-by: RebeccaAnne <rebecch@microsoft.com>
rankush pushed a commit to rankush/AdaptiveCards that referenced this pull request May 8, 2024
* Fix all scenarios but empty string

* Fix break due to long processing time and add tests

* Add comment to explain the synchronized block

* Fix comments from PR

* Add new test case and cleanup test code

* Add wait for popup dismiss

* Add wait times for failing tests

* Another try to fix the test

* Add more wait time

* Add more time to all elements test

* Ignore test until a fix can be found

Co-authored-by: RebeccaAnne <rebecch@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants