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

Delete playlist items via content owner #375

Merged
merged 2 commits into from Feb 7, 2020
Merged

Conversation

dgb
Copy link
Contributor

@dgb dgb commented Feb 6, 2020

No description provided.

@dgb dgb requested a review from kangkyu February 6, 2020 02:21
@coveralls
Copy link

coveralls commented Feb 6, 2020

Coverage Status

Coverage decreased (-6.4%) to 86.534% when pulling b1315f8 on playlist-items-content-owner into d70171d on master.

@@ -101,6 +101,12 @@ def resource_id
{kind: 'youtube#video', videoId: video_id}
end

def delete_params
super.tap do |params|
params[:params].merge! @auth.playlist_items_params
Copy link
Contributor

@kangkyu kangkyu Feb 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think method name playlist_items_params can be different? Actually it is used in collections file
https://github.com/Fullscreen/yt/blob/master/lib/yt/collections/playlist_items.rb#L44

How about playlist_item_params

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We chatted about this offline, but for the viewers at home: delete_params is invoked by the Delete action when you call do_delete, and it has a default implementation (hence the super).

@dgb dgb requested a review from kangkyu February 7, 2020 00:51
@dgb dgb merged commit b2ea040 into master Feb 7, 2020
@dgb dgb deleted the playlist-items-content-owner branch February 7, 2020 01:13
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.

None yet

3 participants