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: subscription groups use invalid channel id length #3325

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

Bnyro
Copy link
Member

@Bnyro Bnyro commented Jan 11, 2024

WHOOPS

Merging this would break compatibility with current channel groups however, not sure what the best way to work around this.

(Noticed when working on import/export compatibility with LibreTube.)

@Bnyro Bnyro requested a review from FireMasterK January 11, 2024 19:30
Copy link
Contributor

sweep-ai bot commented Jan 11, 2024

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.

This is an automated message generated by Sweep AI.

@FireMasterK
Copy link
Member

I think we can add an IndexedDB migration to fetch the user's subscriptions, and then find the appropriate 24 character channel id from it.

@Bnyro
Copy link
Member Author

Bnyro commented Jan 11, 2024

Right, good idea 👍
I'll look into this tomorrow.

@Bnyro
Copy link
Member Author

Bnyro commented Jan 12, 2024

I've added some migrations now, and tested with a few channels and groups and seems to be working fine, the database is being updated properly.

@Bnyro Bnyro requested review from FireMasterK and removed request for FireMasterK January 12, 2024 15:22
@Bnyro Bnyro marked this pull request as ready for review January 12, 2024 16:33
@Bnyro Bnyro enabled auto-merge February 23, 2024 16:45
@Bnyro Bnyro merged commit 55fb472 into TeamPiped:master Feb 23, 2024
3 checks passed
@Bnyro Bnyro deleted the fix-channel-id branch March 15, 2024 21:54
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