Skip to content

Conversation

@afsahsyeda
Copy link
Contributor

Description

  • Configure the inclusion of subprojects while generating license info for a project.
  • Set to true by default to preserve existing behavior.

@afsahsyeda afsahsyeda added needs code review needs general test This is general testing, meaning that there is no org specific issue to check for labels Nov 4, 2025
@akshitjoshii
Copy link
Contributor

Test successful.

@akshitjoshii akshitjoshii removed the needs general test This is general testing, meaning that there is no org specific issue to check for label Nov 4, 2025
akshitjoshii
akshitjoshii previously approved these changes Nov 4, 2025
Copy link
Contributor

@akshitjoshii akshitjoshii left a comment

Choose a reason for hiding this comment

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

LGTM

@akshitjoshii akshitjoshii added ready ready to merge and removed needs code review labels Nov 4, 2025
@GMishx
Copy link
Member

GMishx commented Nov 5, 2025

@afsahsyeda
Just checking the code logic, if includeSubprojects is set as false, the sw360Project remains unused.

And the mappedProjectLinks.forEach on line 1599 would never execute. Logically, it means no attached releases will be processed, meaning no information in the LicenseInfo report generated.

Did I assume it correctly or did I miss something?

@GMishx GMishx added needs code review and removed ready ready to merge labels Nov 5, 2025
@afsahsyeda afsahsyeda force-pushed the feat/REST/licenseINfo/addSubprojectsParameter branch from 8b62349 to 6f47d70 Compare November 6, 2025 10:31
@afsahsyeda
Copy link
Contributor Author

@afsahsyeda Just checking the code logic, if includeSubprojects is set as false, the sw360Project remains unused.

And the mappedProjectLinks.forEach on line 1599 would never execute. Logically, it means no attached releases will be processed, meaning no information in the LicenseInfo report generated.

Did I assume it correctly or did I miss something?

@GMishx You were right. I have added the missing logic. Please have a look.

@afsahsyeda afsahsyeda force-pushed the feat/REST/licenseINfo/addSubprojectsParameter branch from 6f47d70 to beef8b6 Compare November 6, 2025 10:33
Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Changes looks good.

@akshitjoshii can you please help retest the changes (with and without the sub-projects)?

@GMishx GMishx added needs general test This is general testing, meaning that there is no org specific issue to check for and removed needs code review labels Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs general test This is general testing, meaning that there is no org specific issue to check for

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants