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

HaveSecureTokenMatcher: optional argument to ignore db index check #1278

Merged

Conversation

nikosmichas
Copy link
Contributor

Fixes #1277

has_secure_token encourages to use an index but does not enforce it.

This PR makes the check has_expected_db_index? optional.
The default behavior is not changed.

Copy link
Collaborator

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Hey, thanks for the PR! Approach looks sound here, I just left a comment on how we typically adjust the API to accommodate these kinds of customizations.

@nikosmichas nikosmichas force-pushed the has_secure_token_matcher_optional_param branch from da25e61 to 1fb1433 Compare February 24, 2020 08:36
@mcmire mcmire self-assigned this Feb 25, 2020
Copy link
Collaborator

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Sorry for the delay on this. Looks great. Thanks so much!

@mcmire mcmire merged commit 81b9ec0 into thoughtbot:master Mar 20, 2020
@mcmire mcmire mentioned this pull request Jul 25, 2020
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.

Make has_expected_db_index? check optional on HaveSecureTokenMatcher
2 participants