Skip to content

Conversation

@b41ex
Copy link
Collaborator

@b41ex b41ex commented Oct 3, 2025

feat: utility recursive method to aggregate diffs with rollup in merged tree


export function hidePathParamNames(path: string): string {
return path.replace(PATH_PARAMETER_REGEXP, PATH_PARAM_UNIFIED_PLACEHOLDER)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I have no comments but because all these manipulations like magic. So I would like to request some documentation for these operations because there a lot of utility functions calling each other and it's difficult to understand whole the algorithm

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added jsdoc for path mapper.

[obj[aggregatedDiffProperty]] = childrenDiffs
}else{
// no diffs- no aggregated diffs get assigned
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we really need empty else?
and you may format the code

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Else is not empty, it contains comment:) This is to emphasize/remind the reader that in this case to aggregated diffs will be added.

Formatted code.

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Oct 12, 2025
@b41ex b41ex requested review from JayLim2 and makeev-pavel October 12, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Process whole specs for GraphQL and REST to collect per-operation data for build type changelog

5 participants