Skip to content

Don't call upstream if nothing found via friendly ID search#972

Open
corwinstephen wants to merge 4 commits into
norman:masterfrom
corwinstephen:prevent-false-positives
Open

Don't call upstream if nothing found via friendly ID search#972
corwinstephen wants to merge 4 commits into
norman:masterfrom
corwinstephen:prevent-false-positives

Conversation

@corwinstephen

Copy link
Copy Markdown

Prevent false positives when friendly ID doesn't match

Comment thread lib/friendly_id/finder_methods.rb Outdated
Comment thread lib/friendly_id/finder_methods.rb Outdated
@parndt

parndt commented Jun 29, 2021

Copy link
Copy Markdown
Collaborator

@corwinstephen thanks I added some suggestions; we can convert this from a guard clause to just use the result of exists_by_friendly_id? as that is what we're most interested in here.

@stale

stale Bot commented Oct 12, 2021

Copy link
Copy Markdown

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 Oct 12, 2021
@parndt parndt added the pinned label Oct 12, 2021
@corwinstephen

Copy link
Copy Markdown
Author

Hey sorry to disappear on this. What are you thinking here? Looks like the specs had some trouble getting started.

@parndt

parndt commented Oct 14, 2021

Copy link
Copy Markdown
Collaborator

@corwinstephen it looks to me like there are 16 test failures and they're probably related to us expecting friendly_id to call super

@stale stale Bot removed the stale label Oct 14, 2021
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.

2 participants