ManageIQ / inventory_refresh

Apache License 2.0
1 stars 23 forks source link

Rails 6.0 #95

Closed NickLaMuro closed 3 years ago

NickLaMuro commented 3 years ago

Based off the v0.2.z branch, since master is v0.3.z+

Links

agrare commented 3 years ago

cc @slemrmartin

@NickLaMuro once this is passing specs I'm good with this if Martin is good from the topo side. As for MIQ we'll need to backport it to the v2 branch

NickLaMuro commented 3 years ago

@agrare I will look into the failures. That said...

As for MIQ we'll need to backport it to the v2 branch

This PR is already targeting the v0.2.z so it should actually be the reverse that needs to be done.

agrare commented 3 years ago

Gah sorry I missed that this was to the v2 branch I just assumed it was master my mistake

NickLaMuro commented 3 years ago

No worries, I did the same when I originally opened up the fix months ago, so it wasn't a wrong assumption to make, just one that I already have addressed (since it was causing major failures in cross-repo if I hadn't already solved for this).

slemrmartin commented 3 years ago

Hi @agrare yeah this PR won't affect us as it won't be merged to 0.3.z. We'll upgrade Rails probably in the Spring

miq-bot commented 3 years ago

Checked commits https://github.com/NickLaMuro/inventory_refresh/compare/628dfe84dd0ff254b94afe4571337a2d7f4f22f8~...5ce534d526d3b12207bf26e12c38f86186596c7a with ruby 2.6.3, rubocop 0.82.0, haml-lint 0.35.0, and yamllint 10 files checked, 1 offense detected

**

agrare commented 3 years ago

Released v0.2.3 with this change

agrare commented 3 years ago

I should mention I'm very excited about the ability to use this with rails 6 because of the introduction of #upsert which might be able to replace our raw SQL ON CONFLICT UPDATE logic for concurrent safe batch saving.

NickLaMuro commented 3 years ago

@agrare Nice! The cross-repo PR for Rails 6.0 is now running with all of these newly released gems:

https://github.com/ManageIQ/manageiq-cross_repo-tests/pull/179

I think those were the last hold out for merging them into master... 🤞