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

Fixed hiding error in external widgets #6273

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

grzesiek2010
Copy link
Member

@grzesiek2010 grzesiek2010 commented Jul 18, 2024

Closes #6266

Why is this the best possible solution? Were any other approaches considered?

It's a bug fix so nothing to discuss here.

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?

This fixes hiding errors in external string widgets. Other widgets should not be affected but we can't be sure maybe we have similar issues with other types of questions as well (it would be good to test them).

Do we need any specific form for testing your changes? If so, please attach one.

The form that is attached to the issue.

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:

  • added or modified tests for any new or changed behavior
  • run ./gradlew connectedAndroidTest (or ./gradlew testLab) and confirmed all checks still pass
  • added a comment above any new strings describing it for translators
  • added any new strings with date formatting to DateFormatsTest
  • verified that any code or assets from external sources are properly credited in comments and/or in the about file.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

@grzesiek2010 grzesiek2010 changed the title Collect 6266 Fixed hiding error in external widgets Jul 18, 2024
@grzesiek2010 grzesiek2010 marked this pull request as ready for review July 18, 2024 15:44
@grzesiek2010 grzesiek2010 requested a review from seadowg July 18, 2024 15:44
@@ -64,6 +66,26 @@ public void widgetShouldBeRegisteredForContextMenu() {
assertThat(viewsRegisterForContextMenu.get(1).getId(), is(widget.getId()));
}

@Test
public void errorDisappearsOnSetData() {
Copy link
Member Author

Choose a reason for hiding this comment

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

We should have such tests for other question types. Here is a separate issue for that #6274.

@grzesiek2010 grzesiek2010 added the high priority Should be looked at before other PRs/issues label Jul 22, 2024
@seadowg seadowg merged commit b44e199 into getodk:v2024.2.x Jul 22, 2024
6 checks passed
@WKobus
Copy link

WKobus commented Jul 22, 2024

Tested with Success

Verified on devices with Android 10, 14

Verified Cases:

seadowg added a commit to seadowg/collect that referenced this pull request Jul 24, 2024
Fixed hiding error in external widgets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
behavior verified high priority Should be looked at before other PRs/issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Constraint violation message is not dismissed when value from external app changes
3 participants