Skip to content

feat: all Users Daikoku teams#1016

Draft
gmenant wants to merge 1 commit intomasterfrom
feat/#984TeamListOfUser
Draft

feat: all Users Daikoku teams#1016
gmenant wants to merge 1 commit intomasterfrom
feat/#984TeamListOfUser

Conversation

@gmenant
Copy link
Copy Markdown
Contributor

@gmenant gmenant commented Apr 2, 2026

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@gmenant gmenant force-pushed the feat/#984TeamListOfUser branch from ea27600 to 01aeb25 Compare April 2, 2026 14:19
@gmenant gmenant force-pushed the feat/#984TeamListOfUser branch from 01aeb25 to 5e9b665 Compare April 2, 2026 14:26
}
}

case class UserSimple(_id: String, name: String, email: String ) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe good to move the following code into a new file like UserService

export const myTeams = (): Promise<ResponseError | Array<ITeamSimple>> =>
customFetch('/api/me/teams');

export const userTeams = (tenantId: string, teamId: string = "", userId: string = ""): Promise<ResponseError | Array<IUserTeamsSimple>> =>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

PromiseWithError<...>


env.dataStore
.asInstanceOf[PostgresDataStore]
.queryRawMappedStream(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

need Source ?

| JOIN users u ON u._id = (team_user.val->>'userId')::text
|GROUP BY t._id, t.content ->> 'name';""".stripMargin,
Seq(
Col("team_id", ColString),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the sql request has no params

`,
userTeams: `
query userTeams {
userTeams {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this graphql request doesn't exists

@gmenant gmenant linked an issue Apr 16, 2026 that may be closed by this pull request
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 this pull request may close these issues.

Get the team list of a user

2 participants