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

Removed usage of get_content_node_parents #9926

Conversation

overmode
Copy link
Contributor

Description

  • Removed the get_content_node_parents endpoint and all its calls (only one in tracker)
  • Replaced the calls to it by calls to get_content_node with includeParents set to true

Risk

Low, break tracker

Deploy Plan

Deploy Front, then deploy Connectors

@overmode overmode linked an issue Jan 13, 2025 that may be closed by this pull request
@overmode overmode requested a review from aubin-tchoi January 13, 2025 13:08
@overmode overmode marked this pull request as ready for review January 13, 2025 13:08
@overmode overmode removed the request for review from aubin-tchoi January 13, 2025 13:08
@overmode overmode requested a review from aubin-tchoi January 13, 2025 13:16
Copy link
Contributor

@aubin-tchoi aubin-tchoi left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Comment on lines +497 to +500
docParentIds = removeNulls([
documentId,
...parentsResult.value.nodes.flatMap((node) => node.parents),
];
...parentsResult.value.nodes.flatMap((node) => node.parentInternalIds),
]);
Copy link
Contributor

Choose a reason for hiding this comment

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

we might want to keep unique values no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As seen irl, this should be safe because we only get the parents for a single node 👍

@overmode overmode merged commit 4f51273 into main Jan 13, 2025
6 checks passed
@overmode overmode deleted the 9863-connectorsfront-kill-connector-endpoint-get_content_node_parents branch January 13, 2025 16:47
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.

[Connectors/Front] Kill connector endpoint get_content_node_parents
2 participants