-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: revert refactoring #15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
rubocop
📝 [rubocop] <Layout/SpaceAroundOperators> reported by reviewdog 🐶
Surrounding space missing for operator =>
.
"birthdates" => [{"day"=>17, "year"=>1951, "month"=>2}], |
📝 [rubocop] <Layout/SpaceInsideHashLiteralBraces> reported by reviewdog 🐶
Space inside } missing.
"birthdates" => [{"day"=>17, "year"=>1951, "month"=>2}], |
📝 [rubocop] <Layout/SpaceInsideHashLiteralBraces> reported by reviewdog 🐶
Space inside { missing.
"primary_name" => {"name_type" => "PRIMARY", "first_name" => "Maria Remedios", "last_name" => "Garcia Albert"}, |
📝 [rubocop] <Layout/SpaceInsideHashLiteralBraces> reported by reviewdog 🐶
Space inside } missing.
"primary_name" => {"name_type" => "PRIMARY", "first_name" => "Maria Remedios", "last_name" => "Garcia Albert"}, |
📝 [rubocop] <Layout/LineLength> reported by reviewdog 🐶
Line is too long. [135/128]
expect(result["data"][0]["attributes"]["matches"][0]["match_invalid_reason"]).to eq "Match excluded by filter: year_of_birth" |
📝 [rubocop] <Layout/SpaceInsideHashLiteralBraces> reported by reviewdog 🐶
Space inside { missing.
expect(res["data"]["attributes"]["current_state"]).to eq({"timestamp"=>"2022-06-21T10:04:37.645", "comment"=>"False positive", "state"=>"CLEARED", "risk_rating"=>1}) |
📝 [rubocop] <Layout/SpaceAroundOperators> reported by reviewdog 🐶
Surrounding space missing for operator =>
.
expect(res["data"]["attributes"]["current_state"]).to eq({"timestamp"=>"2022-06-21T10:04:37.645", "comment"=>"False positive", "state"=>"CLEARED", "risk_rating"=>1}) |
📝 [rubocop] <Layout/SpaceAroundOperators> reported by reviewdog 🐶
Surrounding space missing for operator =>
.
expect(res["data"]["attributes"]["current_state"]).to eq({"timestamp"=>"2022-06-21T10:04:37.645", "comment"=>"False positive", "state"=>"CLEARED", "risk_rating"=>1}) |
📝 [rubocop] <Layout/LineLength> reported by reviewdog 🐶
Line is too long. [173/128]
expect(res["data"]["attributes"]["current_state"]).to eq({"timestamp"=>"2022-06-21T10:04:37.645", "comment"=>"False positive", "state"=>"CLEARED", "risk_rating"=>1}) |
📝 [rubocop] <Layout/SpaceAroundOperators> reported by reviewdog 🐶
Surrounding space missing for operator =>
.
expect(res["data"]["attributes"]["current_state"]).to eq({"timestamp"=>"2022-06-21T10:04:37.645", "comment"=>"False positive", "state"=>"CLEARED", "risk_rating"=>1}) |
📝 [rubocop] <Layout/SpaceAroundOperators> reported by reviewdog 🐶
Surrounding space missing for operator =>
.
expect(res["data"]["attributes"]["current_state"]).to eq({"timestamp"=>"2022-06-21T10:04:37.645", "comment"=>"False positive", "state"=>"CLEARED", "risk_rating"=>1}) |
📝 [rubocop] <Layout/SpaceInsideHashLiteralBraces> reported by reviewdog 🐶
Space inside } missing.
expect(res["data"]["attributes"]["current_state"]).to eq({"timestamp"=>"2022-06-21T10:04:37.645", "comment"=>"False positive", "state"=>"CLEARED", "risk_rating"=>1}) |
📝 [rubocop] <Layout/LineLength> reported by reviewdog 🐶
Line is too long. [145/128]
c.filter_sensitive_data("<SECRET_USERNAME>") { URI.encode_www_form_component(Factiva.configuration(Factiva::MONITORING_API_ACCOUNT).username) } |
|
||
REQUEST_API_ACCOUNT = "request_api_account" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/EmptyLinesAroundModuleBody> reported by reviewdog 🐶
Extra empty line detected at module body beginning.
REQUEST_API_ACCOUNT = "request_api_account" | |
REQUEST_API_ACCOUNT = "request_api_account" |
@stubbed_create_case = stubbed_create_case | ||
@stubbed_create_association = stubbed_create_association | ||
@stubbed_add_association_to_case = stubbed_add_association_to_case | ||
@stubbed_create_case = stubbed_create_case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/SpaceAroundOperators> reported by reviewdog 🐶
Operator =
should be surrounded by a single space.
@stubbed_create_case = stubbed_create_case | |
@stubbed_create_case = stubbed_create_case |
@stubbed_create_association = stubbed_create_association | ||
@stubbed_add_association_to_case = stubbed_add_association_to_case | ||
@stubbed_create_case = stubbed_create_case | ||
@stubbed_create_association = stubbed_create_association |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/SpaceAroundOperators> reported by reviewdog 🐶
Operator =
should be surrounded by a single space.
@stubbed_create_association = stubbed_create_association | |
@stubbed_create_association = stubbed_create_association |
@stubbed_add_association_to_case = stubbed_add_association_to_case | ||
@stubbed_create_case = stubbed_create_case | ||
@stubbed_create_association = stubbed_create_association | ||
@stubbed_add_association_to_case = stubbed_add_association_to_case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/SpaceAroundOperators> reported by reviewdog 🐶
Operator =
should be surrounded by a single space.
@stubbed_add_association_to_case = stubbed_add_association_to_case | |
@stubbed_add_association_to_case = stubbed_add_association_to_case |
end | ||
|
||
def create_association(first_name:, last_name:, birth_year:, external_id:, nin:, country_code:) | ||
params = { json: association_body( | ||
first_name, | ||
first_name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/FirstArgumentIndentation> reported by reviewdog 🐶
Indent the first argument one step more than the start of the previous line.
first_name, | |
first_name, |
@@ -143,21 +143,20 @@ | |||
"icon_hints" => ["SAN-PERSON", "SI-PERSON"], | |||
"primary_country" => "SPAIN", | |||
"is_score_boosted" => false, | |||
"current_state" => { "timestamp" => "2022-06-22T07:41:54", "state" => "OPEN" }, | |||
"birthdates" => [{ "day" => 17, "year" => 1951, "month" => 2 }], | |||
"current_state" => {"timestamp" => "2022-06-22T07:41:54", "state" => "OPEN"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/SpaceInsideHashLiteralBraces> reported by reviewdog 🐶
Space inside { missing.
"current_state" => {"timestamp" => "2022-06-22T07:41:54", "state" => "OPEN"}, | |
"current_state" => { "timestamp" => "2022-06-22T07:41:54", "state" => "OPEN"}, |
@@ -143,21 +143,20 @@ | |||
"icon_hints" => ["SAN-PERSON", "SI-PERSON"], | |||
"primary_country" => "SPAIN", | |||
"is_score_boosted" => false, | |||
"current_state" => { "timestamp" => "2022-06-22T07:41:54", "state" => "OPEN" }, | |||
"birthdates" => [{ "day" => 17, "year" => 1951, "month" => 2 }], | |||
"current_state" => {"timestamp" => "2022-06-22T07:41:54", "state" => "OPEN"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/SpaceInsideHashLiteralBraces> reported by reviewdog 🐶
Space inside } missing.
"current_state" => {"timestamp" => "2022-06-22T07:41:54", "state" => "OPEN"}, | |
"current_state" => {"timestamp" => "2022-06-22T07:41:54", "state" => "OPEN" }, |
"current_state" => { "timestamp" => "2022-06-22T07:41:54", "state" => "OPEN" }, | ||
"birthdates" => [{ "day" => 17, "year" => 1951, "month" => 2 }], | ||
"current_state" => {"timestamp" => "2022-06-22T07:41:54", "state" => "OPEN"}, | ||
"birthdates" => [{"day"=>17, "year"=>1951, "month"=>2}], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/SpaceInsideHashLiteralBraces> reported by reviewdog 🐶
Space inside { missing.
"birthdates" => [{"day"=>17, "year"=>1951, "month"=>2}], | |
"birthdates" => [{ "day"=>17, "year"=>1951, "month"=>2}], |
"current_state" => { "timestamp" => "2022-06-22T07:41:54", "state" => "OPEN" }, | ||
"birthdates" => [{ "day" => 17, "year" => 1951, "month" => 2 }], | ||
"current_state" => {"timestamp" => "2022-06-22T07:41:54", "state" => "OPEN"}, | ||
"birthdates" => [{"day"=>17, "year"=>1951, "month"=>2}], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/SpaceAroundOperators> reported by reviewdog 🐶
Surrounding space missing for operator =>
.
"birthdates" => [{"day"=>17, "year"=>1951, "month"=>2}], | |
"birthdates" => [{"day" => 17, "year"=>1951, "month"=>2}], |
"current_state" => { "timestamp" => "2022-06-22T07:41:54", "state" => "OPEN" }, | ||
"birthdates" => [{ "day" => 17, "year" => 1951, "month" => 2 }], | ||
"current_state" => {"timestamp" => "2022-06-22T07:41:54", "state" => "OPEN"}, | ||
"birthdates" => [{"day"=>17, "year"=>1951, "month"=>2}], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/SpaceAroundOperators> reported by reviewdog 🐶
Surrounding space missing for operator =>
.
"birthdates" => [{"day"=>17, "year"=>1951, "month"=>2}], | |
"birthdates" => [{"day"=>17, "year" => 1951, "month"=>2}], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/ClassStructure> reported by reviewdog 🐶constants
is supposed to appear before public_attribute_macros
.
factiva-api-client/lib/factiva/monitoring.rb
Lines 12 to 17 in e3375e7
COUNTRY_IDS = { | |
"ES" => "SPAIN", | |
"FR" => "FRA", | |
"IT" => "ITALY", | |
"PT" => "PORL", | |
}.freeze |
What is the goal?
Reverts Factiva client refactoring #13
How is it being implemented?
Reverting commits
How is it tested?
Automatic tests
How is it going to be deployed?
Standard deployment