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

Chore/ch109279/migrate organization model to activerecord #15884

Conversation

amiedes
Copy link
Contributor

@amiedes amiedes commented Oct 6, 2020

No description provided.

Copy link

@github-actions github-actions bot left a 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

app/models/carto/organization.rb|221 col 9| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|222 col 9| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|223 col 9| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|224 col 9| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|225 col 9| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|226 col 9| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|227 col 9| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|228 col 9| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|229 col 9| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|237 col 27| Metrics/ParameterLists: Avoid parameter lists longer than 5 parameters. [6/5]
app/models/carto/organization.rb|239 col 11| Layout/FirstArgumentIndentation: Indent the first argument one step more than the start of the previous line.
app/models/carto/organization.rb|239 col 11| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|239 col 21| Style/RedundantSelf: Redundant self detected.
app/models/carto/organization.rb|240 col 11| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|241 col 11| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|242 col 11| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|244 col 11| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|245 col 11| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|246 col 11| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|247 col 11| Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
app/models/carto/organization.rb|248 col 7| Layout/ClosingParenthesisIndentation: Indent ) to column 8 (not 6)

CartoDB::SharedEntity.join(:visualizations, id: :entity_id).where(user_id: id)
end

def has_shared_entities?
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Naming/PredicateName: Rename has_shared_entities? to shared_entities?.

def quota_dates(options)
date_to = (options[:to] ? options[:to].to_date : Date.today)
date_from = (options[:from] ? options[:from].to_date : last_billing_cycle)
return date_from, date_to
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Style/RedundantReturn: Redundant return detected. To return multiple values, use an array.

@@ -135,6 +184,70 @@ def remaining_obs_general_quota(options = {})
(remaining > 0 ? remaining : 0)
end

def to_poro
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Metrics/AbcSize: Assignment Branch Condition size for to_poro is too high. [<2, 58, 9> 58.73/30]

@@ -135,6 +184,70 @@ def remaining_obs_general_quota(options = {})
(remaining > 0 ? remaining : 0)
end

def to_poro
{
created_at: created_at,
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

def to_poro
{
created_at: created_at,
description: description,
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

obs_snapshot_quota: obs_snapshot_quota,
obs_snapshot_block_price: obs_snapshot_block_price,
obs_general_quota: obs_general_quota,
obs_general_block_price: obs_general_block_price,
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

obs_snapshot_block_price: obs_snapshot_block_price,
obs_general_quota: obs_general_quota,
obs_general_block_price: obs_general_block_price,
geocoder_provider: geocoder_provider,
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

obs_general_quota: obs_general_quota,
obs_general_block_price: obs_general_block_price,
geocoder_provider: geocoder_provider,
isolines_provider: isolines_provider,
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

obs_general_block_price: obs_general_block_price,
geocoder_provider: geocoder_provider,
isolines_provider: isolines_provider,
routing_provider: routing_provider,
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

geocoder_provider: geocoder_provider,
isolines_provider: isolines_provider,
routing_provider: routing_provider,
mapzen_routing_quota: mapzen_routing_quota,
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

routing_provider: routing_provider,
mapzen_routing_quota: mapzen_routing_quota,
mapzen_routing_block_price: mapzen_routing_block_price,
seats: seats,
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

mapzen_routing_quota: mapzen_routing_quota,
mapzen_routing_block_price: mapzen_routing_block_price,
seats: seats,
twitter_username: twitter_username,
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

mapzen_routing_block_price: mapzen_routing_block_price,
seats: seats,
twitter_username: twitter_username,
location: twitter_username,
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

seats: seats,
twitter_username: twitter_username,
location: twitter_username,
updated_at: updated_at,
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

twitter_username: twitter_username,
location: twitter_username,
updated_at: updated_at,
website: website,
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

privacy: CartoDB::Visualization::Member::PRIVACY_PUBLIC,
page: page_num,
per_page: items_per_page,
tags: tags,
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

page: page_num,
per_page: items_per_page,
tags: tags,
order: order,
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

per_page: items_per_page,
tags: tags,
order: order,
o: { updated_at: :desc },
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

tags: tags,
order: order,
o: { updated_at: :desc },
version: version
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.

order: order,
o: { updated_at: :desc },
version: version
)
Copy link

Choose a reason for hiding this comment

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

[rubocop] reported by reviewdog 🐶
Layout/ClosingParenthesisIndentation: Indent ) to column 8 (not 6)

@amiedes amiedes force-pushed the chore/ch109279/migrate-organization-model-to-activerecord branch 2 times, most recently from 58bd593 to be40869 Compare October 26, 2020 09:16
@amiedes amiedes force-pushed the chore/ch109279/migrate-organization-model-to-activerecord branch 5 times, most recently from 936dfff to 4276c05 Compare November 4, 2020 10:34
@amiedes amiedes force-pushed the chore/ch109279/migrate-organization-model-to-activerecord branch from 4276c05 to 646eb2c Compare November 4, 2020 11:00
@amiedes amiedes closed this Nov 4, 2020
@thedae thedae mentioned this pull request Nov 6, 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.

None yet

1 participant