[Help Needed] The gerrit plugin development tutorial and examples project deprecated in Polygerrit-UI.

187 views
Skip to first unread message

hunter Chen

unread,
May 16, 2022, 10:49:15 AM5/16/22
to Repo and Gerrit Discussion
Hi gerrit devs,

We company needs to develop a gerrit plugin based on our business, which contributes to the UI. I have study the official documentation "https://gerrit-review.googlesource.com/Documentation/dev-plugins.html#ui_extension" and "https://gerrit.googlesource.com/plugins/examples", and it helps before Gerrit 3.0.

After Gerrit 3.0, the GWT UI was removed, and thus the examples project no longer works, especially for the JavaScript API "self.onAction()" which documented in the tutorial. 

So I would need helps from the DEVELOPMENT team,  or anyone who would like to share  a copy of fixed/adapted version of examples project that works in Gerrit 3.5.

Or at least, could you tell me how to fix the self.onAction error in Gerrit 3.5, at a minimum cost, such as replacing the self.OnAction() with another similar interface.

Here is my example, any PR is appreciated: 


BTW,  please help to update the plugin development tutorial along with the examples projects.

We looking forward to your reply, thanks!

Gerrit-onAction.png



Nasser Grainawi

unread,
May 20, 2022, 1:06:02 PM5/20/22
to hunter Chen, Repo and Gerrit Discussion
On Mon, May 16, 2022 at 8:47 AM hunter Chen <chenh...@gmail.com> wrote:
Hi gerrit devs,

We company needs to develop a gerrit plugin based on our business, which contributes to the UI. I have study the official documentation "https://gerrit-review.googlesource.com/Documentation/dev-plugins.html#ui_extension" and "https://gerrit.googlesource.com/plugins/examples", and it helps before Gerrit 3.0.

There's a link at the top of dev-plugins that points to https://gerrit-review.googlesource.com/Documentation/pg-plugin-dev.html where there's PolyGerrit specific information. Does that help?
 

After Gerrit 3.0, the GWT UI was removed, and thus the examples project no longer works, especially for the JavaScript API "self.onAction()" which documented in the tutorial. 

So I would need helps from the DEVELOPMENT team,  or anyone who would like to share  a copy of fixed/adapted version of examples project that works in Gerrit 3.5.

Or at least, could you tell me how to fix the self.onAction error in Gerrit 3.5, at a minimum cost, such as replacing the self.OnAction() with another similar interface.

Here is my example, any PR is appreciated: 


BTW,  please help to update the plugin development tutorial along with the examples projects.

We looking forward to your reply, thanks!

Gerrit-onAction.png



--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/3e6fd30b-ed4e-41b7-97c4-0e92d3ccc47en%40googlegroups.com.

hunter Chen

unread,
May 23, 2022, 3:36:11 AM5/23/22
to Repo and Gerrit Discussion
I had tried, but  pg-plugin-dev.html  didn't provide much example and graphs, so it's really difficult to work it out. May be a  example project is needed.
Reply all
Reply to author
Forward
0 new messages