frc5183 / Oatmeal

MIT License
2 stars 0 forks source link

feat(oatmeal): adds batching for Reminder removal #20

Closed Trip-kun closed 9 months ago

Trip-kun commented 9 months ago

Summary by CodeRabbit

coderabbitai[bot] commented 9 months ago

Walkthrough

The changes primarily focus on enhancing the reminder data management in the application. A new method for batch removal of reminder data has been introduced, which is implemented in the MariaManager and utilized in the Heartbeat class. The DatabaseUtil class also sees the addition of a method to delete multiple reminder entities.

Changes

File Path Summary
.../oatmeal/managers/DataManager.java Added removeReminderDatas method and import for java.util.Collection.
.../oatmeal/managers/MariaManager.java Implemented removeReminderDatas method and updated removeReminderData method to use deleteReminderEntities from DatabaseUtil.
.../oatmeal/runnable/Heartbeat.java Updated run() method to use removeReminderDatas for batch removal of reminder data.
.../oatmeal/util/DatabaseUtil.java Added deleteReminderEntities method and import for java.util.Collection.

Poem

๐Ÿ‚ As autumn leaves fall, so do old reminders, ๐Ÿ

Batch deletion now, no more single finders. ๐Ÿงน

In the heart of code, a change beats anew, ๐Ÿ’“

Making data management a breeze to do. ๐Ÿ’จ

So here's to the coders, in their digital den, ๐Ÿ‡

Dancing with keystrokes, again and again. ๐Ÿ’ป

As the world turns, in this November's embrace, ๐ŸŒ

We celebrate change, in the codebase's space. ๐ŸŽ‰


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - If you reply to a *review comment* from CodeRabbit, the bot will automatically respond. - To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment - Note: Review comments are made on code diffs or files, not on the PR overview. - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai help` to get help. - `@coderabbitai resolve` to resolve all the CodeRabbit review comments. Note: For conversation with the bot, please use the review comments on code diffs or files. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json`
Trip-kun commented 9 months ago

@coderabbitai review