Skip to content

Queue tokens for project cloning #2842

Closed

Description

@WDN2010

Current Behavior

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

Checklist

Activity

  1. added
    enhancement
    on Jun 22, 2023
  2. nscuro commented on Nov 13, 2023

    @nscuro
    Member

    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.

  3. rkg-mm commented on Dec 3, 2023

    @rkg-mm
    Contributor

    @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?

  4. added a commit that references this issue on Dec 8, 2023
  5. added this to the 4.11 milestone on Dec 8, 2023
  6. github-actions commented on Jan 8, 2024

    @github-actions
    Contributor

    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.

  7. locked as resolved and limited conversation to collaborators on Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions