Community
Participate
Working Groups
The Gerrit configuration which is encoded in a JavaScript variable called "gerrit_hostpagedata" in the Gerrit web sites includes valuable configuration details such as approval types. This configuration needs to be made available to the Gerrit connector somehow.
I couldn't find an RPC service that exposes the configuration details. Did I miss something?
Nope, its not available except in the host HTML page. Gerrit will need to add this as a new service to expose it in plain JSON for Mylyn.
Thanks for confirming that. What is the best way to approach it? Should I file a bug against Gerrit to propose that change?
(In reply to comment #3) > Thanks for confirming that. What is the best way to approach it? Should I file > a bug against Gerrit to propose that change? Yes, otherwise it won't ever get done. :-(
I have filed an enhancement request against Gerrit: http://code.google.com/p/gerrit/issues/detail?id=848 .
Steffen, do we have what you wanted now with: bug 404933?
AFAIK, the Gerrit connector still relies on parsing JavaScript to obtain the configuration (see GerritClient.refreshConfig()). At this point, we don't have any other API to obtain the data we need.
(In reply to comment #7) > AFAIK, the Gerrit connector still relies on parsing JavaScript to obtain the > configuration (see GerritClient.refreshConfig()). At this point, we don't have > any other API to obtain the data we need. That's correct, and is implicated in bug 406256. It would be really nice to replace this.
I believe that this was addressed a long time ago incidentally. Please reopen if I'm wrong about that.
Seems like this is still parsing JavaScript to get the config. The Gerrit bug is still open.
Where is that happening exactly, Sam?
GerritHtmlProcessor I think.
Mylyn has been restructured, and our issue tracking has moved to GitHub [1]. We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub. [1] https://github.com/orgs/eclipse-mylyn