Skip to content

Conversation

@nsemets
Copy link
Collaborator

@nsemets nsemets commented Feb 6, 2026

  • Ticket: [ENG-10217]
  • Feature flag: n/a

Summary of Changes

  1. Added logic to get all components including root project.

Screenshot(s)

image

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 60.441% (+0.002%) from 60.439%
when pulling 6e4f41b on nsemets:fix/ENG-10217
into d92ff04 on CenterForOpenScience:main.

@nsemets nsemets marked this pull request as ready for review February 6, 2026 13:04
brianjgeiger
brianjgeiger previously approved these changes Feb 10, 2026
Copy link
Contributor

@brianjgeiger brianjgeiger left a comment

Choose a reason for hiding this comment

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

One improvement which we can do now or put in a separate ticket.

const parentId = node.relationships.parent?.data?.id;
if (!parentId) return [node];

const ancestors = this.getAllAncestors(allNodes, parentId);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is an API heavy way to do this. To get all nodes in a hierarchy, you can just /v2/nodes/?filter[root]={project.root}. You might have to sort them in JS, but it will make far fewer calls.

If need be, we can make a technical improvement ticket to fix this that isn't a hotfix, but it'd be nice to not have this kind of thing be in the codebase for too long.

Copy link
Contributor

Choose a reason for hiding this comment

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

Talked on Slack, and this won't be necessary.

@adlius adlius changed the base branch from main to hotfix/26.2.2 February 10, 2026 16:35
@adlius adlius dismissed brianjgeiger’s stale review February 10, 2026 16:35

The base branch was changed.

@adlius adlius merged commit b93fe19 into CenterForOpenScience:hotfix/26.2.2 Feb 10, 2026
3 checks passed
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