Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370460

Summary: Refactor git client to unify the way of calling functions.
Product: [ECD] Orion Reporter: Malgorzata Janczarska <malgorzata.tomczyk>
Component: GitAssignee: Malgorzata Janczarska <malgorzata.tomczyk>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: libingw, Szymon.Brandys
Version: 0.4   
Target Milestone: 2.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Malgorzata Janczarska CLA 2012-02-02 11:07:56 EST
gitClient contains methods that are called in at least 4 ways:
* response is retrieved via returned promise
* response is retrieved via onLoad function
* response is retrieved via onLoad event (I think not used anywhere)
* we return errors in onError or just in the promise
Some of the functions also modify the response it gets from a server wrapping it with some json object (doMerge). I really think we should unify it all and beginning of 0.5 will be a good time to do it.
Comment 1 Malgorzata Janczarska CLA 2012-04-12 13:14:14 EDT
(In reply to comment #0)
> gitClient contains methods that are called in at least 4 ways:
> * response is retrieved via returned promise
> * response is retrieved via onLoad function
> * response is retrieved via onLoad event (I think not used anywhere)
> * we return errors in onError or just in the promise
This is done by Bug 376104.

> Some of the functions also modify the response it gets from a server wrapping it
> with some json object (doMerge). I really think we should unify it all and
> beginning of 0.5 will be a good time to do it.
This will be done in M2.
Comment 2 Malgorzata Janczarska CLA 2013-01-21 05:05:43 EST
Resolved while refactoring git client for new operations.