Cherypick the cache system from the feature branch #5061

Closed
Drapersniper wants to merge 11 commits from audio-fb-cache into V3/develop
Drapersniper commented 2021-05-19 20:53:54 +02:00 (Migrated from github.com)

1- Adds a caching laying to most audio settings significantly reducing config calls withing audio.

  • Still needs further implementation withing the cog due to new things added since this was written for the feature branch.

2- Lays out the ground work for enabling several global level configuration settings (Global max volume, global repeat, global shuffle, global autoplay, etc etc)

Note: Multi-DJ role config is currenntly breaking which means a config migration is required as well as handdling withing the bot to check multiple roles for dj.

this ended up being far larger than I wanted it to be, reason is due to config being a major change to how audio works, and as such it basically touched everything in audio, there wont be another PR this size. but before I PR the remaining work I will need this one merged as everything else builds up from this.

There's no rush to merge this PR.

The following are the other things that ended up tagging along due to the low level changes.

  • [p]audioset server role To accept a list of roles (PR - #5061)
  • Set maximum allowed volume (PR - #5061)
  • Channel specific volume settings (PR - #5061)
  • Configurable maximum queue size - Places where the Queue is Controllate already been added, now need to add a command to set it. (PR - #5061)
  • Global empty disconnect - (Req - #2940 (comment)) (PR - #5061)
  • Global empty pause (Req - #2940 (comment) ) (PR - #5061)
  • Allow users to modify application.yaml (PR - #5061)
  • Improve audio performance by caching config calls (PR - #5061)
  • Commands for multi node support - (PR - #5061)
  • Revamp of [p]audioset Commands may be longer but are more intuitive, don't like it? make aliases with the alias code. - (PR - #5061)
  • Allow Bot owner to disconnect all, active, idle or specific players. - (PR - #5061)
  • Add a command to see the latest Red-Lavalink server releases with the URL, version and published date. - (PR - #5061)

P.S the changes to [p]audioset and the templating for the the cache system is the majority of this pr so its not as scary as it actually looks like.

1- Adds a caching laying to most audio settings significantly reducing config calls withing audio. - Still needs further implementation withing the cog due to new things added since this was written for the feature branch. 2- Lays out the ground work for enabling several global level configuration settings (Global max volume, global repeat, global shuffle, global autoplay, etc etc) Note: Multi-DJ role config is currenntly breaking which means a config migration is required as well as handdling withing the bot to check multiple roles for dj. this ended up being far larger than I wanted it to be, reason is due to config being a major change to how audio works, and as such it basically touched everything in audio, there wont be another PR this size. but before I PR the remaining work I will need this one merged as everything else builds up from this. There's no rush to merge this PR. The following are the other things that ended up tagging along due to the low level changes. - [p]audioset server role To accept a list of roles (PR - #5061) - Set maximum allowed volume (PR - #5061) - Channel specific volume settings (PR - #5061) - Configurable maximum queue size - Places where the Queue is Controllate already been added, now need to add a command to set it. (PR - #5061) - Global empty disconnect - (Req - #2940 (comment)) (PR - #5061) - Global empty pause (Req - #2940 (comment) ) (PR - #5061) - Allow users to modify application.yaml (PR - #5061) - Improve audio performance by caching config calls (PR - #5061) - Commands for multi node support - (PR - #5061) - Revamp of [p]audioset Commands may be longer but are more intuitive, don't like it? make aliases with the alias code. - (PR - #5061) - Allow Bot owner to disconnect all, active, idle or specific players. - (PR - #5061) - Add a command to see the latest Red-Lavalink server releases with the URL, version and published date. - (PR - #5061) P.S the changes to `[p]audioset` and the templating for the the cache system is the majority of this pr so its not as scary as it actually looks like.
aikaterna (Migrated from github.com) reviewed 2021-05-19 20:53:54 +02:00
PredaaA (Migrated from github.com) reviewed 2021-05-19 20:53:54 +02:00
Drapersniper commented 2021-06-02 23:37:32 +02:00 (Migrated from github.com)

Keeping this one open as Preda has already spent some time reviewing it.

Keeping this one open as Preda has already spent some time reviewing it.
Drapersniper commented 2021-06-02 23:49:13 +02:00 (Migrated from github.com)

I was going to be civil.

Howver if you wanna revoke my QA perms without any discussion first because i closed some PR's I've opened because I becase a "security concern" fine ...

image

I was going to be civil. Howver if you wanna revoke my QA perms without any discussion first because i closed some PR's I've opened because I becase a "security concern" fine ... ![image](https://user-images.githubusercontent.com/27962761/120556655-b3264b80-c3f4-11eb-877d-f38cc6a70df4.png)

Pull request closed

Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!5061
No description provided.