backend.ai-webui icon indicating copy to clipboard operation
backend.ai-webui copied to clipboard

refactor: Show as many agent IDs as the number of agents.

Open agatha197 opened this issue 1 year ago • 2 comments

TL;DR

Added functionality to display agent IDs alongside their corresponding truncated container IDs for superadmin users in the session list.

What changed?

  • Modified backend-ai-session-list.ts to include a new field agents_ids_with_container_ids that concatenates agent IDs with truncated container IDs and displays them in a preformatted text block for superadmin users.

How to test?

  1. Log in as a superadmin user.
  2. Navigate to the session list page.
  3. Verify that the agents_ids_with_container_ids field is visible and displays the agent IDs with truncated container IDs.

Why make this change?

This change enhances the visibility of agent-to-container mappings for superadmin users, providing more concise yet complete information in the session list.

Screenshots

Before: Show unique agent ID even though user made multi-node session. image.png

After: Show all agent IDs with ellipsized container ID. image.png


Checklist: (if applicable)

  • [ ] Mention to the original issue
  • [ ] Documentation
  • [ ] Minium required manager version
  • [ ] Specific setting for review (eg., KB link, endpoint or how to setup)
  • [ ] Minimum requirements to check during review
  • [ ] Test case(s) to demonstrate the difference of before/after

agatha197 avatar Jul 05 '24 02:07 agatha197

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

graphite-app[bot] avatar Jul 05 '24 02:07 graphite-app[bot]

  • #2517 Graphite 👈
  • main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @agatha197 and the rest of your teammates on Graphite Graphite

agatha197 avatar Jul 05 '24 02:07 agatha197

Merge activity

graphite-app[bot] avatar Jul 08 '24 01:07 graphite-app[bot]