Skip to content

Log cloned project version when cloning from latest version#1681

Open
zahidblackduck wants to merge 5 commits intomasterfrom
dev/zahidblackduck/IDETECT-4980-project-version-clone-log
Open

Log cloned project version when cloning from latest version#1681
zahidblackduck wants to merge 5 commits intomasterfrom
dev/zahidblackduck/IDETECT-4980-project-version-clone-log

Conversation

@zahidblackduck
Copy link
Collaborator

@zahidblackduck zahidblackduck commented Mar 12, 2026

JIRA Ticket

IDETECT-4980

Description

This merge request adds a log message to identify the exact project version selected as the clone source when --detect.clone.project.version.latest=true is used.

Previously, the only related log was a generic DEBUG message (Cloning the most recent project version.) that provided no version name, making it impossible to verify which version was cloned for audit trails, compliance tracking, or troubleshooting.

In FindCloneByLatestOperation.java, the code already fetches all ProjectVersionView objects and selects the one with
the latest createdAt timestamp, but immediately discarded the view and kept only the URL.

The fix captures the ProjectVersionView before mapping to the URL and logs its version name at INFO level.

@zahidblackduck zahidblackduck self-assigned this Mar 12, 2026
@zahidblackduck zahidblackduck marked this pull request as draft March 12, 2026 15:55
@zahidblackduck zahidblackduck changed the title DRAFT: Log Cloned Project Version When Cloning Log cloned project version name when setting detect.clone.project.version.latest true Mar 13, 2026
@zahidblackduck zahidblackduck changed the title Log cloned project version name when setting detect.clone.project.version.latest true Log cloned project version name when cloning from latest version Mar 13, 2026
@zahidblackduck zahidblackduck changed the title Log cloned project version name when cloning from latest version Log cloned project version when cloning from latest version Mar 13, 2026
@zahidblackduck zahidblackduck marked this pull request as ready for review March 13, 2026 08:06
@zahidblackduck zahidblackduck requested a review from cpottsbd March 13, 2026 08:14
### Resolved issues No newline at end of file
### Resolved issues

* (IDETECT-4980) Added an INFO-level log message to identify the exact project version selected as the clone source when `detect.clone.project.version.latest` is set to true. No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

Tweak suggestion:

  • (IDETECT-4980) When detect.clone.project.version.latest is set to true, an INFO-level log message will be written to identify the exact project version selected as the clone source.

@zahidblackduck zahidblackduck requested a review from cpottsbd March 13, 2026 13:43
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