-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Show warning when editing finalized form #5681
Conversation
1696627
to
f7d333f
Compare
..._app/src/androidTest/java/org/odk/collect/android/feature/formentry/FormSavedSnackbarTest.kt
Show resolved
Hide resolved
This one is connected with the previous PR introducing the possibility to edit finalized form. I was away when it was introduced and I don't know if this case was discussed but the end page says "You will not be able to make edits once you finalize..." and now it's temporarily possible so it might be a bit confusing. |
It is confusing but we decided that we should not change anything there. Even the snackbar action is |
It should be fixed. @seadowg was there any reason not to use the |
I guess it probably didn't have any UI when it was first made? Other than that, I can't think of a reason. |
cbe115e
to
fda5e8f
Compare
Tested with Success alongside with @dbemke Verified on device with Android 10,13 Verified cases:
|
Closes #5680
What has been done to verify that this works as intended?
I've tested the changes manually and updated automated tests.
Why is this the best possible solution? Were any other approaches considered?
Displaying the warning in
FormUriActivity
ensures that it will be displayed no matter how the form editing is started (from any place in ODK Collect or an external app).How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
I think that testing editing forms (drafts too) would be enough and there is not a big risk here. Please keep in mind that the warning should not be displayed after October 1st.
Do we need any specific form for testing your changes? If so, please attach one.
No.
Does this change require updates to documentation? If so, please file an issue here and include the link below.
No.
Before submitting this PR, please make sure you have:
./gradlew checkAll
and confirmed all checks still pass OR confirm CircleCI build passes and run./gradlew connectedDebugAndroidTest
locally.