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

Create map of groupId to CustomConnectionSpec when loading connections before displaying in the Resources view #1040

Open
shouples opened this issue Feb 7, 2025 · 0 comments

Comments

@shouples
Copy link
Contributor

shouples commented Feb 7, 2025

Could be handled here with group-level ContainerTreeItem<DirectEnvironment>:

export async function loadDirectResources(): Promise<DirectEnvironment[]> {
// fetch all direct connections and their resources; each connection will be treated the same as a
// CCloud environment (connection ID and environment ID are the same)
const directEnvs = await getDirectResources();
logger.debug(`got ${directEnvs.length} direct environment(s) from GQL query`);
return directEnvs;
}

After we make the GraphQL query, we can look up the stored connection (including formConnectionType and groupId):

  • if there's a groupId, add to the map and then make a container for it to display
  • if there's no groupId, display it on its own
@shouples shouples changed the title Create map of groupId to CustomConnectionSpec when loading connections Create map of groupId to CustomConnectionSpec when loading connections before displaying in the Resources view Feb 7, 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

No branches or pull requests

1 participant