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

[WIP] Use auto-model-class for ContainerImages #21828

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agrare
Copy link
Member

@agrare agrare commented Apr 20, 2022

Having the :model_class set to ::ContainerImage meant that auto_model_class was not being called, causing any records which did not have a :type explicitly set by the parser would end up having a type set to the base ::ContainerImage class.

In the case of openshift, only images from an image registry had their :type set to ManageIQ::Providers::Openshift::ContainerManager::ContainerImage

This will require a data migration and likely changes to the Kubernetes provider because it doesn't appear that they have a subclass for this

Cross-repo Tests: ManageIQ/manageiq-cross_repo-tests#632

Follow-up PRs:

#21825

@agrare
Copy link
Member Author

agrare commented Apr 20, 2022

@miq-bot cross-repo-tests manageiq-providers-openshift manageiq-providers-kubernetes

miq-bot pushed a commit to ManageIQ/manageiq-cross_repo-tests that referenced this pull request Apr 20, 2022
@agrare agrare force-pushed the fix_docker_images_nil_type branch from 20a984a to 982a190 Compare April 20, 2022 16:49
@agrare agrare changed the title Use auto-model-class for ContainerImages [WIP] Use auto-model-class for ContainerImages Apr 20, 2022
@agrare
Copy link
Member Author

agrare commented Apr 20, 2022

Marking WIP until the kubernetes and openshift PRs are up

@miq-bot miq-bot added the wip label Apr 20, 2022
@Fryguy
Copy link
Member

Fryguy commented Apr 20, 2022

Good find.

agrare added a commit to ManageIQ/manageiq-cross_repo-tests that referenced this pull request Apr 21, 2022
Having the `:model_class` set to `::ContainerImage` meant that
auto_model_class was not being called, causing any records which did not
have a `:type` explicitly set by the parser would end up having a type
set to the base `::ContainerImage` class.
@miq-bot
Copy link
Member

miq-bot commented Feb 27, 2023

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s)

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@miq-bot miq-bot closed this May 29, 2023
@miq-bot
Copy link
Member

miq-bot commented May 29, 2023

This pull request has been automatically closed because it has not been updated for at least 3 months.

Feel free to reopen this pull request if these changes are still valid.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@agrare agrare removed the stale label Jun 30, 2023
@agrare agrare reopened this Jun 30, 2023
@miq-bot
Copy link
Member

miq-bot commented Jun 30, 2023

Checked commit agrare@e46eea8 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@kbrock
Copy link
Member

kbrock commented Aug 28, 2023

Marking WIP until the kubernetes and openshift PRs are up
these have been posted. Can this be marked un-WIP?

@miq-bot
Copy link
Member

miq-bot commented Aug 30, 2023

This pull request is not mergeable. Please rebase and repush.

@miq-bot
Copy link
Member

miq-bot commented Dec 11, 2023

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

3 similar comments
@miq-bot
Copy link
Member

miq-bot commented Mar 18, 2024

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

@miq-bot
Copy link
Member

miq-bot commented Jun 24, 2024

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

@miq-bot
Copy link
Member

miq-bot commented Sep 30, 2024

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants