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

Fixes #38107 - Booted container images page #11269

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

ianballou
Copy link
Member

What are the changes introduced in this pull request?

Adds the "Booted container images" page. In the future it'll likely change to be the "Containers" page and merge with the new container images UI.

Within the page, there is a table that shows an overview of booted container images used by bootc hosts. The table shows the image name, number of digests within, and the number of hosts using that container image:

image

The last functionality-TODO is to make the rows expand and show the actual digests within. I also need to write tests.

Considerations taken when implementing this change?

I decided to use the newer TableIndexPage from Foreman since it's the new goodness.

This PR is built on top of #11257.

What are the testing steps for this pull request?

  1. Create hosts that have bootc attributes, ideally enough to test the counting and pagination
  2. Try everything the new page has to offer, including the hyperlinks

@ianballou
Copy link
Member Author

It looks like I can't use the Foreman React Table component due to the expandable rows. That component sticks children inside a Tbody, but I need to create one Tbody elements for each expandable row.

Tbody elements cannot go inside another Tbody.

@ianballou ianballou marked this pull request as draft December 20, 2024 15:08
@ianballou ianballou force-pushed the 38107-bootc-images-page branch from ef686fc to d861aea Compare December 20, 2024 18:05
const BootedContainerImagesPage = () => {
const columns = {
image_name: {
title: __('Image name'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change this to Bootc - booted image name so it's also easier to figure out the serach query?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed all of the references to image_name to bootc_booted_image like in the API.

@sjha4
Copy link
Member

sjha4 commented Dec 20, 2024

So we don't forget after the break, the bookmarks controller needs some love on the page to work..

@ianballou ianballou force-pushed the 38107-bootc-images-page branch 2 times, most recently from b61d868 to 85536ed Compare December 23, 2024 15:55
@ianballou ianballou force-pushed the 38107-bootc-images-page branch from 85536ed to 7ac103d Compare December 23, 2024 16:54
@ianballou
Copy link
Member Author

Sorting support is in!

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

Successfully merging this pull request may close these issues.

2 participants