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
Rails 5 upgrade #5982
Rails 5 upgrade #5982
Conversation
<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush. |
@@ -1,7 +1,7 @@ | |||
class CimBaseStorageExtent < ActsAsArModel | |||
set_columns_hash(CimStorageExtent.columns_hash.keys.each_with_object({}) { |c, h| h[c.to_sym] = CimStorageExtent.columns_hash[c].type }) | |||
|
|||
def self._virtual_colums_hash | |||
def self._virtual_columns_hash |
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.
LOL
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.
I guess this code isn't being used 😉
Awesome work @matthewd ! Can any of this be extracted and used ahead of time ni the Rails 4 code base? I'm looking at things like the cc @tenderlove |
69e2a19
to
8e4f313
Compare
Yeah.. I'll plan to extract a couple (like the helpers) which seem conflict-prone to keep separate. For most, even if they're 4.2-compatible, it shouldn't matter once I tame VirtualColumn and get this green. |
@@ -4,8 +4,9 @@ eval_gemfile(File.expand_path("gems/pending/Gemfile", __dir__)) | |||
# VMDB specific gems | |||
# | |||
|
|||
gem "activerecord-deprecated_finders", "~>1.0.4", :require => "active_record/deprecated_finders" | |||
gem "rails", "~>4.2.5" | |||
gem "rails", :git => "git://github.com/matthewd/rails.git", :branch => "actioncontroller-hax" |
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.
😨 Seems like a legit branch 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.
@@ -4,8 +4,9 @@ eval_gemfile(File.expand_path("gems/pending/Gemfile", __dir__)) | |||
# VMDB specific gems | |||
# | |||
|
|||
gem "activerecord-deprecated_finders", "~>1.0.4", :require => "active_record/deprecated_finders" |
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.
Please tell me this is gone for real. 😍
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.
I'm not sure I want deprecated_finders gone yet.
Is there a way we can bring these in for automate?
Or do we have a different plan?
end | ||
scope.where(cond_for_count).includes(includes).references(includes).count | ||
if conditions && extra_target_ids | ||
scope = scope.where(conditions).or(scope.where(:id => extra_target_ids)) |
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.
👏
I'd love to kill it off and switch to nice relations everwhere, but we're just not close enough to pull that off at the moment: e.g., these values get stored in the session.
ad98650
to
2623547
Compare
In passing, set fixture_path, so we can use relative paths.
.. but it's not released yet, so we have to pull all its parts from git.
In the process, instead of maintaining a direct dependency on our method, pass the sequence range to rubyrep via config.
I'll clean them up, but at the moment, they're just overwhelming.
.. and remove some things for now
<github_pr_commenter_batch />Some comments on commits matthewd/manageiq@005f257~...9629756 |
Checked commits matthewd/manageiq@005f257~...9629756 with ruby 2.2.3, rubocop 0.34.2, and haml-lint 0.13.0 Gemfile
app/controllers/application_controller.rb
app/controllers/container_controller.rb
app/controllers/mixins/vm_show_mixin.rb
app/controllers/provider_foreman_controller.rb
app/controllers/service_controller.rb
app/models/ems_refresh/save_inventory_helper.rb
app/models/miq_expression.rb
app/models/miq_report/generator.rb
app/models/mixins/reserved_mixin.rb
app/models/vim_usage.rb
app/presenters/explorer_presenter.rb
config/environments/test.rb
lib/acts_as_ar_model.rb
lib/extensions/ar_adapter/ar_dba/postgresql.rb
lib/extensions/ar_virtual.rb
spec/controllers/catalog_controller_spec.rb
spec/controllers/miq_policy_controller_spec.rb
spec/lib/extensions/ar_to_model_hash_spec.rb
spec/lib/extensions/ar_virtual_spec.rb
spec/models/vmdb_database_spec.rb
|
klass.predicate_builder.build_from_hash(cond).map { |b| | ||
klass.connection.visitor.compile b | ||
}.join(' AND ') | ||
end |
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.
this is a nice compromise. this will help for now.
🎉 🎉 🎉 |
No description provided.