-
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
Allow forms with parse errors to be downloaded, show errors at form open time #6428
Merged
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
7695411
Added failing tests
grzesiek2010 29e6b84
Reoworked the FormMetadataParser to use simple form parsing
grzesiek2010 c2f9a0f
Use the new form parser
grzesiek2010 6afec6e
Removed redundant tests
grzesiek2010 5ac242d
Moved testing FormMetadataParser to FormMetadataParserTest
grzesiek2010 b1b4d34
Converted FormMetadataParserTest to kotlin and simplified it
grzesiek2010 7aa2427
Removed redundant test
grzesiek2010 7aa4a86
Added clear error message for unrecognized entity version
grzesiek2010 a132e07
Improved tests
grzesiek2010 c8f6a5f
Removed redundant code
grzesiek2010 cbecde6
Fixed broken form test
grzesiek2010 a3155cb
Fixed parsisng forms with comments
grzesiek2010 2cbdd45
Moved form parsing to its own package
grzesiek2010 454d0d5
Improved the error message
grzesiek2010 5d3aaff
Improved error dialog title
grzesiek2010 3d65c6f
Improved reading geometry xpaths
grzesiek2010 126896e
Reworked tests
grzesiek2010 f49862e
Naming improvements
grzesiek2010 df9d70e
Simplified readMetadata_canParseFormsWithComments test
grzesiek2010 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do we really need all three of these? I feel like we could maybe use our knowledge of the shared metadata parsing implementation and only test one of the paths given that these tests are so slow to run.
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 thought about that and keeping just one test, but since I didn't really favor any option, I decided to add all three. For me, the time required to run these tests has never been a significant issue, as I don’t run them in bulk locally. I always use Firebase and get results in 4-5 minutes. Additionally, we have recently removed many tests from the regression package—see the last part: #6383 so I believe we have fewer tests overall. Generally, I think it’s better to have such tests, even if they take some time to run. However, as I mentioned, I was unsure about keeping or removing them, so I'm fine with keeping just one test if that’s your preference, just let me know.