10000 Import command causing duplicate media items to be added to the db · Issue #243 · protalk/protalk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Import command causing duplicate media items to be added to the db #243

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

Open
Tocacar opened this issue Apr 30, 2014 · 1 comment
Open

Import command causing duplicate media items to be added to the db #243

Tocacar opened this issue Apr 30, 2014 · 1 comment
Milestone

Comments

@Tocacar
Copy link
Member
Tocacar commented Apr 30, 2014

When PHPNW moved their videos from blipTV to youtube, running the import command resulted in duplicate items in the media table.

The import command checks to see if we already have a media item by comparing the permalink of an item with existing items in the media table. If no match is found, the item is imported. The situation with PHPNW is an edge case, and it may be that we can't do anything to prevent it in future, but we should consider it.

Issue #242 is going to ensure uniqueness on the media table's slug column. When this work has been carried out, will the import command break if it doesn't find a perma-link match and attempts to save a media item which fails due to a duplicate slug value?

@Tocacar Tocacar added this to the 1.x.0 milestone Apr 30, 2014
@lineke
Copy link
Member
lineke commented Nov 3, 2014

Maybe the import command should look for the slug instead to check if it exists? Also, I think we also save the feed it imports from don't we? Might be a solution to check on those instead of the permalink

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0