-
Notifications
You must be signed in to change notification settings - Fork 63
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
Changes needed for openshift graph refresh #57
Conversation
946bb5f
to
f268f30
Compare
Yay, ManageIQ/manageiq-providers-openshift#34 now passes all tests with this :-) |
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.
Awesome, it works for me. 👍
I had to do few minor fixes, that I've seen because I have DB unique constraints. But we can add those as followups.
My WIP is here #64, need to clean it up
@@ -277,7 +285,7 @@ def get_namespaces_graph(inv) | |||
|
|||
container_project = collection.build(h) | |||
|
|||
get_custom_attributes_graph(container_project, custom_attrs) | |||
get_custom_attributes_graph(container_project, custom_attrs) # TODO: untested |
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.
@cben is this comment still relevant? When do you think this will be tested?
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.
Still relevant, none of our VCR recordings have project labels. (but I'm confident this works)
I didn't bother Erez with adding those while he re-recorded because there are a few more things we have 0 of, I'm still collecting the list...
(an openshift concept but the way the relation goes it belongs with pod handling.)
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.
LGTM
Implemented archiving using
@zakiva can you review, especially the specs refactor? |
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.
@cben spec refactor looks very good!
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.
The new changes look great
Openshift refresh_parser has a setting where it won't fetch image metadata but should not remove previously set metadata, which requires not including these InventoryCollections.
Checked commits cben/manageiq-providers-kubernetes@cb01002~...c15d51f with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
I had to take out image labels & docker_labels collections, will init them conditionally in openshift PR. @moolitayer, @simon3z This is ready. |
Initializing the openshift inv_collections arguably belongs in openshift
repo, but not bothering with move as @agrare has plans to move them both
to core repo.
RFE: https://bugzilla.redhat.com/show_bug.cgi?id=1470021