Skip to content

fix: enhance sticker ownership migration and improve logging#206

Merged
danoctua merged 2 commits intodevfrom
fix/stickers-ownership
Nov 22, 2025
Merged

fix: enhance sticker ownership migration and improve logging#206
danoctua merged 2 commits intodevfrom
fix/stickers-ownership

Conversation

@danoctua
Copy link
Copy Markdown
Collaborator

@danoctua danoctua commented Nov 22, 2025

Enhance sticker ownership migration and improve logging

Description

This Pull Request makes several changes to improve sticker ownership data management, database queries, and logging. It also introduces new utilities and updates existing functionality to enhance efficiency and data integrity in the system.

Checklist

Before submitting your pull request, please ensure the following:

  • I have read the contributing guidelines.
  • I ran all tests and they passed successfully.
  • I added/updated documentation (if applicable).
  • I reviewed my own code and followed the project's code style.
  • I included relevant details in the PR description or commit messages.

Changes

  • Improved Logging: Enhanced readability by adding more detailed logs.
  • Database Migration: Introduced a new migration script to remove old sticker ownership data format and enqueue updates for managed users.
  • Code Refactoring: Cleaned and refined database query options, added new parameters to make query behavior more flexible.
  • New Utility Function: Added a batched utility for creating fixed-size batches from iterable data.
  • Sticker Data Handling: Enhanced sticker item handling by introducing asynchronous methods for cleanup and ownership refresh.
  • Batch Processing: Enhanced batch processing in multiple modules to handle operations with better efficiency and scalability.

How Has This Been Tested?

  • Tested locally by creating dummy sticker (with old ID format and new, non-existing instance) and triggered a pipeline

Thank you for contributing! 🎉

@danoctua danoctua self-assigned this Nov 22, 2025
@danoctua danoctua added bug Something isn't working enhancement New feature or request labels Nov 22, 2025
@danoctua danoctua marked this pull request as ready for review November 22, 2025 12:50
@danoctua danoctua merged commit 0792bcd into dev Nov 22, 2025
2 checks passed
@danoctua danoctua deleted the fix/stickers-ownership branch November 22, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant