11661 Commits

Author SHA1 Message Date
Edwin Kempin
5002d0c7ce Merge "Invoke *PluginListener only after start/reload is fully done" 2014-06-05 09:51:44 +00:00
Edwin Kempin
00c9fd65ef Merge "Add listener for unloading of plugins" 2014-06-05 09:51:33 +00:00
David Pursehouse
1972dc6961 Add DataSource interface
Add a new DataSource interface that provides the read() method.

Make ChangeDataSource extend this interface.

This will allow additional data source interfaces to be defined
later, for example an account data source that can be used by
a secondary index of user accounts.

Change-Id: I73b1858a5bffb9dbac459f295e04ef4610873d01
2014-06-04 13:40:38 +00:00
Edwin Kempin
939ad08358 Merge branch 'stable-2.9'
* stable-2.9:
  Update repository in pom.xml of plugin archetypes
  Release documentation: Add URL to Gerrit artifacts on Maven Central

Change-Id: Ic68d210412841b04831a7a865fb8fc1232c8138f
2014-06-04 15:22:32 +02:00
Edwin Kempin
178b24b8e0 Merge "Plugin docs: Specify archetype repository in archetype command" 2014-06-04 13:21:05 +00:00
Edwin Kempin
5c6676530e Merge "Release documentation: Add URL to Gerrit artifacts on Maven Central" into stable-2.9 2014-06-04 13:18:46 +00:00
Edwin Kempin
92c7393c3b Update repository in pom.xml of plugin archetypes
The plugin artifacts are no longer published to the Google Cloud
Storage but to Maven Central.

To reference released artifacts from Maven Central it is not necessary
to specify a repository in the pom.xml. This is because by default
Maven tries to find any artifact in Maven Central.

The Gerrit snapshots artifacts are now published to the Sonatype
snapshot repository [1], hence this repository must be specified in
the pom.xml if snapshot artifacts are referenced.

[1] https://oss.sonatype.org/content/repositories/snapshots/

Change-Id: Iac7d1b6e6957a9bcc43a42fab9d85dc111d46246
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-06-04 13:16:44 +00:00
Edwin Kempin
0b54dcfe55 Update version to 2.10-SNAPSHOT in pom.xml files
Change-Id: I3209f16fbebd65ab476b4a4644823f0580e5785f
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-06-04 13:09:27 +00:00
Edwin Kempin
441a0b89ce Plugin docs: Specify archetype repository in archetype command
For snapshot versions the archetype repository must be explicitly
specified. If no archetype repository is specified Maven tries to
download the artifacts from Maven central, but there only release
artifacts are available.

Change-Id: Id4ddcff482bd98da89a79a2c76e483a55baad9df
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-06-04 14:56:23 +02:00
Edwin Kempin
1721538dd3 Merge branch 'stable-2.9'
* stable-2.9:
  Update archetype version in plugin documentation to 2.9

Conflicts:
	Documentation/dev-plugins.txt

Change-Id: I6636ca2acd5a242b37a26c04597c31ebb4222ece
2014-06-04 14:28:29 +02:00
Edwin Kempin
8e63cf488d Release documentation: Add URL to Gerrit artifacts on Maven Central
Released artifacts first appear in the Sonatype releases repository
and are only then replicated to Maven Central. Clarify this in the
release documentation.

Change-Id: Ie50a41685222a4423d9fde727e5af29691ca2c8d
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-06-04 14:24:20 +02:00
Edwin Kempin
cf48dd7f59 Update archetype version in plugin documentation to 2.9
When 2.9 is released plugin developers should be able to copy and
paste the archetype command from the plugin documentation. For this
the version should match the released version. The command will work
only after the 2.9 plugin artifacts have been published to Maven
Central.

Change-Id: I4188c3740536f31eb49be2091cc89630da6cda96
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-06-04 07:14:31 +00:00
David Pursehouse
6e5bfafce5 Merge branch 'stable-2.9'
* stable-2.9:
  Release docs: Describe in more details how to publish to Maven Central
  Document more details about the deploy configuration for Maven Central
  ChangeScreen2: Respect user preference for unified diff view

Change-Id: I423c9ce62d3f33d2ecf6c0c8cd2e669c09693976
2014-06-04 10:34:07 +09:00
David Pursehouse
5953773523 Merge "ChangeScreen2: Respect user preference for unified diff view" into stable-2.9 2014-06-04 01:33:15 +00:00
Edwin Kempin
210b636dc0 Release docs: Describe in more details how to publish to Maven Central
Change-Id: I69d335cbd6ba192b716782ed9379716c8a37861a
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-06-04 00:54:38 +00:00
Edwin Kempin
5cc204e2ba Document more details about the deploy configuration for Maven Central
Change-Id: Ie1e3a4d0f3ca8a7e3a36efd729caac3eb6ed7121
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-06-03 20:11:53 +02:00
David Pursehouse
4b5fc42317 Merge branch 'stable-2.9'
* stable-2.9:
  Release docs: describe how to upload the WAR to the Google Cloud Storage
  Minor fixes in release documentation
  Describe in the release documentation how to update versions

Conflicts:
	Documentation/dev-release.txt

Change-Id: I270673cd9a96d3bc755f4bfe0dbc7c7fc0777172
2014-06-03 23:30:41 +09:00
Edwin Kempin
0f0de7bafe Merge "Fix typo in license documentation generator" 2014-06-03 13:28:34 +00:00
David Pursehouse
8fb8d6fb39 Fix typo in license documentation generator
Change-Id: Ic4cd0d6481232952dbef90c52b91bd54111e1621
2014-06-03 22:26:49 +09:00
Edwin Kempin
33d8738a92 ChangeScreen2: Respect user preference for unified diff view
Change-Id: I6ca7c3957bc111bb1a6bc8a73c607fbe75db6ea5
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-06-03 15:05:54 +02:00
Edwin Kempin
e5b4943e48 Release docs: describe how to upload the WAR to the Google Cloud Storage
Publishing the WAR file is more important than publishing the plugin
artifacts. This is why the section that describes the publishing of
the WAR file should come first.

Change-Id: Ibc0bea4d8a70a1b737f62ff4c9978fb0081d720d
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-06-03 10:51:30 +02:00
David Pursehouse
be5b2946ee Minor fixes in release documentation
Change-Id: I3d218019af9331b3bb04eb5871ea30f03e2933c0
(cherry picked from commit 0c104027ccd98436994b49208c615f32cb679392)
2014-06-03 08:44:34 +00:00
Edwin Kempin
6ba21941e4 Describe in the release documentation how to update versions
Change-Id: If097829f5e7a80871593ed115b3966192254708c
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-06-03 09:16:20 +02:00
David Pursehouse
f847f88ef1 Merge "Clarify the List Comments REST endpoint" 2014-06-03 00:55:37 +00:00
Khai Do
23845a1e6f Clarify the List Comments REST endpoint
The List Comments endpoint is a little confusing because users
expect this to get file as well as message comments.  This
endpoint only retrieves the former, not the latter.  Message
comments can be retrieved with the Get Change Detail endpoint.
This change just updates the docs to be more clear.

Issue: 2693
Change-Id: Id4fcbcaa0e755cc650cbaaf07b57dbae7e4a370f
2014-06-02 11:59:32 -07:00
David Pursehouse
2f25904b06 Merge branch 'stable-2.9'
* stable-2.9:
  Recheck change mergeability status on restore
  Add missing documentation of changes REST API index endpoint
  Update plugin owned capabilities documentation
  Populate CodeReviewCommit before passing to MergeValidators

Change-Id: Ia65a58b137f29b4c21b4c8cc44fb3b12033fc62c
2014-06-02 23:37:06 +09:00
Edwin Kempin
8023b5d9b6 Merge "Populate CodeReviewCommit before passing to MergeValidators" into stable-2.9 v2.9-rc2 2014-06-02 13:35:53 +00:00
Edwin Kempin
b182fc11de Merge "Add missing documentation of changes REST API index endpoint" into stable-2.9 2014-06-02 13:26:21 +00:00
David Pursehouse
9476ea52ef Recheck change mergeability status on restore
Bug: Issue 2692
Change-Id: I2085218c80b122cc296e03ff43c4a95c4196ba43
2014-06-02 12:36:10 +00:00
David Pursehouse
4e38b97171 Add missing documentation of changes REST API index endpoint
Change-Id: Ic89a44b772f9e4cd3f3420f3a689e6126e4ebb6b
2014-06-02 05:44:40 +00:00
David Pursehouse
0c104027cc Minor fixes in release documentation
Change-Id: I3d218019af9331b3bb04eb5871ea30f03e2933c0
2014-06-02 10:00:57 +09:00
Dariusz Luksza
112d93a3bc Update plugin owned capabilities documentation
Mention in first sentence that capabilities can be also used with
UiActions. Also fixes small copy-paste error from UiActions section.

Change-Id: I686e7b40f04216367751b8829295973fa6fa2c09
Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
2014-06-01 16:52:23 +02:00
Dave Borowitz
facf9d55ec Populate CodeReviewCommit before passing to MergeValidators
The onPreMerge method of MergeValidationListener may reasonably
assume that the fields of CodeReviewCommit are populated, for example
that commit.notes() will not NPE. The previous ordering of code in
MergeOp.validateChangeList() made this assumption false.

Change-Id: I9bd9e76bb09a25faf57df7080cdb0c8f878a7471
2014-05-31 14:37:38 -07:00
David Pursehouse
fe5d46536f Fix deprecation warnings introduced with upgrade to GWT 2.6.1
Change-Id: I53a4a82deb96a1cf22436b9428c2c4b4f5dec430
2014-05-30 16:43:47 +09:00
Shawn Pearce
9662b50bb1 Merge "Move ChangeKind to PatchSetAttribute" 2014-05-29 20:49:42 +00:00
David Ostrovsky
631c963931 Remove kind attribute from REST containers
It seems like new REST endpoints don't include "kind" attribute. This
change removes it from the code and documentation.

Change-Id: Ia73fb92ce01461e7de140b138fc72583b00170bc
2014-05-29 20:47:51 +00:00
Doug Kelly
0c6bc94d0a Move ChangeKind to PatchSetAttribute
When adding the ChangeKind for JSON data, I added it into
PatchSetCreatedEvent which ended up being a pretty lousy place to
add it, since it has little to do with the event, and more to do
with the PatchSetAttribute itself.  This moves the data to the
PatchSet JSON structure, alongside the draft attribute.

Change-Id: Ia3791789af2ddb6efc70d78f38595519b5d6ab5f
2014-05-29 15:42:08 -05:00
Shawn Pearce
7af3ec348e Merge "Move more endpoints to singleton scope and remove providers" 2014-05-29 19:52:07 +00:00
Shawn Pearce
50094558b3 Merge "ChangeInserter: Remove unused parameter" 2014-05-29 19:38:15 +00:00
Shawn Pearce
9254422741 Fix broken unit test build in gerrit-common
Change-Id: I3580aea7142d5bc78ce521a0ffb568b86d094449
2014-05-29 19:31:39 +00:00
David Ostrovsky
2bea4028e8 Move more endpoints to singleton scope and remove providers
Ia2ac8cfcc moved some REST endpoints to singleton scope, but missed
to remove providers from these endpoints, where they get injected.

When a singleton injects another singleton, this is only an overhead
to inject it as a provider to singleton and not directly.

Change-Id: I6d6f361cc2c46440845ef13ccacb8ec4f28c9b36
2014-05-29 21:31:25 +02:00
Shawn Pearce
3d9974a39d Merge "Allow to customize Submit button label and tooltip" 2014-05-29 17:35:33 +00:00
David Ostrovsky
9933eb35df Allow to customize Submit button label and tooltip
Ibe3547942 renamed "Submit" button to "Merge Change" with justification
why to prefer "Merge Change" label over "Submit".

I5d7e1d21a reverted that change and restored it back to "Submit" with
another justification for why "Merge Change" can be misleading.

This change externalize the label name and tooltip for Submit button
to enable site administrator to customize it.

Bug: issue 2667
Change-Id: Iec78b31051f6b0022af1f337f5d492b78c7df096
2014-05-29 10:34:45 -07:00
David Ostrovsky
b559de9a37 ChangeInserter: Remove unused parameter
Change-Id: Icc0536e17f8b4287d8ee8e4e5ca15b443e34126c
2014-05-29 19:29:16 +02:00
Shawn Pearce
4bb2163795 Merge branch 'stable-2.9'
* stable-2.9:
  SideBySide2: Do not offer 'r' keybinding to anonymous users
  SideBySide2: Hide reviewed checkbox if not signed in
  Fix AccountInfo.has_avatar_info() that wrongly always returns true
2014-05-29 10:07:04 -07:00
Shawn Pearce
b8dd435dec SideBySide2: Do not offer 'r' keybinding to anonymous users
Anonymous users cannot mark a file as reviewed, as the server
has no way to track the stored flag. Disable the keybinding
so it does not appear in the help dialog.

Change-Id: I415a24754d1b4b5120b5b40e074ee697cf921b52
2014-05-29 09:32:59 -07:00
Shawn Pearce
4b106624eb SideBySide2: Hide reviewed checkbox if not signed in
Users cannot mark a file as reviewed unless they are signed in, as the
server needs the user identity to store the reviewed flag. The checkbox
is hidden on ChangeScreen2 for anonymous users, so hide it in SBS2.

Change-Id: I96605222fab5ab0cb64c157b51dc4ca92ec4732d
2014-05-29 09:31:25 -07:00
Shawn Pearce
901cbb4c01 Merge "New change screen: Display avatar for change owner" 2014-05-29 06:58:13 +00:00
Edwin Kempin
23e4318029 New change screen: Display avatar for change owner
Change-Id: I45790e6d25bf4c266d04a51e56e194b1a09a96c2
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-05-28 23:57:14 -07:00
Shawn Pearce
b8c4b1c7f4 Merge "New change screen: Display avatar images for author and committer" 2014-05-29 06:47:31 +00:00