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

Make resources which are past their end date accessible in apis #8

Open
JElgar opened this issue Nov 11, 2024 · 0 comments
Open

Make resources which are past their end date accessible in apis #8

JElgar opened this issue Nov 11, 2024 · 0 comments
Assignees

Comments

@JElgar
Copy link
Member

JElgar commented Nov 11, 2024

Any resource which has past its end date should still be available via the APIs. Resource which have not reached their release date should not be accessible. This is currently managed per view e.g. here

return NewsArticle.objects.filter_active(is_active_at=timezone.now())

Most likely we should add a new filter (something like unreleased) to filter out just resource which haven't passed the release date yet (but can have passed their end date). We can then update the activities to use that queryset

@JElgar JElgar added this to now-u Nov 11, 2024
@github-project-automation github-project-automation bot moved this to Todo in now-u Nov 11, 2024
@Anjali5212 Anjali5212 self-assigned this Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants