fabric-testbed / fabric-portal

FABRIC portal repo
MIT License
4 stars 0 forks source link

Manage Slices by Projects #235

Closed yaxue1123 closed 1 year ago

yaxue1123 commented 1 year ago

Proposed Portal UI update:


Previous discussion

Komal and Paul suggests the Chameleon way to manage slices by project. And Komal suggested the following workflow:

- User logs in
- Portal calls Core API to fetch user's projects
- By default, selects 1st project for the Portal view, this could be displayed somewhere on the top
- Auto Generates token using the default project 
- Issues a query for the slices in that project from Orchestrator API
- Displays the existing slices in that project / or create a new slice under using the selected project
- User could switch between projects and configure a specific project as their default as well

?**Will this be an issue**: 

Users won't know if the project has slices (how many slices a project has) before they choose a project due to the following API limitations:

- Core API have no access to the slice information for a project;
- Orchestrator API can access a slice's project id from id token at CF level. Komal has added `project_id` to the response body of GET /slices (but the project information stored in id token is limited to only project id, no project name or other information);

Unless portal calls Orchestrator once for every project, but it's not time-efficient and it could make portal super slow, especially for users with numerous projects, especially for Facility Operators with access to all projects. 
yaxue1123 commented 1 year ago

How other testbeds deal with projects and slices:

image image