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

feat: fetched notifications based on time not date #35250

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

muhammadadeeltajamul
Copy link
Contributor

Notifications will be fetched based on time instead of date.
For Weekly: Last 7 days
For Daily: Last 24 hours

15 minutes buffer time has been added for both cadence types.

Ticket: INF-1495

end_date = datetime.datetime.combine(yesterday, datetime.time.max)
start_date = end_date
end_date = datetime.datetime.now()
start_date = end_date - datetime.timedelta(days=1, minutes=15)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think making this 30 mins would be better

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think 15 mins will be enough time. Normally, task status is changes from queued to in-progress in less than 15 minutes.

@muhammadadeeltajamul muhammadadeeltajamul merged commit 25d5d08 into master Aug 12, 2024
49 checks passed
@muhammadadeeltajamul muhammadadeeltajamul deleted the inf-1495 branch August 12, 2024 01:18
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

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.

4 participants