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

Refactor proofing_components in AnalyticsSpec #10810

Merged
merged 4 commits into from
Jun 13, 2024
Merged

Conversation

n1zyy
Copy link
Member

@n1zyy n1zyy commented Jun 12, 2024

🎫 Ticket

No ticket asks for this, but it's done in service of 13120 (and the common good).

🛠 Summary of changes

A change I'm making in 13120 (trying to avoid it autolinking to the LG) requires adding a new parameter to proofing_components, and changing it in a bajillion places is 😡 not fun.

To avoid a wild diff in that PR, I'm putting this up in isolation.

let(:base_proofing_components) do
# rubocop:disable Layout/LineLength
{ document_check: 'mock', document_type: 'state_id', source_check: 'aamva', resolution_check: 'lexis_nexis', threatmetrix: threatmetrix, threatmetrix_review_status: 'pass' }
# rubocop:enable Layout/LineLength
Copy link
Member Author

Choose a reason for hiding this comment

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

I'd just as soon not disable the LineLength linter, but that's the style in this file, Kyle.

Copy link
Contributor

Choose a reason for hiding this comment

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

seems like this part could benefit from being broken out onto separate lines?

Copy link
Member Author

Choose a reason for hiding this comment

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

Woot, that was actually my preference but I had my silly rhyme about that being the norm in this file. There's no reason to keep it that way, so update incoming.

# rubocop:enable Layout/LineLength
end
let(:lexis_nexis_address_proofing_components) do
base_proofing_components.merge(address_check: 'lexis_nexis_address')
Copy link
Member Author

Choose a reason for hiding this comment

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

I thought this was more expressive than repeating the whole thing, even if it's probably a few CPU cycles slower.

@n1zyy n1zyy requested a review from a team June 12, 2024 22:52
@n1zyy n1zyy merged commit 41d854a into main Jun 13, 2024
2 checks passed
@n1zyy n1zyy deleted the mattw/analytics_spec_refactor branch June 13, 2024 15:37
brandemix pushed a commit to brandemix/18F-identity-idp that referenced this pull request Jun 17, 2024
changelog: Internal, Tests, Small refactor to AnalyticsSpec
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.

2 participants