-
-
Notifications
You must be signed in to change notification settings - Fork 183
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(greader): set updateAt time correctly (and fix "Keep Archived Articles" setting) #702
Conversation
@JunkFood02 That's... strange. I will look into it when I'm back at my computer, but I did debug that date value and it was off by a factor of 1000 when I tested it. The bug does exist, and this PR does fix it. |
@JunkFood02 Aha, figured it out! This is way more annoying than I thought... Turns out, the bug I encountered is specific to Miniflux. The FreshRSS (which is what @Ashinch used to develop the Greader backend) sets Miniflux, on the other hand, sets both values at microsecond precision - see here. That's strange, since the different In any case, the above mentioned bug does happen on Miniflux. I've opened #707 to track this. |
Signed-off-by: Mark Bestavros <markbest@bu.edu>
6099a9a
to
dad7c05
Compare
@JunkFood02 I've updated my PR to set the We could merge this fix now, see what Miniflux upstream says about fixing EDIT I will also note that, according to this documentation, various other clients (including Reeder, which seems to be a gold standard for @Ashinch) uses |
Looks like miniflux/v2#2673 fixed the related issue upstream! I'm going to leave this PR open and let @Ashinch decide whether to merge or not, but either way the issue should be fixed. |
Thanks for your follow up. Since Miniflux has fixed their issues, I will likely keep things unchanged to prevent regression problems with other GReader providers. BTW, I will cut a release this weekend that includes all the new commits. 😉 |
@Ashinch I was about to suggest a new release too! Glad you're already on top of it 😁 |
This PR fixes an issue where articles fetched via the Google Reader API had their
updateAt
time set incorrectly.Currently, this time is calculated in milliseconds, which converts into a(See comments for further explanation.) This meant that the "Keep Archived Articles" setting would only ever see articles published in the future and would never delete any of them - causing the database to fill up over time and slow down the app.Date
object about 50,000 years into the future (sinceDate
takes seconds by default).Tagging @Ashinch and @JunkFood02 for review.