-
Notifications
You must be signed in to change notification settings - Fork 559
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] Update submit validation API #4876
[Android] Update submit validation API #4876
Conversation
@almedina-ms can you remove the placeholder PR description text from the template and update with relevant description/details around this PR? thanks #Closed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you start by updating the description? thanks
…ttps://github.com/microsoft/AdaptiveCards into user/almedina-ms/Android_UpdateSubmitValidationAPI
...ndroid/adaptivecards/src/main/java/io/adaptivecards/renderer/readonly/ContainerRenderer.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you include a unit test for the public API to cover the crash scenarios to ensure automated coverage going forward? Thanks
Hi @almedina-ms. This non-spec pull request has had no recent activity for the past 5 days . Please take the necessary actions (review, address feedback or commit if reviewed already) to move this along. |
Hi @almedina-ms; Thanks for taking action on your previously stale pull request. Resetting staleness. |
import android.support.test.InstrumentationRegistry; | ||
import android.support.v4.app.FragmentActivity; | ||
import android.support.v4.app.FragmentManager; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you are on here @almedina-ms can you add in the msft copyright header pls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Handy links: |
* Save Container Card Id in RenderArgs constructor * Update Submit API * Updates samples to mimic bug scenario * Update documentation on the introduced APIs * Fix casting bug * Update API to be more similar to iOS * Clear prevalidated inputs to avoid caching results * Update the sample to add disabling * Add first changes * Add unit test and fix bug * Add warning for test as focus makes it unusable Co-authored-by: shalinijoshi19 <shalinij@microsoft.com> Co-authored-by: Risheek Rajolu <risheekrr@gmail.com>
Related Issue
Relates to #4829
Description
Updates the SubmitValidation API removing the use of the shared model
InternalId
, the usage of this properties led to app crashes due to the retrieval of the values taking too long.The update also includes the
registerSubmitableAction
which lets the action listeners to know what actions should validation be performed for, this helps avoid unnecessary validations on custom elements that may not need it.It also adds an
areInputsValid
which lets the developer know what the result of the last performed validation was, this removes the need to re-execute the validation process to know the validation result.How Verified
The fix was verified by adding a sample CustomBlueAction and CustomActionListener which makes use of the previously described APIs
Microsoft Reviewers: Open in CodeFlow