avniproject / avniproject/avni-server

Sync of entity approval status for encounter type and program should sync data linked to all subject types

Open
#565 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
22
Forks
47
PR merge metrics
No merged PRs in 30d

Description

Analysis details:
Currently`fetchSubjectTypeForEntityNameAndUuid` used in EntityApprovalStatusController for getting entityApprovals, fetches only the first subject type linked to encounter type or program. This results in fetching entityApprovalStatus based on only the sync settings of the first subject type. This needs to be fixed.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing fetchSubjectTypeForEntityNameAndUuid as used by EntityApprovalStatusController, then inspect how encounter types and programs link to subject types and how sync settings determine entity approvals. Done means approval status synchronization considers data linked to all relevant subject types rather than only the first one; no test or file path is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.