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

Add image_node and vfolder_node fields to ComputeSessionNode type schema #3532

Open
fregataa opened this issue Jan 23, 2025 — with Lablup-Issue-Syncer · 0 comments · May be fixed by #2987
Open

Add image_node and vfolder_node fields to ComputeSessionNode type schema #3532

fregataa opened this issue Jan 23, 2025 — with Lablup-Issue-Syncer · 0 comments · May be fixed by #2987
Assignees

Comments

@fregataa
Copy link
Member

fregataa commented Jan 23, 2025

Motivation  

  • The data schema of Compute sessions has images and vfolder mounts fields but GQL schema doesn’t
  • The data schema of Compute kernels has an image and architecture fields but GQL schema doesn’t

Schema updates

type KernelNode implements Node {
  # New fields
  image_reference: String
  architecture: String
}

type ComputeSessionNode implements Node {
  # New fields
  image_references: [String]
  vfolder_nodes(filter: String, order: String, offset: Int, before: String, after: String, first: Int, last: Int): VirtualFolderConnection
}

Testing Scenarios  

Query ComputeSessionNode & KernelNode

query Session {
    compute_session_nodes(
        scope_id: "project:2de2b969-1d04-48a6-af16-0bc8adb3c831",
    ) {
        edges {
            cursor
            node {
                id
                name
                image_references
                vfolder_nodes {
                    edges {
                        node {
                            id
                            row_id
                            name
                            permissions
                        }
                    }
                }
                kernel_nodes {
                    edges {
                        node {
                            id
                            row_id
                            image {
                                id
                                row_id
                                name
                            }
                        }
                    }
                }
            }
        }
    }
}
@fregataa fregataa self-assigned this Jan 23, 2025
@fregataa fregataa changed the title Add image_node and vfolder_node fields to ComputeSession type schema Add image_node and vfolder_node fields to ComputeSession type schema Jan 23, 2025
@fregataa fregataa changed the title Add image_node and vfolder_node fields to ComputeSession type schema Add image_node and vfolder_node fields to ComputeSessionNode type schema Jan 23, 2025
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 a pull request may close this issue.

1 participant