Skip to content

Conversation

@cpennington
Copy link
Contributor

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hope you don't mind the drive-by comment. If I understand correctly, we have been inadvertently truncating anonymous ids in the database, right?

If so, with this check to see if they match, wouldn't all truncated values that were saved to DB always fail. If so, do we want to do this "log as error and continue" the right thing to do?

Do we expect a significant number of truncated pieces of data to already be in the prod database?

Copy link
Contributor

Choose a reason for hiding this comment

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

The db migration will remove all rows with a truncated id, so by the time this code runs, there will be no short ids any more.

nedbat added a commit that referenced this pull request Dec 4, 2013
@nedbat nedbat merged commit c7ac410 into hotfix/2013-12-04 Dec 4, 2013
@nedbat nedbat deleted the adam/db-error branch December 4, 2013 20:07
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.

5 participants