Skip to content

bug: Duplicates in the assignments in the "schedule" page. #4

Description

@Devyalamaddi

Provide environment information

When an assignment is posted a duplicate is created in the next day too.

Describe the bug

To understand the issue, navigate to the schedule page in the sidebar and then take a look at the calendar with assignments.
You can see the duplicates are formed of every assignments.

In fact those are not the duplicates.

Change the calendar view into the day . Now go to the day, that has an assignment. If the assignment is posted in the early morning 5AM, the current logic adding it to the 24hrs so it is added for next 24hrs, that is, till the next day morning 4:59AM.(check the screen shots).

Image
Image

Link to reproduction

https://learn.tutly.in/schedule

To reproduce

This can be solved as follows:
Irrespective of the time of uploading an assignment it must add to calendar till respective day's 23:59 only.
It prevents to add the assignment to the next day, as a result duplicates are reduced

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions