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

Moved Manga chapters over to Decimals for fractional releases #1002

Merged
merged 9 commits into from
Sep 4, 2024

Conversation

Jacob-Tate
Copy link
Contributor

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).

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
Copy link
Owner

@IgnisDa IgnisDa left a 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.

Copy link
Owner

@IgnisDa IgnisDa left a 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!

Copy link
Owner

@IgnisDa IgnisDa left a 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 😝.

@Jacob-Tate
Copy link
Contributor Author

Should be good now. Let me know if anymore changes are needed.

@IgnisDa
Copy link
Owner

IgnisDa commented Sep 4, 2024

moon r frontend:typecheck gives a lot of errors.

@Jacob-Tate
Copy link
Contributor Author

Resolved that

@IgnisDa IgnisDa merged commit 46b611a into IgnisDa:main Sep 4, 2024
9 checks passed
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.

2 participants