Conversation
bennettgo
left a comment
There was a problem hiding this comment.
some hound violations! But looks good
| 'in <span class="provider">BuildingConnected</span>', | ||
| help: "Retrieve a list of your company's contacts", | ||
|
|
||
| input_fields: lambda do |_object_definitions| |
There was a problem hiding this comment.
Metrics/BlockLength: Block has too many lines. [40/25]
| case input['verb'] | ||
| when 'get' | ||
| response = get(input['path'], data) | ||
| .after_error_response(/.*/) do |_code, body, _header, message| |
There was a problem hiding this comment.
Metrics/LineLength: Line is too long. [83/80]
| object_definitions['custom_action_input'] | ||
| end, | ||
|
|
||
| execute: lambda do |_connection, input| |
There was a problem hiding this comment.
Metrics/BlockLength: Block has too many lines. [35/25]
| { | ||
| events: response['results'] || [], | ||
| next_poll: closure, | ||
| can_poll_more: response['results'].length > 0 |
There was a problem hiding this comment.
Style/NumericPredicate: Use response['results'].length.positive? instead of response['results'].length > 0.
Style/ZeroLengthPredicate: Use !empty? instead of length > 0.
| .params(updatedAfter: updatedAfter) | ||
| end | ||
|
|
||
| closure = if response['results'].length > 0 |
There was a problem hiding this comment.
Style/NumericPredicate: Use response['results'].length.positive? instead of response['results'].length > 0.
Style/ZeroLengthPredicate: Use !empty? instead of length > 0.
| optional: false, | ||
| control_type: :select, | ||
| pick_list: [ | ||
| ['Production', 'app'], |
There was a problem hiding this comment.
Style/WordArray: Use %w or %W for an array of words.
| @@ -0,0 +1,1082 @@ | |||
| { | |||
There was a problem hiding this comment.
Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.
| }, | ||
|
|
||
| qualification_submission: { | ||
| fields: lambda do |_connection| |
There was a problem hiding this comment.
Metrics/BlockLength: Block has too many lines. [142/25]
| }, | ||
|
|
||
| qualification_form: { | ||
| fields: lambda do |_connection| |
There was a problem hiding this comment.
Metrics/BlockLength: Block has too many lines. [35/25]
| }, | ||
|
|
||
| submission: { | ||
| fields: lambda do |_connection| |
There was a problem hiding this comment.
Metrics/BlockLength: Block has too many lines. [31/25]
|
@bennettgo most of the hound violations have been fixed, although there's still a few regarding too many lines in a block. not sure how you want those resolved. |
|
@bennettgo i've added a commit (343a7b9) that resolves the issue with authentication |
This is the connector for BuildingConnected based on their API: https://app.buildingconnected.com/docs/