ManageIQ / inventory_refresh

Apache License 2.0
1 stars 23 forks source link

Fixed attributes should contain all NOT NULL columns/relations #87

Closed Ladas closed 5 years ago

Ladas commented 5 years ago

Currently we were just adding columns with presence validation so we need to extend that to include NOT NULL constraints defined in the DB.

Ladas commented 5 years ago

@agrare I'd need this released for the Tower workflow structure (there is saving of cycle that was failing because of this)

miq-bot commented 5 years ago

Checked commit https://github.com/Ladas/inventory_refresh/commit/568c167dd862f9350470d19251d599dcfd88016a with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 2 files checked, 5 offenses detected

lib/inventory_refresh/inventory_collection.rb

spec/save_inventory/single_inventory_collection_spec.rb

lpichler commented 4 years ago

@agrare can we create new release with this PR ?

When I was collecting new join table(service_instance_service_credential) between service_instances and service_offerings
I got this error: https://pastebin.com/p6yu2AVy

Issue is that source_id is missing in AS updated_values ( statement.

Screenshot 2020-02-06 at 16 13 36

Using version 0.3.1 did not help but with this PR it is working.

thanks!

agrare commented 4 years ago

:+1: yes I'll release one now

agrare commented 4 years ago

Released https://rubygems.org/gems/inventory_refresh/versions/0.3.2

lpichler commented 4 years ago

🚀 🏎 thanks @agrare it was super fast 🏎 🚀