Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 426505 - provide core functionality to star a Gerrit review
Summary: provide core functionality to star a Gerrit review
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jacques Bouthillier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 413917 426580
  Show dependency tree
 
Reported: 2014-01-23 14:25 EST by Jacques Bouthillier CLA
Modified: 2014-04-21 09:19 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacques Bouthillier CLA 2014-01-23 14:25:23 EST
We noticed that the Gerrit starred flag is not handled within the Mylyn Gerrit connector. This functionality is required for the Eclipse Gerrit Dashboard found under the Mylyn Review.
Comment 1 Steffen Pingel CLA 2014-01-23 15:25:11 EST
+1 Please note that there is related discussion on bug 413917 already. Sound like you are planning to extend the core initially so it makes sense to me to track this on a different bug.
Comment 2 Jacques Bouthillier CLA 2014-02-12 15:49:50 EST
Code to handle the starred flag from org.eclipse.mylyn.gerrit.core 
Gerrit review: https://git.eclipse.org/r/#/c/21916/
Comment 3 Jacques Bouthillier CLA 2014-02-24 15:13:48 EST
Hi Steffen,
I looked at your comments on Gerrit  fo this bug and one of them talk about using the REST API (File: GerritHttpClient.java)
It seems to me that when I used the new method to use HttpPut() and HttpDelete() method. it works fine. When I try to create a new HttpMethodBase.createmethod (PUT and DELETE), I always get an error: 400, 401 or 403. This seems related to the authentication. I cannot find how you process the authentication which would validate the method and process the command on the Gerrit server. On Gerrit 2.8, the command : STAR/UNSTAR uses the new REST API wihich require PUT/DELETE commands. When testing on Gerrit 2.7 and before, the commands work fine and use POST command. Do you have any idea why ?
Comment 4 Jacques Bouthillier CLA 2014-02-25 15:50:37 EST
Push new code for a review. Fix all comments from patch set 1
review: https://git.eclipse.org/r/#/c/21916/
Comment 5 Jacques Bouthillier CLA 2014-04-02 15:54:39 EDT
Just rebase to the latest Mylyn review
Gerrit review: https://git.eclipse.org/r/#/c/21916/
If there is no more comments, I should push it on April 3
Comment 6 Jacques Bouthillier CLA 2014-04-03 15:14:03 EDT
Adressed all comments on version 8
Gerrit Review: https://git.eclipse.org/r/#/c/21916/
Comment 7 Jacques Bouthillier CLA 2014-04-17 07:19:59 EDT
- Unit test added, rebase on April 10 
- All comment were fixed. Should be merged unless you have other comments
Gerrit: https://git.eclipse.org/r/#/c/21916/
Comment 8 Jacques Bouthillier CLA 2014-04-21 09:19:40 EDT
-Code reviewed and rebased as of April 21, 
- Code pushed to the master ranch