-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Sched: Enable New Timezone Handling Code #8054
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8054 +/- ##
============================================
- Coverage 36.94% 36.92% -0.03%
- Complexity 3751 3766 +15
============================================
Files 350 352 +2
Lines 35736 35803 +67
Branches 4730 4739 +9
============================================
+ Hits 13204 13220 +16
- Misses 21023 21070 +47
- Partials 1509 1513 +4 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks cool! Starting to get some features courtesy of rust :-)
I had one note that was code structure, I didn't see anything off in general, so this LGTM pending that
You ready to merge this, as in you feel like the initial conversion is solid enough to throw this in on top? I would not hesitate personally but you're the one watching issue flow I'm sure
As such, I think you merge + release on your preference to control same - either immediately if you like or whatever delay you prefer if so
Oh, also could use a quick skim over ankidroid/Anki-Android-Backend@edbac00 |
Copied from Anki at commit 131d37dca52c29033432e0149052093ab1c79461 Except one line in Collection which accepts data if server == true. https://github.com/ankitects/anki/blob/131d37dca52c29033432e0149052093ab1c79461/pylib/anki/collection.py https://github.com/ankitects/anki/blob/131d37dca52c29033432e0149052093ab1c79461/pylib/anki/schedv2.py * Bumps SYNC_VERSION to 10 if using Rust * Add local_minutes_west and sched_timing_today to Backend * Add "New timezone handling" preference * Set "localOffset" preference if using SchedV2 under Rust * Fix SchedV2:_updateCutoff to better handle timezones We will calculate this information in the Rust in V2 of the Rust Conversion We can't do this yet as we're still on V11 of the database schema Fixes 5805
90233c4
to
c12a438
Compare
Force pushed to remove conflicts - unsure what the "waiting for feedback" label was for. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All LGTM
Ready at your leisure for merge + release |
Purpose / Description
Anki Desktop has modified their code to better handle timezone changes. See linked issue
Fixes
Fixes #5805
Approach
Copied from Anki at commit ankitects/anki@131d37d
Except one line in Collection which accepts data if server == true.
https://github.com/ankitects/anki/blob/131d37dca52c29033432e0149052093ab1c79461/pylib/anki/collection.py
https://github.com/ankitects/anki/blob/131d37dca52c29033432e0149052093ab1c79461/pylib/anki/schedv2.py
creationOffset
We will calculate this information in the Rust in V2 of the Rust Conversion
We can't do this yet as we're still on V11 of the database schema
How Has This Been Tested?
Checklist
if
statements)