| Summary: | [server] Review the Git JSON representations | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Szymon Brandys <Szymon.Brandys> |
| Component: | Git | Assignee: | Project Inbox <orion.git-inbox> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | tomasz.zarna |
| Version: | 0.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Bug Depends on: | 343367 | ||
| Bug Blocks: | |||
|
Description
Szymon Brandys
I agree, we have this one blocked by bug 343367, so we can get a bird's eye view on the problem first. Once we update the doc and see where the response representation could be adjusted we will switch to this bug... and when done, update the doc again. We need a Type field for each Git JSON representation. For instance when I use GET http://localhost:8080/git/remote/file/g/ to get the list of remotes, I get: {"Children": [{ "Location": "http://localhost:8080/git/remote/origin/file/g/", "Name": "origin" }]} When { "Location": "http://localhost:8080/git/remote/origin/file/g/", "Name": "origin" } is passed further to some UI widget, there is no way to detect that it is a git remote representation, unless we parse the URI. We also agreed to include CloneLocation for all types of Git resource objects. We did some of the work during M8. Further review is planned post 0.2. All these issues have been fixed with bug 349658: Ad1. If you refer to a remote branch this can be done now with 2 GETs, one for RemoteLocation, second for Children[i].CommitLocation from the response on the former. Ad2. This is also done in most cases, CloneLocation is in sight of each response. Ad 3. Tags for a commit are listed node named "Tags", not "Children" *** This bug has been marked as a duplicate of bug 349658 *** |