Conversation
0714fd2 to
775b781
Compare
kbighorse
left a comment
There was a problem hiding this comment.
So great to get rid of that base class, well-done!
[issue] Can we revert uses of Proofing::LexisNexis::Ddp::Result and Proofing::LexisNexis::Ddp::Proofer::Config unless in the DDP context?
There was a problem hiding this comment.
Wasn't this better before?
There was a problem hiding this comment.
I second this question. What was wrong with the ddp-mock-transaction-id-123 value?
There was a problem hiding this comment.
After the refactoring it returns 1234 instead of Proofing::Mock::DdpMockClient::TRANSACTION_ID. Do we know if it should return Proofing::Mock::DdpMockClient::TRANSACTION_ID or some internal request ID that gets created?
There was a problem hiding this comment.
I feel like ideally we would change the source of this data instead of changing this test to match. (I don't think it is worth holding up the PR however.)
There was a problem hiding this comment.
[suggestion] Can we DRY up these stub_request calls?
There was a problem hiding this comment.
[issue] Can we restore Proofing::ResultSpec?
There was a problem hiding this comment.
[suggestion] you might consider the more readable %i notation to generate an array of symbols here
There was a problem hiding this comment.
[suggestion] consider %i
There was a problem hiding this comment.
[suggestion] add an empty line before a return value
There was a problem hiding this comment.
[praise] so great these didn't need any more modification!
|
[issue] I'm noticing that |
|
Approved to unblock merging |
209a25c to
36d2dbc
Compare
changelog: Improvements, Refactoring, Remove proofing::base, Proofing::Result
36d2dbc to
cf5b4f2
Compare
jskinne3
left a comment
There was a problem hiding this comment.
I'm so glad to see app/services/proofing/base.rb removed!
| class DdpMockClient < Proofing::Base | ||
| vendor_name 'DdpMock' | ||
| class DdpMockClient | ||
| class << self |
There was a problem hiding this comment.
Why did vendor_name, required_attributes, optional_attributes, and stage become class methods?
There was a problem hiding this comment.
Since other places rely on DdpMockClient and they currently require them to be class methods, I did not want to mess up the way it accesses them as it is.
There was a problem hiding this comment.
After looking over the old Proofing::Base I mostly understand this now. 👍
There was a problem hiding this comment.
I second this question. What was wrong with the ddp-mock-transaction-id-123 value?
| end | ||
| end |
There was a problem hiding this comment.
this indentation seems wrong. I think it was correct before
| end | |
| end | |
| end | |
| end |
| headers: { | ||
| 'Accept' => '*/*', | ||
| 'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | ||
| 'Authorization' => 'Basic Og==', | ||
| 'Content-Type' => 'application/json', | ||
| 'User-Agent' => 'Faraday v2.6.0', | ||
| }, |
There was a problem hiding this comment.
I think we can do a hash_including here too, user-agent and accept-encoding change often so I'd remove them
| headers: { | |
| 'Accept' => '*/*', | |
| 'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
| 'Authorization' => 'Basic Og==', | |
| 'Content-Type' => 'application/json', | |
| 'User-Agent' => 'Faraday v2.6.0', | |
| }, | |
| headers: hash_including( | |
| 'Authorization' => 'Basic Og==', | |
| 'Content-Type' => 'application/json', | |
| ), |
jskinne3
left a comment
There was a problem hiding this comment.
Approving because none of my questions are worth holding up this badly-needed PR
🎫 Ticket
Link to the relevant ticket.
🛠 Summary of changes
Refactored removing Proofing:::Base