commit | 7bc3967142d8a7ce8318ca4d293121a2e88ecae2 | [log] [tgz] |
---|---|---|
author | Josip Sokcevic <sokcevic@google.com> | Thu Oct 21 16:42:43 2021 |
committer | Josip Sokcevic <sokcevic@google.com> | Thu Oct 21 16:42:43 2021 |
tree | 15b8ec0e857d21466442327a595451313d94abb1 | |
parent | 752711b238f63bce5cbcc892bfc7f59d3c877a11 [diff] |
Use change from label value change callback param Gerrit added change parameter to label value change callback function. replyApi.addLabelValuesChangedCallback should not be called on each change, but only once. This CL calls replyApi.addLabelValuesChangedCallback once on plugin install and utilizes change provided in the callback paramter. R=brohlfs@google.com, gavinmak@google.com Bug: gerrit/15149 Change-Id: I402de9f336c71c2ca7bf265f9a6e0eec294409ed
$ npm run wct-test
Make sure the plugin is installed in plugins/ of Gerrit repository.
$ cd ../.. # Gerrit root directory $ bazel build plugins/chromium-behavior:chromium-behavior $ cp -f bazel-bin/plugins/chromium-behavior/chromium-behavior-bundle.js plugins/ $ cd plugins/chromium-behavior $ run-with-prod-data.sh