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

filter out false positive conflict records in sequentially_slugged #733

Closed
wants to merge 1 commit into from

Conversation

doncote
Copy link

@doncote doncote commented Feb 23, 2016

The SQL query to return conflicts is picking up additional records where the slug is a substring of a longer slug. For example, the slug "a-string" will return conflicts matching "a-string-1" and "a-string-foo". This was causing ActiveRecord::RecordNotUnique errors.

Rather than implement cross-database regex, this pull request filters out the false positive conflicts after the results are returned.

@stale
Copy link

stale bot commented Dec 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 11, 2019
@stale stale bot closed this Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant