feat: support different methods of retrieving submissions, and their … #9
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.
This pull request significantly enhances the data capture module by adding flexible support for JSON:API includes and request parameterization for form submission version endpoints, improving resource hydration, and expanding test coverage. It introduces new overloads for listing and fetching submission versions, updates resource models for richer relationships, and adds HTTP client timeouts for improved reliability.
API and Model Enhancements:
FormSubmissionVersionIncludesenum andFormSubmissionVersionRequestParametersclass to enable JSON:API includes and flexible request parameters for form submission version endpoints, allowing clients to specify related resources to hydrate. (FormSubmissionVersionsRouter.kt)FormSubmissionVersionsRouterfor listing and fetching submission versions by different path patterns (with or without form id, and organisation-wide), each supporting includes and pagination. (FormSubmissionVersionsRouter.kt)FormSubmissionVersionmodel from a data class to a regular class, adding new relationship fields forauthor,form,payloadImages,payloadOperations,payloadProperties, andpayloadUsers, as well as ametaproperty for metadata. (FormSubmissionVersion.kt) [1] [2]Resource Model Improvements:
Imagemodel from a data class to a class, added support formetainformation (including image links and creation date), and introduced new related classes (ImageDimensions,ImageLink,ImageMeta) for richer image metadata handling. (Image.kt)FormSubmissionVersion.kt,FormSubmissionVersionsRouter.kt) [1] [2]Infrastructure and Testing:
KtorClientFactory.kt) [1] [2]FormSubmissionVersionsRouterTest.kt)