-
Notifications
You must be signed in to change notification settings - Fork 392
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
Cb 4661 remove includes concept from resources api #2910
Cb 4661 remove includes concept from resources api #2910
Conversation
… from connections feature
webapp/packages/core-authentication/src/TeamInfoMetaParametersResource.ts
Show resolved
Hide resolved
webapp/packages/core-authentication/src/TeamInfoMetaParametersResource.ts
Outdated
Show resolved
Hide resolved
webapp/packages/core-authentication/src/UserInfoMetaParametersResource.ts
Outdated
Show resolved
Hide resolved
webapp/packages/core-authentication/src/UserInfoMetaParametersResource.ts
Outdated
Show resolved
Hide resolved
webapp/packages/core-authentication/src/TeamInfoMetaParametersResource.ts
Outdated
Show resolved
Hide resolved
webapp/packages/core-authentication/src/UsersOriginDetailsResource.ts
Outdated
Show resolved
Hide resolved
webapp/packages/core-connections/src/ConnectionInfoOriginResource.ts
Outdated
Show resolved
Hide resolved
webapp/packages/core-sdk/src/queries/fragments/DatabaseConnectionOrigin.gql
Outdated
Show resolved
Hide resolved
webapp/packages/core-sdk/src/queries/fragments/DatabaseConnectionOriginDetails.gql
Outdated
Show resolved
Hide resolved
webapp/packages/core-connections/src/ConnectionInfoOriginResource.ts
Outdated
Show resolved
Hide resolved
webapp/packages/core-connections/src/ConnectionInfoOriginDetailsResource.ts
Outdated
Show resolved
Hide resolved
status.info('administration_teams_team_info_created'); | ||
status.info(team.teamId); | ||
} else { | ||
const team = await this.teamResource.updateTeam(config); | ||
const [team] = await Promise.all([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here we dont want to run these mutations in parallel as we dont want to set parameters if we failed to update the team
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice one! thanks
@@ -25,6 +25,14 @@ export const ConnectionsTable = observer<Props>(function ConnectionsTable({ stat | |||
const projectService = useService(ProjectsService); | |||
const dbDriverResource = useResource(ConnectionsTable, DBDriverResource, CachedMapAllKey); | |||
const shouldDisplayProjects = projectService.activeProjects.filter(project => isGlobalProject(project) || isSharedProject(project)).length > 1; | |||
const connectionOriginResource = useResource(ConnectionsTable, ConnectionInfoOriginResource, CachedMapAllKey); | |||
const connectionOriginsMap: Map<string, ConnectionInfoOrigin> = connectionOriginResource.data.reduce((acc, origin) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use for of loop here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done thanks
const originLocal = !info || (originInfo && isLocalConnection(originInfo)); | ||
const originLocal = !info || (originInfo?.origin && isLocalConnection(originInfo.origin)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isLocalConnection can accepts origin | undefined (in case property origin can be undefined / null)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the new changes now it is not able to pass null
or undefined
…ection" This reverts commit 4e57ce5.
No description provided.