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

fix(ui): name, location, platform, image, launch time of assets #791

Merged
merged 5 commits into from
Oct 16, 2023

Conversation

gallotamas
Copy link
Contributor

@gallotamas gallotamas commented Oct 13, 2023

Description

Name, location, platform, image and launch time was wrong for ContainerImageInfo and ContainerInfo assets. This PR is fixing them.

Related issue: #763

Screenshots:

  • ContainerInfo
image
  • ContainerImageInfo
image

Type of Change

[x] Bug Fix
[ ] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@gallotamas gallotamas requested a review from a team as a code owner October 13, 2023 12:15
@github-actions

This comment has been minimized.

chrisgacsal
chrisgacsal previously approved these changes Oct 13, 2023
Copy link
Contributor

@chrisgacsal chrisgacsal left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks for fixing it! :shipit:

paralta
paralta previously approved these changes Oct 13, 2023
@chrisgacsal chrisgacsal changed the title Fix name and location of assets on the UI fix(ui): name and location of assets on the UI Oct 13, 2023
@chrisgacsal chrisgacsal changed the title fix(ui): name and location of assets on the UI fix(ui): name and location of assets Oct 13, 2023
@gallotamas gallotamas dismissed stale reviews from paralta and chrisgacsal via b68ba1e October 13, 2023 14:43
@gallotamas gallotamas changed the title fix(ui): name and location of assets fix(ui): name, platform, image, launch time of assets Oct 13, 2023
@gallotamas gallotamas changed the title fix(ui): name, platform, image, launch time of assets fix(ui): name, location, platform, image, launch time of assets Oct 13, 2023
@github-actions

This comment has been minimized.

@github-actions
Copy link

Hey!

Your images are ready:

  • ghcr.io/openclarity/vmclarity-apiserver-dev:pr791-bcf47a20db7a4ba9c4359612ebac1b94f77e9aff
  • ghcr.io/openclarity/vmclarity-orchestrator-dev:pr791-bcf47a20db7a4ba9c4359612ebac1b94f77e9aff
  • ghcr.io/openclarity/vmclarity-ui-backend-dev:pr791-bcf47a20db7a4ba9c4359612ebac1b94f77e9aff
  • ghcr.io/openclarity/vmclarity-ui-dev:pr791-bcf47a20db7a4ba9c4359612ebac1b94f77e9aff
  • ghcr.io/openclarity/vmclarity-cli-dev:pr791-bcf47a20db7a4ba9c4359612ebac1b94f77e9aff

Copy link
Contributor

@chrisgacsal chrisgacsal left a comment

Choose a reason for hiding this comment

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

Thanks @gallotamas for the fixes! LGTM! :shipit:

@chrisgacsal
Copy link
Contributor

@Tehsmash Could you please take another look on this one?

@Tehsmash
Copy link
Contributor

This might be out of scope for this PR, but looking at the screenshots shared in the description I'm not sure at this is solving the UX issue that we have. It feels like we're trying to squash all the container and container image specific information into the fields that are specific to the VM asset type. For example why does Container Image Info have an "IMAGE" field...

It feels to me like the page needs to adapt to the type of asset that its displaying, and output the common fields "Type", "First Seen", "Last Seen", "Terminated On" first. Then have an Asset Info section which includes:

  • for VMs, we should use the existing fields although Name should be renamed "Instance ID".
  • for Container Image assets we should show ImageID, RepoTags and Digests, Architechture, OS, Size.
  • for Containers it should have "Labels", "Container Name", "Container ID" + Container Image Info like above.

@chrisgacsal
Copy link
Contributor

This might be out of scope for this PR, but looking at the screenshots shared in the description I'm not sure at this is solving the UX issue that we have. It feels like we're trying to squash all the container and container image specific information into the fields that are specific to the VM asset type. For example why does Container Image Info have an "IMAGE" field...

It feels to me like the page needs to adapt to the type of asset that its displaying, and output the common fields "Type", "First Seen", "Last Seen", "Terminated On" first. Then have an Asset Info section which includes:

* for VMs, we should use the existing fields although Name should be renamed "Instance ID".

* for Container Image assets we should show ImageID, RepoTags and Digests, Architechture, OS, Size.

* for Containers it should have "Labels", "Container Name", "Container ID" + Container Image Info like above.

Yeah, I've discussed this with @gallotamas last week. The main goal here was to fix what is broken. The presentation layer needs a refactor which will include the rework of the details page for assets based on their types.

But this is definitely out of scope for this PR.

@Tehsmash

@Tehsmash
Copy link
Contributor

Yeah, I've discussed this with @gallotamas last week. The main goal here was to fix what is broken. The presentation layer needs a refactor which will include the rework of the details page for assets based on their types.

But this is definitely out of scope for this PR.

@Tehsmash

OK cool as long as we know because honestly these screens make little to no sense right now

@misi-bp
Copy link

misi-bp commented Oct 16, 2023

Yes, @gallotamas showed me the different data objects of types in the openapi.yaml file. This is not just out of scope; unfortunately, much longer work is required to fix it.

@Tehsmash
Copy link
Contributor

Tehsmash commented Oct 16, 2023

Yes, @gallotamas showed me the different data objects of types in the openapi.yaml file. This is not just out of scope; unfortunately, much longer work is required to fix it.

fixing it properly maybe, but javascript supports If assetInfo.objectType == "ContainerImageInfo" { return one set of HTML} else { return other set of HTML }

@akpsgit akpsgit added this to the v0.6.0 milestone Oct 16, 2023
@paralta paralta added this pull request to the merge queue Oct 16, 2023
Merged via the queue into main with commit 8f57a66 Oct 16, 2023
34 checks passed
@paralta paralta deleted the fix-asset-fields branch October 16, 2023 10:32
@gallotamas gallotamas linked an issue Oct 30, 2023 that may be closed by this pull request
@chrisgacsal chrisgacsal mentioned this pull request Nov 6, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Docker provider - UI doesn't show assets info
6 participants