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

fix(Confluence) - inline getConfluenceSpaceUrl when the db entry is available #10056

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

aubin-tchoi
Copy link
Contributor

Description

  • This PR fixes failing activities due to a missing attribute in a SELECT.
  • Instead of calling the function getConfluenceSpaceUrl and having it recheck that the space provided is a SpaceModel we directly inline the code path for it when a db entry is available.

Risk

  • Low but should be monitored to see if it unblocks the activities.

Deploy Plan

  • Deploy connectors.

@aubin-tchoi aubin-tchoi requested a review from PopDaph January 17, 2025 10:49
@aubin-tchoi aubin-tchoi changed the title fix(Confluence) - remove getConfluenceSpaceUrl when the db entry is available fix(Confluence) - inline getConfluenceSpaceUrl when the db entry is available Jan 17, 2025
export function createContentNodeFromSpace(
space: ConfluenceSpace | ConfluenceSpaceType,
baseUrl: string,
permission: ConnectorPermission,
{ isExpandable }: { isExpandable: boolean }
): ContentNode {
const spaceId = isConfluenceSpaceModel(space) ? space.spaceId : space.id;
const urlSuffix = isConfluenceSpaceModel(space)
? space.urlSuffix
: space._links.webui;
Copy link
Contributor

Choose a reason for hiding this comment

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

space._links can't be undefined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, we have some io-ts validation on the inputs from the API that would make it crash earlier

@aubin-tchoi aubin-tchoi merged commit a72f3f5 into main Jan 17, 2025
4 checks passed
@aubin-tchoi aubin-tchoi deleted the fix-confluence-getUrl branch January 17, 2025 14:29
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.

2 participants