-
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
Use media file type
to determine entity lists
#6249
Conversation
mediaFile
type to determine entity lists
mediaFile
type to determine entity liststype
to determine entity lists
@@ -71,4 +71,29 @@ class OpenRosaResponseParserImplTest { | |||
val formList = OpenRosaResponseParserImpl().parseManifest(Document()) | |||
assertThat(formList, equalTo(null)) | |||
} | |||
|
|||
@Test | |||
fun `parseManifest() when media file has type entityList returns isEntityList as true`() { |
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.
We should have a test to check if it returns false otherwise.
@@ -941,8 +941,7 @@ | |||
<!--Text for button that deletes all entities for the project--> | |||
<string name="clear_entities">Poista kaikki</string> | |||
<!--Text for button that adds a new entity list--> |
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.
You should also get rid of the explanation text above.
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.
I've removed it for the string in values
, but won't touch it for the translated files as that should happen automatically for when new translations are added.
Closes #6161
Closes #6229
Why is this the best possible solution? Were any other approaches considered?
Not a lot to discuss here! I just updated how we parse the form manifest.
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 does remove the ability to manually add entity lists manually to make things less confusing, but it will mean that this (and any future entity features/changes) will require testing against a version of Central that supports the
type
attribute. This change hasn't been released yet, but should be available at https://staging.getodk.cloud.Before submitting this PR, please make sure you have:
./gradlew connectedAndroidTest
(or./gradlew testLab
) and confirmed all checks still passDateFormatsTest