-
Notifications
You must be signed in to change notification settings - Fork 53
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
Moved Manga chapters over to Decimals for fractional releases #1002
Conversation
Modified front end to properly display fractional releases Modified front end to properly mark fractional releases as read Modified front end to properly mark all prior chapters as read
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.
LGTM. Few superficial changes.
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.
LGTM. Will merge later today. Thanks for the contribution!
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.
Please run moon r frontend:lint
and address the lint errors.
Edit: Looks like biome does not like usage of isNan
and isFinite
from lodash. In that case, please revert those changes. Keep the isNumber
and isString
. Sorry for the back and forth 😝.
Should be good now. Let me know if anymore changes are needed. |
|
Resolved that |
Modified front end to properly display fractional releases
Modified front end to properly mark fractional releases as read
Modified front end to properly mark all prior chapters as read
I have tested and marking completed is working.
I changed the functionality of marking all prior chapters as read since I started using the integration after the fact my lastseenchapter was 50 and I wanted to mark 1-49 but couldnt because of the implementation so it now will mark all previous chapters which may have been missed.
NOTE: I am unaware of MAL or MangaUpdates storing any fractional releases since they dont track individual chapters and the APIs return whole numbers so we will continue to receive i32/i64 values and convert them the decimal after import.
NOTE: This does not handle marking prior fractional releases as read only whole numbers since we have no way of knowing they exist.
NOTE: isNumberOrDecimalString exists to bridge the gap with the previous schema using numbers. Due to the way the storage is occurring the previous manga entries are numbers whereas the new entries are technically strings (even though they are imported as decimal).