You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API request "PUT /v1/project/clone" returns response 200 with new project UUID like if operation is finished
In fact, cloning a project is a continuous process that requires copying information about the components in use from the original repository to the new
That can lead to problems like #2768 when running two continuous operations at the same time leads to unwanted results
Proposed Behavior
Return status token like PUT /v1/bom does.
This allows to track cloning process and sync task order for Dependency Track to aviod timing conflicts
Additional note: Cloning is currently not executed in a single transaction, so it's possible that a failure leaves behind an incompletely cloned project. This is sub-optimal as it is hard to detect without accessing the logs. This needs to be addressed by wrapping the entire procedure into a single database transaction.
@nscuro I did not find a way to implement the transaction part but the token I was able to do. not sure how transactions would work while wanting to use the existing token process of the event system?
Activity
nscuro commentedon Nov 13, 2023
Additional note: Cloning is currently not executed in a single transaction, so it's possible that a failure leaves behind an incompletely cloned project. This is sub-optimal as it is hard to detect without accessing the logs. This needs to be addressed by wrapping the entire procedure into a single database transaction.
rkg-mm commentedon Dec 3, 2023
@nscuro I did not find a way to implement the transaction part but the token I was able to do. not sure how transactions would work while wanting to use the existing token process of the event system?
Merge pull request #3260 from rkg-mm/2842-Queue-tokens-for-project-cl…
github-actions commentedon Jan 8, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.