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

Bugfix: FWF-3748: Fix keyerror for a user with create_designs and create_submissions on accessing formlist with includeSubmissionsCount=true #2538

Conversation

auslin-aot
Copy link
Contributor

Issue Tracking

JIRA:
Issue Type: BUG/ FEATURE
https://aottech.atlassian.net/browse/FWF-3748

Changes

A KeyError on parent_form_id occurs when a user with _create_designs and create_submissions permissions uses the includeSubmissionsCount=true parameter. This happens because parent_form_id is not included in the select query for fetching forms (find_all_forms) for designers but is included for clients. To resolve this, add a showForOnlyCreateSubmissionUsers (ignore designer -> schema name) check before fetching the count.

Screenshots

image
After fix
image

Checklist

  • Updated changelog
  • Added meaningful title for pull request

@auslin-aot auslin-aot changed the title Bugfix: FWF-3748: Included showForOnlyCreateSubmissionUsers(ignore_designer) check for submission count Bugfix: FWF-3748: Fix keyerror for a user with create_designs and create_submissions on accessing formlist with includeSubmissionsCount=true Jan 21, 2025
@auslin-aot auslin-aot force-pushed the feature/fwf-3748-submissions-count-client-form-list branch from f228969 to ce763e3 Compare January 21, 2025 07:05
@auslin-aot auslin-aot marked this pull request as ready for review January 21, 2025 07:09
@auslin-aot auslin-aot requested review from a team as code owners January 21, 2025 07:09
@arun-s-aot arun-s-aot merged commit f01729c into AOT-Technologies:develop Jan 21, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants