| Summary: | [server] Provide REST API for git clone | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Tomasz Zarna <tomasz.zarna> |
| Component: | Client | Assignee: | Tomasz Zarna <tomasz.zarna> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | john.arthorne, Szymon.Brandys |
| Version: | 0.2 | ||
| Target Milestone: | 0.2 | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | 338558 | ||
| Bug Blocks: | 337820, 338226, 338652, 340553 | ||
|
Description
Tomasz Zarna
I would lean towards 3). If you keep them separate, then you need this new concept of a "cloned repository that is not a project", which raises questions of how to access/modify/delete/manage authorization on such a thing. (In reply to comment #1) > I would lean towards 3). If you keep them separate, then you need this new > concept of a "cloned repository that is not a project", which raises questions > of how to access/modify/delete/manage authorization on such a thing. Actually there is option 4). - We create a clone first and this operation should not create any folder in the workspace. The clone location is /git/clone/[cloneId]. Its children locations are /git/clone/[cloneId]/[path] - Then you can go to any node in the clone, call POST on it and pass the name of the top-level folder to create - Even better would be to have a special importToWorkspaceLocation field in the git clone representation. This location would be used to import part of the clone to the workspace. It is a similar concept to import/export on files. (In reply to comment #2) Tomek, as we chatted yesterday we would need GET /git/clone implemented that would return the list of existing clones. We need that to populate the git clones view. I implemented 1) with 543ff2fa9a183237e0ef58a42d85886450c2b831, keeping in mind that this is a temporary solution. Next I thnik I will switch the implementation to 4) but first I'm going to add GET /git/clone from comment 3. (In reply to comment #3) > we would need GET /git/clone implemented that would return the list of existing clones Fixed with 24fc6dd3bcfb16b47097b6234401313022b2b9f0. The initial work is done. We have new bugs raised against remaining issues. |