Import command causing duplicate media items to be added to the db · Issue #243 · protalk/protalk · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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?
The text was updated successfully, but these errors were encountered: