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

Fix reading progress start_date bug #3401

Merged

Conversation

dato
Copy link
Contributor

@dato dato commented Jul 28, 2024

  • 8122214 Add failing test case for comment progress clobbering start_date
  • 041f2fc edit_readthrough: set start_date/finish_date iff present in request

@dato dato marked this pull request as ready for review July 28, 2024 09:06
Comment on lines +204 to +205
if start_date := request.POST.get("start_date"):
readthrough.start_date = load_date_in_user_tz_as_utc(start_date, request.user)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Another option would be to ensure the Comment form has the ReadThrough's start_date (as with the "Update progress" modal). I don't have a clear idea if it'd be a better approach here.

Copy link
Member

Choose a reason for hiding this comment

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

I don't know either, which to me makes your solution seem equally good :)

Comment on lines +204 to +205
if start_date := request.POST.get("start_date"):
readthrough.start_date = load_date_in_user_tz_as_utc(start_date, request.user)
Copy link
Member

Choose a reason for hiding this comment

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

I don't know either, which to me makes your solution seem equally good :)

@mouse-reeve mouse-reeve merged commit 95c2798 into bookwyrm-social:main Aug 9, 2024
10 checks passed
@dato dato deleted the comment_progress_keep_start_date branch August 9, 2024 21:58
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.

Reading progress bug
2 participants