Hello All. I'm working on the verify-status plugin to allow saving of test metadata/reports and viewing those reports on the Gerrit UI. The data model allows for multiple reports per patchset. I've decided to display a single report (the most current one) on the Gerrit change screen[1]. Now I'm trying to figure out a good way to display the history of test reports for a patchset. There can be many reports per patchset so I don't really want to it to appear on the change screen.
Hello All. I'm working on the verify-status plugin to allow saving of test metadata/reports and viewing those reports on the Gerrit UI. The data model allows for multiple reports per patchset. I've decided to display a single report (the most current one) on the Gerrit change screen[1]. Now I'm trying to figure out a good way to display the history of test reports for a patchset. There can be many reports per patchset so I don't really want to it to appear on the change screen. I'm thinking of maybe having a link on the change screen that would take users to a separate gerrit screen to show the history of test results for that patchset. I was wondering if anybody can give me ideas on how to do this?I did look at the cookbook index screen[2] as an example. The thing I would need in the new screen (cookbook index like) is the change id and revision id so I can make the REST request for the test data. Is there a way to somehow get the change and revision Ids from an index screen? Or maybe pass the change/revision IDs from the change screen to the index screen?
I'm not sure if my stab is the correct approach. I'm definitely open to other ideas as well. Thanks. -Khai
--
--
To unsubscribe, email repo-discuss+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Thu, Aug 4, 2016 at 10:54 PM, Khai Do <zaro...@gmail.com> wrote:Hello All. I'm working on the verify-status plugin to allow saving of test metadata/reports and viewing those reports on the Gerrit UI. The data model allows for multiple reports per patchset. I've decided to display a single report (the most current one) on the Gerrit change screen[1]. Now I'm trying to figure out a good way to display the history of test reports for a patchset. There can be many reports per patchset so I don't really want to it to appear on the change screen. I'm thinking of maybe having a link on the change screen that would take users to a separate gerrit screen to show the history of test results for that patchset. I was wondering if anybody can give me ideas on how to do this?I did look at the cookbook index screen[2] as an example. The thing I would need in the new screen (cookbook index like) is the change id and revision id so I can make the REST request for the test data. Is there a way to somehow get the change and revision Ids from an index screen? Or maybe pass the change/revision IDs from the change screen to the index screen?Assuming you add a link to the change screen, that links to a custom screen in your plugin, then you can pass the change ID and the patch set ID as part of the URL.For this you would register your plugin screen with a regular expression. The serviceuser plugin has an example for this, see [1]. Within your plugin screen you can read the tokens from the URL [2].
[1] https://gerrit.googlesource.com/plugins/serviceuser/+/master/src/main/java/com/googlesource/gerrit/plugins/serviceuser/client/ServiceUserPlugin.java#30
I'm not sure if my stab is the correct approach. I'm definitely open to other ideas as well. Thanks. -Khai
--
--
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.