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

Cb 4661 remove includes concept from resources api #2910

Merged
merged 31 commits into from
Sep 23, 2024

Conversation

sergeyteleshev
Copy link
Contributor

No description provided.

@sergeyteleshev sergeyteleshev self-assigned this Sep 11, 2024
status.info('administration_teams_team_info_created');
status.info(team.teamId);
} else {
const team = await this.teamResource.updateTeam(config);
const [team] = await Promise.all([
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

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

good point

Copy link
Contributor Author

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) => {
Copy link
Member

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?

Copy link
Contributor Author

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));
Copy link
Member

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)

Copy link
Contributor Author

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

@Wroud Wroud merged commit 1746d91 into devel Sep 23, 2024
5 of 7 checks passed
@Wroud Wroud deleted the CB-4661-remove-includes-concept-from-resources-api branch September 23, 2024 15:22
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.

4 participants