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

Attendances are duplicated for a session in a batch #502

Open
rathorevaibhav opened this issue Aug 17, 2022 · 2 comments
Open

Attendances are duplicated for a session in a batch #502

rathorevaibhav opened this issue Aug 17, 2022 · 2 comments

Comments

@rathorevaibhav
Copy link
Member

Describe the task
For batch 1106, there is a deleted session which has 52 entries for attendnaces, although the student in the batch are only 26. Somehow, a duplicate set of attendance has been created.
Run this query to get these attendances:

select * from attendances where session=23928 order by updated_by_frontend, program_enrollment;

Expected behavior
There seems to be a hidden bug in the system that is creating a duplicate set of attendances. Notice the result from the above query, the set of attendances are 10 seconds apart in their created_at field.

Identify the edge case and scenario when this is happening and find the root cause.

@rathorevaibhav rathorevaibhav added this to the Aug 2022 milestone Aug 17, 2022
@rathorevaibhav rathorevaibhav self-assigned this Aug 17, 2022
@rathorevaibhav rathorevaibhav changed the title Attendance duplicate for a session in a batch Attendances are duplicated for a session in a batch Aug 17, 2022
@rathorevaibhav rathorevaibhav modified the milestones: Aug 2022, Sep 2022 Sep 2, 2022
@rathorevaibhav rathorevaibhav added the story point: 0.5 Task ETA 2 hours or less label Sep 6, 2022
@rathorevaibhav rathorevaibhav mentioned this issue Sep 7, 2022
2 tasks
@rathorevaibhav rathorevaibhav modified the milestones: Sep 2022, Oct 2022 Oct 3, 2022
@rathorevaibhav rathorevaibhav modified the milestones: Oct 2022, Nov 2022 Nov 1, 2022
@Mariamraza15
Copy link

Same error occuring in this batch - https://sis-new.medha.org.in/batch/1116
This is closed but students have attendances more than 100%

@Kirtigour
Copy link
Collaborator

@rathorevaibhav, there is another same issue in the batch - https://sis-new.medha.org.in/batch/1096
Students have more than 100% attendance, and there is a session which has 160% attendance.

image

@rathorevaibhav rathorevaibhav modified the milestones: Nov 2022, Dec 2022 Nov 30, 2022
@rathorevaibhav rathorevaibhav removed their assignment Jan 3, 2023
@Rajsnehil Rajsnehil removed this from the Dec 2022 milestone Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants