New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 796638 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

Change tricium (and buildbucket) plugin to have html and html-import loading

Project Member Reported by qyears...@chromium.org, Dec 20 2017

Issue description

Because buildbucket and tricium involve project-specific config, they cannot be entirely html-based plugins currently... but we can still add a main .html file entry point that loads the custom element via html imports:

Context: see  bug 788815 

Related documentation:
https://gerrit-review.googlesource.com/Documentation/pg-plugin-migration.html#migration
 
Owner: qyears...@chromium.org
Status: Assigned (was: Available)
Project Member

Comment 2 by bugdroid1@chromium.org, Feb 5 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/infra/gerrit-plugins/tricium/+/cf1d567a163dc99c27a15ee95a85b9dce257a258

commit cf1d567a163dc99c27a15ee95a85b9dce257a258
Author: Quinten Yearsley <qyearsley@chromium.org>
Date: Mon Feb 05 22:42:33 2018

Change entry point for Tricium to tricium.html

It turns out that "web UI plugins" entry points can
be .html files. The advantage of this way is that
the custom element(s) can be loaded via HTML import.

Bug:  796638 
Change-Id: I4b0bcab6f7738a61f15bafb56ddbb78060897dff
Reviewed-on: https://chromium-review.googlesource.com/895053
Reviewed-by: Aaron Gable <agable@chromium.org>

[add] https://crrev.com/cf1d567a163dc99c27a15ee95a85b9dce257a258/src/main/resources/static/tricium.html
[delete] https://crrev.com/3b01e924a27201d6f0e43247530c8cdf00d7b7b7/src/main/resources/static/tricium.js
[modify] https://crrev.com/cf1d567a163dc99c27a15ee95a85b9dce257a258/src/main/java/com/googlesource/chromium/plugins/tricium/TriciumModule.java

Project Member

Comment 3 by bugdroid1@chromium.org, Feb 6 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/infra/gerrit-plugins/buildbucket/+/30693e7e421ffac4eafdb7fd7b42ea033c7ce309

commit 30693e7e421ffac4eafdb7fd7b42ea033c7ce309
Author: Quinten Yearsley <qyearsley@chromium.org>
Date: Tue Feb 06 16:17:54 2018

Change entry point for Buildbucket plugin to buildbucket.html

Advantage: We can load the cr-buildbucket-view element
via HTML import instead of Polymer.Base.importHref.
Related CL for Tricium: https://crrev.com/c/895053

Bug:  796638 
Change-Id: Ie2bcb1c0d66ef950c17fab3fa77be3791fd4a704
Reviewed-on: https://chromium-review.googlesource.com/895904
Reviewed-by: Aaron Gable <agable@chromium.org>
Reviewed-by: Nodir Turakulov <nodir@chromium.org>

[add] https://crrev.com/30693e7e421ffac4eafdb7fd7b42ea033c7ce309/src/main/resources/static/buildbucket.html
[modify] https://crrev.com/30693e7e421ffac4eafdb7fd7b42ea033c7ce309/src/main/java/com/googlesource/chromium/plugins/buildbucket/BuildBucketModule.java
[delete] https://crrev.com/d575eaf88b5ce1344e2817cb3e14292a49347925/src/main/resources/static/buildbucket.js

Status: Fixed (was: Assigned)

Sign in to add a comment