9398 Commits

Author SHA1 Message Date
Edwin Kempin
db59610367 Merge "Set uploader to current user in "patchset-created" event upon cherry-picking" into stable-2.8 2014-04-10 13:33:23 +00:00
Christian Aistleitner
980c5bf9ef Set uploader to current user in "patchset-created" event upon cherry-picking
When using the web ui (both old and new ChangeScreen) to cherry-pick a
change to a branch that already has this change (e.g.: cherry-picking
on the same branch to get rid of dependencies), the corresponding
patchset-created event had its patchSet.uploader set to the Change's
owner instead of the current user. We now set it to the current user,
so stream-events consumers can properly detect who uploaded the
rebased patch set.

Change-Id: I0613ecae06b7843b8ca0294f83378c3917c26810
2014-04-10 14:30:22 +02:00
Edwin Kempin
69fd3a468d Fix JavaDoc warning
The JavaDoc generation reported the following warning:

  .../EmailReviewCommentsExecutor.java:29: warning - Tag @link:
    reference not found: EmailReviewComments

Change-Id: If30a0e08ccbcea0ee55d208cc2dc6840c4dab00e
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
(cherry picked from commit a5d2ad3933bd021d6a5a947642bf14bcfd1b998b)
2014-04-10 11:50:30 +00:00
Shawn Pearce
b4eb7ef652 SideBySide2: Show [ and ] shortcut keys in nav arrow tooltips
In the top right corner of a file the navigation cluster has a
tooltip on the up arrow but did not show the tooltip on the left
or right arrows. Show the key in the tooltip.

Change-Id: I192ef0ab8155c15b4bb35a18da33f74f15bb5537
2014-04-10 16:06:42 +09:00
Edwin Kempin
9f821d2ba9 Merge "Always auto confirm adding reviewers for set-reviewers SSH command" into stable-2.8 2014-04-10 06:28:47 +00:00
Edwin Kempin
1b9a36a091 Always auto confirm adding reviewers for set-reviewers SSH command
If a group contains more than 'addreviewer.maxWithoutConfirmation'
members adding it as reviewer to a change requires a confirmation. A
user should only be asked for the confirmation when reviewers are
added from the WebUI but not when the set-reviewers SSH command is
used. This is also how 'addreviewer.maxWithoutConfirmation' is
documented in 'config-gerrit.txt'.

Bug: issue 2599
Change-Id: Ieab601e573115a0b034e1dcebe1c602adda6770b
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-04-09 13:01:30 +00:00
Edwin Kempin
cecf90acc1 Improve wording of 'parents' field description in CommitInfo
Change-Id: I5d136856f4d9794b74914579b39f2a1da3eb4ce8
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-04-09 14:58:35 +02:00
Edwin Kempin
0bb245720d Merge "Fix 'parents' field name of CommitInfo in REST documentation" into stable-2.8 2014-04-09 11:06:42 +00:00
Edwin Kempin
b89b0c83f2 Fix 'parents' field name of CommitInfo in REST documentation
Change-Id: I804ab1f8034ac9fb1be9d178acce509f6d997d09
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-04-09 12:51:18 +02:00
Anthony Chin
20e375ddcd Implement pagination in project list screen
The project list screen was taking a long time to render over a large
amount of projects (1,000+) and with even larger number of projects
(3,000+), it could make the browser unresponsive.

Project list screen now uses pagination to resolve this issue. The
number of projects displayed is determined by the 'Maximum Page Size'
user preference.

Bug: issue 2215
Change-Id: Icd0a7d54fd5c5b3c2301c31026e7c6717a648a24
2014-04-09 09:09:14 +09:00
Anthony Chin
f7c82e1bbc Add option 'S' to projects REST API to support query offset
List projects endpoint has an option to limit the number of results
returned but it was missing an option to start at a nonzero offset in
order to support results paging.

Add and document 'S' option which allow to query project list starting
at a nonzero offset. Also add missing documentation for the 'n' option
which limits the number of results.

Those 2 options will be then used to render project list with pagination
in web UI.

Change-Id: I19c4cd1cfa6ed78f22c84f249af54a5c30387561
2014-04-09 09:09:02 +09:00
Bruce Zu
92e1ea5ac9 Fix: Failure of acceptance tests.
a7e34313 broken the acceptance tests.
Fixed.

Change-Id: I577cc875bcce3013cabd2f1b6813e7be820d4b3c
2014-04-08 21:33:36 +08:00
Hugo Arès
f79fd10f3b Do not refresh project list if filter did not change
Every time key up event is raised in the project list filter text box,
the project list was getting refreshed even if the filter did not
change (e.g. moving the cursor was refreshing the list).

Only call the refresh if the filter changed or if enter key is pressed.

Change-Id: I2e608d89e16dbef0cfe1e503ac2feb4639c27f5d
2014-04-08 13:18:52 +09:00
Bruce Zu
72bced0061 Fix inconsistent behavior of diff view when viewing binary files
In the new change screen, if the user clicks on a binary file in
the file list, the unified view is used.  Then when navigating to
a previous or next file that is not binary, the diff view stays in
the old unified setting.  It is only possible to get back to the
new side-by-side view by going back to the change screen and then
opening the non-binary file from there.

To keep consistent behavior of diff view, always use unified diff
for binary files.  Use the user's preference setting for non-binary
files.

Change-Id: Ie4ece4cb740df8a69cbf3d2d42e4b0fb05461520
2014-04-08 12:59:26 +09:00
David Pursehouse
bb9c63a3a9 Update cookbook plugin to latest revision
- Fix plugin name in REST API documentation synopsis lines

Change-Id: I3bcf6da0e4ec3fb76aab3a93e08da427df39c09b
2014-04-07 22:04:15 +09:00
David Pursehouse
503d9b2b33 Correct Javadoc of RestReadView in extension API
The resource parameter specifies the resource to be read,
not the resource to be modified.

Change-Id: I4010674a348cefad02c234118ff25cf332dd76b4
2014-04-04 18:36:44 +09:00
David Pursehouse
3c666334c9 Merge "Fix memory leak of SubIndex.NrtFuture objects" into stable-2.8 2014-04-04 05:52:47 +00:00
Jay Soffian
701218b8d0 Emit ref-updated event when editing project access via web UI
3daa739e13 took care of firing the ref-updated event for updates via the
web UI access pane, but not changes via the web UI general pane, which
uses the REST 'PUT /projects/:project-name/config' endpoint. This commit
takes care of that case, as well as the REST
'PUT /projects/:project-name/description' endpoint.

Note: there's still no ref-updated event for the case of changing a
project from "hidden" state back to read-only or "active" as hooks are
suppressed for hidden projects deeper in the code.

Bug: Issue 2571
Change-Id: I0a260011c0968193ccb5900a18935e654d25f042
2014-04-03 13:29:16 -04:00
Hugo Arès
483f12b8dc Fix ChangeListener auto-registered implementations
Add missing @ExtensionPoint in ChangeListener so implementors can use
@Listen to register.

Change-Id: Ia7fd16a7afdffbfc278880317fd10297f8b9e19d
(cherry picked from commit eff0592a70ce7fb3dee91abd5262dd462339591e)
2014-04-03 08:16:43 +00:00
Bruce Zu
a7e3431317 Fix: The email notification of review comments gets stuck.
Sometimes it is found that one thread goes stuck when waiting
for an answer from the SMTP server.

Fixed. Enable user to

 -config the timeout value of opening a socket connected to a remote
  SMTP server.

 -config the worker-thread pool size of executor used for sending out
  review comments notification when it is not enough to dedicate only
  one thread.

 -config the default size of the background execution thread pool when
  one thread is not enough to handle miscellaneous tasks including
  sending out every kind email notification.

Change-Id: Id8177b374f7049cfac617c50e66b2c83ae71641b
2014-04-03 14:40:23 +08:00
Bruce Zu
4174e56a9a Fix memory leak of SubIndex.NrtFuture objects
The SubIndex.NrtFuture objects are added as listeners of
searchManager who was found to hold on to them forever.

Fixed. There are also some code refactoring in NrtFuture.

Change-Id: If87cb62890a1cfa6c6336f6c7953a1cb56d42937
2014-04-03 13:34:15 +08:00
Shawn Pearce
902686a8d8 Merge "Make skip bar more user friendly" into stable-2.8 2014-03-27 15:50:07 +00:00
David Pursehouse
a8861d04f9 Use consistent grammatical tense in command descriptions
Change-Id: Iee7f99ec9f133b1e7cfb73a29e90cc2f28ac75ca
2014-03-26 22:23:34 -07:00
Dariusz Luksza
48c1f20ef7 Make skip bar more user friendly
It is odd to put block expansion link only on number of skipped lines.
This change puts link on whole sentence "... skipped XX common lines
...".

Change-Id: I5c48a26fa7fa8758e35386994b80ef741e3ffa50
Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
2014-03-27 05:11:41 +01:00
David Pursehouse
c06a36c1bf Bump version to 2.8.4 in plugin API and archetypes
Change-Id: Icb5153289195b6ea8539f21ef89e0a33c34b37de
2014-03-26 18:01:33 -07:00
David Pursehouse
9a13f852f0 Helper script to update API version in plugin archetype pom files
Running the script in the root of the Gerrit folder:

  ./tools/version NEW_VERSION

will replace the value in the first occurrence of the <version> tag
in the plugin archetype pom files with the value specified by
NEW_VERSION.

Change-Id: I9f529852af22a1eef7f30e2fcaea8acea28057d9
2014-03-26 18:01:33 -07:00
Shawn Pearce
b547ca9d7b Serialize GWT dbg and opt compiles
The GWT compiler swamps a system when it builds, using multiple
threads to build each permutation in parallel. It also requires
a lot of RAM. Buck is not aware of the cost of the genrule and
currently schedules both to build at the same time.

Make ui_opt depend on ui_dbg so Buck is forced to serialize these
build steps, reducing the load on average systems while possibly
extending build time on very powerful (e.g.  16 core) systems.

Change-Id: Icc1856c9c4e7919c28dc533e792fa25aadcdf801
2014-03-26 18:01:32 -07:00
David Pursehouse
0337f85377 Bump GERRIT_VERSION to 2.8.4
Change-Id: I3d1300a0d87e9ca59d971cc20f162d9f9eb8237f
2014-03-26 16:42:57 -07:00
Julien Pivotto
3374a0bd63 Update the mysql documentation concerning charsets
This commit changes the mysql setup documentation because
there is no need to use latin1 encoding if you are using
another engine than the MyISAM engine.

Bug: Issue 1273
Change-Id: I432957381385c3e0390bb0db245139954300ecb8
(cherry picked from commit 13d07ecc7cd98cfd928a2b06d8755aea1fddde61)
2014-03-26 23:41:53 +00:00
Lewis Diamond
59e2108311 By default don't allow admins to create new branches by push
When pushing changes it is easy to make a typo in the refspec and
in this case new branches should not be created. If administrators
want to create branches by push they should explicitly assign
themselves the needed access rights.

This was broken by [1].

[1] https://gerrit-review.googlesource.com/#/c/54048/

Change-Id: I768bfd6d7cb193b0ec9f51c3fa768087ceb91acd
Bug: Issue 2557
2014-03-26 23:14:11 +00:00
Bruce Zu
af058e6dd3 Disable commitWithin when running Reindex
Disable the 'commitWithin' from within Reindex by overriding
the configuration with '-1'. Treat negative values as the
original behavior, auto-flushing but not auto-committing, which
is the least safe but the most efficient for reindexing the
entire site. 

Change-Id: Ifdba797bee871d2a3d8928810a6304bacb850c8c
2014-03-26 18:05:10 +00:00
Jay Soffian
3daa739e13 Emit ref-updated event when editing project access via web UI
Bug: Issue 2564
Change-Id: I9426f6969a234b081f72197ed0cb061512bc6e09
2014-03-26 17:00:28 +00:00
David Ostrovsky
f56a8c687f SideBySide2: Fix syntax highlighting for shell files
Change-Id: I7b209eaeeb131d5e9c7a6d8417acca91bcb699cc
(cherry picked from commit 866c8e92a402a28427097e17285f6c179c98933c)
2014-03-26 04:32:14 +00:00
David Ostrovsky
fc5a2b8ef4 ChangeScreen2: Respect comment visibility strategy
Bug: Issue 2456
Change-Id: I71f9ae2664a8f8c7f4eb8e019696764982781f58
2014-03-26 00:07:58 +00:00
David Pursehouse
9c8791c8a5 Don't add "Patch File" download link for merge commits
The patch download does not work for commits with more than
one parent.

Bug: Issue 2538
Change-Id: I631500ab2b30c213f62d517cd492a1aca52f1211
2014-03-24 19:44:29 -07:00
Fredrik Luthander
d6c5925305 Access-control: Adding drafts to examples
Change-Id: I24c58a9a7ad0b73e9a06b1a87f01c9f299b623f0
Signed-off-by: Fredrik Luthander <fredrik@gandaraj.com>
2014-03-24 11:47:20 -07:00
David Pursehouse
e56d09df11 Hide refs/heads/ prefix in cherry-pick branch suggestion list
Bug: Issue 2526
Change-Id: I82b8bf7f6abbdfbade7f508f2b974a98d8ca39b4
2014-03-24 16:12:23 +00:00
David Pursehouse
218b15778e Disable "save" button while saving commit message edit
After editing the commit message and pressing "save", the button
remains active until the message is saved and the dialog is closed.

Usually the edit completes quickly, but on some systems where the
network is slow it can take a few seconds.  If the user presses the
"save" button again (perhaps more than once) it will result in more
than one edit request being sent.  This can in some cases result in
inconsistency between the database and the git repository, which
prevents the change from being viewed any more until a new patch set
is manually uploaded.

Disable the "save" button after it has been pressed, to prevent this.

Change-Id: I820095a1d91b7fd7c498c7c24fa5e7e81e40a7eb
2014-03-23 13:47:09 -07:00
Shawn Pearce
a3cce719fa Fix typo in REST API example for /test.submit_rule
Change-Id: I122aa4168b89fec2dc353718db847ef6a764ef71
2014-03-22 21:34:36 +00:00
David Pursehouse
9354c1a57d Documentation: mention that index.commitWithin uses time units
Change-Id: I54a17369ce6395190b8a0c02fb77b260251cc6ba
2014-03-22 20:19:43 +00:00
Fredrik Luthander
b8eaa084f9 Access-control: Administrators no longer have all capabilities by default
Update the documentation accordingly.

Change-Id: If62076b4671a3a46a68ef9dab12c462b90df2b50
Signed-off-by: Fredrik Luthander <fredrik@gandaraj.com>
2014-03-22 20:18:27 +00:00
Fredrik Luthander
9c949388de Access-control: Specifying what is meant by ssh access
As the owner still can't create a branch by pushing a reference over
ssh I think the previous statement isn't as clear as it could be.
Original commit 7ec4ac71ffa58f32e1443b0ca0110417244983c0 seems to
only deal with the create-branch command, not changing the behavior
over creating a reference by pushing it (over ssh).

Change-Id: Iac3f52b10ee6a92862622e8699c5daa1d4749247
Signed-off-by: Fredrik Luthander <fredrik@gandaraj.com>
2014-03-22 09:34:42 -07:00
David Ostrovsky
73c3ad9e56 Escape dollar sign in plugin manifest entries
Escape dollar sign in plugin manifest entries, to prevent that
it is interpreted by the shell and thus get removed.

Change-Id: Iefd8abdcd207cb985f8156c7e41c094c1aa12b27
2014-03-19 00:43:21 +00:00
David Pursehouse
904db308cf Add documentation of the index.threads setting
Change-Id: I4e7b737791968123d78c19ef558327609ef11b30
2014-03-17 18:57:04 +09:00
David Pursehouse
3fc5ee379d Reformat index documentation
Move the paragraphs about running the reindex program and the index
names up to the top of the index section.  It makes more sense to
have them there, than in the middle of the setting descriptions.

Change-Id: I875a66173f752554803ca95bc166fba0dfbcd315
2014-03-17 18:55:54 +09:00
David Pursehouse
315ef42e3e Release notes for Gerrit 2.8.3
Change-Id: Ic0bd16b0a0f174aac7039ede83e557750e506217
v2.8.3
2014-03-14 16:26:26 +09:00
David Pursehouse
3cd6de0d6a Add clarification about commitWithin setting and reindex
If the commitWithin setting is low, it can cause the reindex to
run slowly.  Add a note in the documentation about this.

Change-Id: If4c394443bde89be4bfc1505d33322089e671493
2014-03-14 16:24:14 +09:00
David Pursehouse
50d79c6203 Update cookbook plugin revision
Sets the correct API version in the pom.xml file.

Change-Id: I662d4dd2f6c2a18c64cc01cdb6193e24dc0fbad9
2014-03-14 15:55:43 +09:00
David Pursehouse
dbe619461f Bump version to 2.8.3 in plugin API and archetypes
Change-Id: I9c514489f31d223193139516c1d7a8ce059525e9
2014-03-14 15:55:43 +09:00
David Pursehouse
74d9bcecf2 Bump GERRIT_VERSION to 2.8.3
Change-Id: I7dd789d55d222ea66a3f52ca140412f169e7f976
2014-03-14 15:55:43 +09:00