Quantcast
Channel: FeedBunch:34cac4333624170fed210ff2d113469c380d7398 commits
Browsing all 39 articles
Browse latest View live

More accurate entry hashing

The hash that uniquely identifies an entry in the scope of a feed is now calculated using the concatenation of its content (if present), summary (if present) and title (which is always present). This...

View Article



Correct order when deleting duplicate entries in migration

Last implemented rails migration deletes duplicate entries in a single feed based on title+summary+content md5 hash, not just guid. The oldest entry for each set of duplicates in a feed is left in the...

View Article

Added unique_hash attribute to deleted entries

View Article

Added unique_hash attribute to deleted entry factory

View Article

Fixed log generation

unique_hash attribute of DeletedEntry model may be nil, we have to guard against this when generating log messages.

View Article


WIP: validate that new entry is not already deleted using unique_hash

This complements checking for duplicate guids in deleted entries when creating a new entry.

View Article

Fixed and expanded tests

View Article

Use id to order entries in migration

When deleting entries with duplicate hashes in this migration it is important to leave the oldest entry alone and delete any newer duplicates. The id attribute is used in the case of duplicate entries...

View Article


Fix: allow multiple deleted entries with nil hash for the same feed

Also fix a test that should be testing for this but wasn't actually testing anything.

View Article


When deleting old entries, save their hash in the database

View Article

Fixed migration

Now it doesn't invoke activerecord validations or callbacks, which can fail if the model class is out of sync with the db schema when running the migration. Instead we use methods that update the db...

View Article

Fixed error in migration

The wrong model was being deleted. Fortunately the migration failed because it generated the wrong SQL when trying to delete records from deleted_entries; the correct thing to do is delete from...

View Article

Rewritten migrations to update db indexes

The addition of the unique_hash column to entries and deleted_entries tables means it's a good idea to drop a couple old db indexes and create new ones adding the unique_hash column in each one. The...

View Article


Minor change in index

View Article

Updated comments

Old comments mentioned entries and deleted_entries having unique guids in the scope of a feed, now they also have unique unique_hashes.

View Article


Associate validation errors to base object, not a specific attribute

When trying to save a new deleted_entries instance a validation checks that there isn't a non-deleted entry with the same feed_id and either guid of unique_hash. Similarly when trying to save a new...

View Article

Earlier detection of entries with duplicate content during fetching

Until now the detection of entries with duplicated content (based on the md5 hash of the concatenation of content, summary and title) happened in an ActiveRecord validation just before saving each...

View Article


Generate favicon for iOS touch devices

It should get rid of many erros in production logs, when apple devices try to get a different icon than what's declared for HTML5 clients.

View Article

Minor change when fetching feeds

View Article

Fix to validation errors when fetching feeds

When processing entries in a just fetched feed, we build new entries with ```feed.entries.build``` before knowing if we actually are going to save the entry in the database. It's possible that the...

View Article
Browsing all 39 articles
Browse latest View live




Latest Images