8 Commits

Author SHA1 Message Date
Aaron Gable
6ff48695ec Add PG UI support for new changes with base commit
This allows users to specify a non-HEAD base commit
when creating a new change from the web UI.

Bug: Issue 8857
Change-Id: Ic585fafacc4bf21cd1d8bd129e889b42180b80a7
2018-05-04 10:17:06 -07:00
Dave Borowitz
8cdc76ba4c Add @license tags to PG HTML and JS assets
These tags are preserved by the Closure compiler and vulcanize in order
to serve the license notices embedded in the outputs. In a standalone
Gerrit server, these license are also covered in the LICENSES.txt served
with the documentation. When serving PG assets from a CDN, it's less
obvious what the corresponding LICENSES.txt file is, since the CDN is
not directly linked to a running Gerrit server. Safer to embed the
licenses in the assets themselves.

Change-Id: Id1add1451fad1baa7916882a6bda02c326ccc988
2018-03-26 10:47:55 -04:00
Paladox none
d0f2bda7e8 gr-create-change-dialog: Pass private-by-defaut value
Allow to propagate private-by-defaut configuration value. It also avoids
unnecessary requests, when invoked from the change view, because the
project configuration was already retrieved and can be just re-used.

Bug: Issue 8601
Change-Id: I5cdb3f0e12c53bf656653b0821c94317ba7fbb2d
2018-03-21 21:30:07 +01:00
David Ostrovsky
067b7d5bed PolyGerrit: Add FollowUp button on change screen
Re-use create-change-dialog to create follow-up change in change
screen. There are two enhancements to the create change dialog:
branch section can be hidden and base change can be passed in.

In addition the REST API is extended to accept base change id.

Feature: Issue 8213
Change-Id: Ib39f73e6b88513ed12bba42405b6320d33f16f87
2018-03-20 23:46:11 +01:00
Paladox
985bfc48ef PolyGerrit: Update create dialog
Keeps private as a checkbox as it's optional.

Bug: Issue 7250
Change-Id: I48db44dcf469c79d8fe3a8176014140477b3f21a
2018-03-13 17:32:26 +00:00
Paladox none
2bd5c217d0 Rename projects admin interface to repo
This also includes backwards compatibility with the old /projects/ url.

This only renames it for the admin interface. It does not rename it for
changes or anything else.

Bug: Issue 7754
Change-Id: Ia31d3f26871556729fb3c5b5b28ceca12da1ec7c
2017-12-27 21:40:31 +00:00
Paladox none
6e347e8793 PolyGerrit: Update create dialog to use per project private config instead of global
Since change I6fea9f8d55c7a38ac293057681874e9b480341ed,
it has added support for per project private config instead of doing
it globally.

Change-Id: I72767ae5be0344d5275da1c41253f3284978c10a
2017-10-26 00:27:22 +01:00
Paladox none
c30b2fe981 PolyGerrit: Add support for project command
* This adds a new page called Project Command accessed by navigating to
<url>/projects/<project>,commands

* This supports creating a change through the new dialog (though note
you can't edit any files, will have to switch to gwtui to do that)

* Supports creating the change as a private and wip or one or the other.

* Supports the Run GC button allowing you to run gc on projects.

Feature: Issue 5232
Change-Id: Ibd3507c0fdb84303c8a978e3ea87f251582b13e8
2017-08-22 13:44:40 +00:00