Skip to content

Fix derived From's FormVersion should not be returned to mobile - #3320

Open
bmonjoie wants to merge 1 commit into
developfrom
fix/IA-5414_form_versions_should_not_return_derived_to_mobile
Open

Fix derived From's FormVersion should not be returned to mobile#3320
bmonjoie wants to merge 1 commit into
developfrom
fix/IA-5414_form_versions_should_not_return_derived_to_mobile

Conversation

@bmonjoie

Copy link
Copy Markdown
Member

What problem is this PR solving?

When the mobile application retrieves the FormVersions, some of them are pointing to Forms that are "derived" and not returned to the mobile. This results in a Foreign Key exception in the mobile app.

Related JIRA tickets

IA-5414

Changes

When an app_id is passed, filter out the derived Forms.

How to test

  1. Request the FormVersion using the API: /api/formversions/?app_id=...
  2. Mark a form as derived
  3. Check that the versions of that form are not returned when calling the same endpoint.

@bmonjoie bmonjoie self-assigned this Sep 10, 2026
@bmonjoie bmonjoie added the bug Something isn't working label Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant