-
Notifications
You must be signed in to change notification settings - Fork 25
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
Managing direct assignments of individual to user #663
Comments
Code changes done so far:
Corner Test cases:
|
…roup should continue to remain assigned to the user
…allow removal of members when group is still assigned to user.
Dev testing screen recordings are attached here-in: PartialSuccessOfBulkUnassignment.movErrorWhileRemovingMemberWhenGroupIsStillAssigned.mov |
@petmongrels are you reviewing this? |
When a non-group individual is assigned to a user, but its group is not assigned to the same user, we will get error in client during sync, as it would not find the related Group entity. |
…hrown when association error failures are to be ignored
…able to find groupOrHousehold when syncing groupSubject mapping objects
…roup should continue to remain assigned to the user (cherry picked from commit c1462fc)
…allow removal of members when group is still assigned to user. (cherry picked from commit 38e5b4e)
@mahalakshme and @vinayvenu |
…SyncError, as GroupSubject mappings will be synced based on groupOrHouseholdSubject and doesnot filter on MemberSubject's presence within the catchment
@petmongrels Have done this additional commit, because, for the case where Household is within the User's catchment but a Member isn't we would have ended up with a sync error, as we do not (and cannot) check for GroupSubjectMapping -Member being within catchment during syncable items determination on server. Related test-case: |
|
Screen.Recording.2023-12-18.at.4.47.21.PM.mov@himeshr can you look at this |
…licking on a username to perform assignment / un-assignment
I have added debounce to avoid invoking the backend api repeatedly when user keeps clicking on a username. |
…ubsequent calls within timeout
1.Taking time to select the assigned to user Screen.Recording.2023-12-19.at.11.56.01.AM.mov |
@Dinesh2019 Create a separate bug, the Individual is correctly assigned / unassigned from the user the first time around. |
@himeshr created the bug card avniproject/avni-webapp#1106 |
…t and group_subject to ensure missed out entities are synced
@AchalaBelokar, we've made an additional commit related to this card. To update the last modified date time for all UserSubjectAssignment and GroupSubject entities. Therefore, please perform another round of testing for LAHI org DirectSubjectAssignment to User feature,
|
|
https://avni.freshdesk.com/a/tickets/3263
Current scenario:
Currently individual unable to assign to a user (avniproject/avni-client#1058). They are assigned via group assignment. But we should be able to assign individuals also to user.
Premise:
Individual assignment to users should be possible independent of group assignment to the users, since the group that the individual belongs to might change or identified at a later point of time.
Acceptance criteria:
Corner Test cases:
The text was updated successfully, but these errors were encountered: