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

Remove ContainerGroup#old_container_project_id #22610

Merged
merged 4 commits into from
Jul 13, 2023

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Jul 10, 2023

We use deleted_on to represent a record that is deleted. We moved over to using archived (deleted_on) from old_container_project_id

see also:

@kbrock kbrock force-pushed the drop_old_container_project branch from 919340d to aa735cc Compare July 11, 2023 15:24
We use deleted_on to represent a record that is deleted.
We moved over to using archived (deleted_on) from old_container_project_id
Convert all_container_groups to a regular association

see also:
- f6fe251
- ManageIQ#16302
@kbrock kbrock force-pushed the drop_old_container_project branch from aa735cc to 7201ab4 Compare July 11, 2023 15:31
@kbrock
Copy link
Member Author

kbrock commented Jul 11, 2023

update:

  • fixed missing paren in spec
  • added inverse_of for basic associations
  • changed ems classname to ContainerManager (so we could assign inverse_of)
  • fixed rubocops (a freeze and a guard clause)

update:

  • split the rubocop changes into own commit (no code change)

when fetching container groups from a container_project, it was not assigning the reverse association
added `inverse_of` to get them assigned (and avoid N+1)

changed ext_management_system class to one that had the `container_projects` reference
@kbrock kbrock force-pushed the drop_old_container_project branch from 7201ab4 to 5ebb1ed Compare July 11, 2023 16:44
@kbrock
Copy link
Member Author

kbrock commented Jul 11, 2023

update:

  • namespaced ContainerManager

@miq-bot
Copy link
Member

miq-bot commented Jul 11, 2023

Checked commits kbrock/manageiq@eacae91~...171bace with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
7 files checked, 5 offenses detected

app/models/container_project.rb

@kbrock
Copy link
Member Author

kbrock commented Jul 11, 2023

update:

  • changed container specs to link container projects to container ems (was pointing container project to vmware)

@agrare agrare merged commit dbad20a into ManageIQ:master Jul 13, 2023
9 checks passed
@kbrock kbrock deleted the drop_old_container_project branch July 14, 2023 18:55
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