| Summary: | [gerrit] Incompatibility with Gerrit 2.1.7-rc2-24-gb7ebfe1 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Sascha Scholz <sascha.scholz> | ||||
| Component: | Mylyn | Assignee: | Sascha Scholz <sascha.scholz> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | critical | ||||||
| Priority: | P3 | CC: | sop, steffen.pingel | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 0.8 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Sascha Scholz
Args. Can you check what has changed in PatchSetDetail between 2.1.5 and the current release? In ChangeSetDetailService void patchSetDetail(PatchSet.Id keyA, PatchSet.Id keyB, AccountDiffPreference diffPrefs, AsyncCallback<PatchSetDetail> callback); was changed to void patchSetDetail(PatchSet.Id keyA, PatchSet.Id keyB, AccountDiffPreference diffPrefs, AsyncCallback<PatchSetDetail> callback); keyB and diffPrefs can be null, leading to the old behaviour (tested locally). The problem is (besides that Gerrit doesn't offer an API) that we don't have a mechanism in the GerritClient which allows us to invoke one or the other method depending on the Gerrit instance version (if we had the version information...). Can you file a bug against Gerrit to ask to make this backwards compatible, i.e. provide the old method signature as well? The other thing that we could do as a work-around is to extend ChangeDetailService on the client side with the new method. Invocation wise we would try the first method and then fall-back to the new signature in case of an error. Does that make sense? Created attachment 196846 [details]
mylyn/context/zip
Temporary workaround implemented in http://git.eclipse.org/c/mylyn/org.eclipse.mylyn.reviews.git/commit/?id=36b12bc21f8b134959268c2e2ee861b237f13fb8. Still needs to be clarified with Gerrit guys how to proceed. Discussion on Gerrit group: http://groups.google.com/group/repo-discuss/browse_thread/thread/a142c3fe953d662e Next steps: - Propose bugfix to Gerrit - Reverse logic for changelist service calls Thanks Sascha. I'll mark this bug as resolved to ensure compatibility with the current Gerrit releases. We can revisit removing the work-around for 0.9. |