[V3] Same link can be added multiple times on a playlist #2071

Merged
rguan72 merged 7 commits from V3/develop into V3/develop 2018-09-06 08:25:28 +02:00
rguan72 commented 2018-08-31 03:37:24 +02:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

If a user tries to append a song url to a playlist that already has the song, the song is not appended and red tells the user that the song is already in the playlist. This only checks if the exact url has already been added, so songs with the same title but different urls can be added. Black also found a style issue, but I was having some trouble submitting getting around it so I wanted to submit a pull request first.

### Type - [x] Bugfix - [ ] Enhancement - [ ] New feature ### Description of the changes If a user tries to append a song url to a playlist that already has the song, the song is not appended and red tells the user that the song is already in the playlist. This only checks if the exact url has already been added, so songs with the same title but different urls can be added. Black also found a style issue, but I was having some trouble submitting getting around it so I wanted to submit a pull request first.
Twentysix26 (Migrated from github.com) reviewed 2018-08-31 03:37:24 +02:00
mikeshardmind commented 2018-08-31 03:57:03 +02:00 (Migrated from github.com)

Hey! Appreciate the pull for this. We have a makefile that will handle style for you (make reformat) from the project directory with red's stlye extra installed (pip install red-discordbot[style] -U --process-dependency-links)

Hey! Appreciate the pull for this. We have a makefile that will handle style for you (`make reformat`) from the project directory with red's stlye extra installed (`pip install red-discordbot[style] -U --process-dependency-links`)
rguan72 commented 2018-09-01 21:05:45 +02:00 (Migrated from github.com)

Hey, is making a test for a bug like this necessary? If so, where should I write the test? I couldn't find a file for audio cog tests in the tests folder. Thanks!

Hey, is making a test for a bug like this necessary? If so, where should I write the test? I couldn't find a file for audio cog tests in the tests folder. Thanks!
aikaterna commented 2018-09-01 21:06:35 +02:00 (Migrated from github.com)

No tests needed, it should be looked at by a QA member or someone else willing to test it and leave a review. I intend to look at this later myself, but if someone would like to test and comment it would be appreciated.

No tests needed, it should be looked at by a QA member or someone else willing to test it and leave a review. I intend to look at this later myself, but if someone would like to test and comment it would be appreciated.
aikaterna (Migrated from github.com) reviewed 2018-09-06 06:08:48 +02:00
aikaterna (Migrated from github.com) left a comment
No description provided.
Thanks for this addition and closing the issue referencing this. Not really sure why we have README edits attached to it, but that looks fine too. In the future I (or anyone else) might revisit this to iterate through playlist links with multiple tracks added via append to discard duplicate existing tracks as well.
Tobotimus (Migrated from github.com) approved these changes 2018-09-06 08:20:09 +02:00
Tobotimus (Migrated from github.com) left a comment

Thanks, and congrats on your first PR 🎉

I reverted the README changes to avoid conflicts with another PR, I assume they were just accidental from your IDE stripping trailing whitespace.

Thanks, and congrats on your first PR :tada: I reverted the README changes to avoid conflicts with another PR, I assume they were just accidental from your IDE stripping trailing whitespace.
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!2071
No description provided.