2461 Commits

Author SHA1 Message Date
Edwin Kempin
00aa3bfb97 Remove 'send email' checkbox from reply box on change screen
When replying to a change the 'send email' checkbox allowed to control
if the change update should trigger email notifications for other
users. This behaviour is bad for people who want to rely on email
notifications since it depends on the replying users whether they get
an email notification or not. By removing the 'send email' checkbox
people are again in control about their own email notifications, e.g.
by the watch settings they can configure which emails they want to
receive. Still suppressing email notifications via the REST API is
possible (and wanted, e.g. for CI jobs).

Change-Id: If11863da6020a1d5b7edc1ae1a1a60399b197267
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-16 13:56:17 +02:00
Edwin Kempin
77167754ef Add section about commit validation to project owner guide
Change-Id: I3f94fa27197ceacd1edc16f135ab42644fc042eb
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-16 06:50:39 +00:00
Edwin Kempin
ee5c3c6b73 Merge "Use recursive merge by default" 2014-07-16 00:46:32 +00:00
Edwin Kempin
a8747bab1a Merge "Update description of core.useRecursiveMerge" 2014-07-16 00:46:32 +00:00
Edwin Kempin
7853c5b94a Use recursive merge by default
If two commits that are merged have more than one common predecessor
the recursive merge is superior. In this situation the normal
non-recursive merge may even result in broken files without notice.
This is why the recursive merge should be enabled by default.

Change-Id: I4c5b8b2c6d406ec925da05838696c5c57f2348ef
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-15 14:34:07 +00:00
Edwin Kempin
71831d2707 Update description of core.useRecursiveMerge
The recursive merge in JGit is not new and experimental anymore.

Add a link to a blog that explains how the recursive merge works and
why it is better than the normal merge algorithm.

Change-Id: Ibeb9300d915f5702ebde9ff900db081ec1b2126e
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-15 16:33:47 +02:00
Hugo Arès
b8aae411a8 Add support for regex in project list screen
Add support for regex in project list screen filter. If filter start
with '^', then the filter will be interpreted as a regex.

Feature: Issue 2751
Change-Id: I1cf8a0f9fc18a6e286a2a26c71be77f1d4f16741
2014-07-15 09:50:20 -04:00
David Pursehouse
347216e6a0 Add documentation of review category strategy username preference
The USERNAME option was added, but was not mentioned in the
documentation.

Change-Id: Icd13f6a17de1717ab0952e46b17e2872c9e8ca14
2014-07-11 16:09:16 +09:00
David Pursehouse
77c055e618 Update description and error messages in review command
The description and error messages are outdated and are legacy of
the command originally being named "approve".

Change them to be more appropriate to the current usage of the
command, which is to apply reviews, which may or may not include
approvals, to patch sets.

Also rename the `approveOne` method to something more appropriate.

Change-Id: If95a24b8998bbac9a2ea410ecc05974674070e06
2014-07-11 07:04:35 +00:00
David Pursehouse
197f2e2667 Merge "Add a PUT example to rest api documentation" 2014-07-09 15:26:40 +00:00
Khai Do
990ec6abe2 Add a PUT example to rest api documentation
The exact REST command to do a PUT/POST was confusing me so adding
a more concrete example to the documentation.

I also noticed that other people had problems as well:
https://groups.google.com/d/msg/repo-discuss/lLJg59RJ5g0/4-r3SQu118wJ

Change-Id: Idd493b6a42eb3ef0a4f2001ca3449e90a71c493a
2014-07-10 20:44:53 -07:00
Khai Do
38ba5cc475 Add documentation for account preferences REST endpoint
Document the REST endpoint for getting/setting the general account
preferences.

Bug: issue 2084
Change-Id: I2fcf80194345d65cf3ac3e9985ea4922f6ce0180
2014-07-11 03:31:58 +00:00
Edwin Kempin
0a76254bb9 Merge "Add REST endpoint to kill a task" 2014-07-09 19:41:20 +00:00
Edwin Kempin
657c36006e Merge "Add REST endpoint to get a task" 2014-07-09 20:01:18 +00:00
Edwin Kempin
62946749c8 Add REST endpoint to ban commits
Change-Id: I941f76be00b9bce7f6f6f26925a82efe76fa42b5
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-10 15:24:24 +09:00
David Pursehouse
7a45964415 Merge changes Id8e48bb4,I138e60c5
* changes:
  Add REST endpoint to get content of a file in a commit
  Add REST endpoint to get an arbitrary commit from a project
2014-07-09 15:21:50 +00:00
David Pursehouse
4560488f1c Merge changes I30886e35,I4bdc9a71
* changes:
  Document all options of list projects endpoint
  Add acceptance tests for list projects endpoint
2014-07-09 15:26:40 +00:00
David Pursehouse
a012b019dc Fix broken formatting in rest-api-config documentation
Change-Id: Ida22ab6b3aaa03148baab7873023e269c30f9f68
2014-07-10 14:00:40 +09:00
David Pursehouse
56f60a477b Update the buck test documentation
- Reword the descriptions to make them a bit easier to read.

- Fix spelling mistake.

- Remove the unnecessary `--all` option from example commands.

- Mention that the test results cache can be ignored by using
  the `--no-results-cache` option.

Change-Id: Ie50ac5f2b286d96d4e88c5829c0fe0e75c132583
2014-07-10 04:59:40 +00:00
Hugo Arès
bdd7f68abb Document all options of list projects endpoint
Add missing documentation of all the possible options that list
projects endpoint supports.

Change-Id: I30886e35cfdec4bb0944b2951245cb4e863c3fd4
2014-07-09 16:13:15 -04:00
Edwin Kempin
6f7410aa6a Add REST endpoint to get content of a file in a commit
It is already possible to get the content of a file from the HEAD
revision of a branch. Add the same functionality for arbitrary
commits.

Change-Id: Id8e48bb40b4f383997aa9b83440a57ab90e763ee
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-09 15:50:16 +02:00
Edwin Kempin
1b99360cc7 Add REST endpoint to get an arbitrary commit from a project
Bug: issue 2604
Change-Id: I138e60c5291d61c379e947ea26b0fd9d5555c743
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-09 13:04:12 +00:00
Edwin Kempin
7e28381f0e Add REST endpoint to kill a task
The kill SSH command was adapted to make use of the new REST endpoint.

Change-Id: I7783ded83d4a027fcfeab7573101c9b6f9f69149
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-08 12:21:36 +00:00
Edwin Kempin
32e3a5246c Add REST endpoint to get a task
Change-Id: I7aec559ae8facc3dffdbbf555b7b21e1a8c728ae
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-08 13:32:05 +02:00
Edwin Kempin
990662d0b8 Merge "Support to retrieve reflog entries by timestamp" 2014-07-05 11:21:09 +00:00
Edwin Kempin
2a581fdb93 Support to retrieve reflog entries by timestamp
Change-Id: I9a865d8543a8e83d4d988ffbda8bf0166b76569a
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-04 14:48:49 +02:00
Edwin Kempin
87504d9a59 Add REST endpoint to get the reflog of a branch
Change-Id: I9c0b3fa430b46762774bfa43710c3bb01fd2799e
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-04 13:04:19 +02:00
Edwin Kempin
49098b8717 Add REST endpoint to list tasks
GET /config/server/tasks/ lists the task from the background work
queues.

The implementation of the SSH show-queue command was adapted so that
is uses the new REST endpoint to get the information about the tasks.
This avoids code duplication.

Change-Id: Iad0a94e8ed1395033aa7dbfe5fae0557601c3526
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-04 10:42:26 +02:00
Edwin Kempin
d00285e4ab Merge "Add REST endpoint to get server summary" 2014-07-02 18:57:01 +00:00
Edwin Kempin
2632fb19f5 Merge "Require 'Administrate Server' capability to see server summary" 2014-07-02 18:57:01 +00:00
Edwin Kempin
bb495c84fd Merge "Support flushing a set of caches at once via REST" 2014-07-02 18:57:01 +00:00
Edwin Kempin
e6ae606c99 Merge "Support flushing of all caches via REST" 2014-07-02 18:57:01 +00:00
Edwin Kempin
83aea06448 Merge "Support listing of cache names via REST" 2014-07-02 18:57:01 +00:00
Edwin Kempin
cb8eed4bcf Merge "Add REST endpoint to get the reflog of a branch" 2014-07-02 18:53:01 +00:00
David Pursehouse
902b3ee28f Restructure the documentation of secondary index settings
There are several settings that are only used by either the Lucene or
Solr index.  Instead of saying "Only used when the type is X" for each
of those settings, reorganise them into separate subsections specific
to each index.

The sentence describing the names of the indexes mentions names that
are only correct for the Solr index.  Move this under the newly created
Solr section, and add a new sentence with the correct names for the
Lucene index under the Lucene section.

Change-Id: I753895a75e7d9f8007a21b9de91a841bad257675
2014-07-09 16:20:57 +09:00
David Pursehouse
64a9b7404e Merge branch 'stable-2.9'
* stable-2.9:
  Release notes for Gerrit 2.8.6.1
  Remove reference to MyISAM from database setup documentation
  Update version to 2.8.6.1
  Upgrade gwtorm to 1.7.3
  Fix reference to Forge Committer access right in documentation
  Avoid avatar URL requests on load of change list
  Update 2.8.6 release notes with recent fixes
  Update SSHD to 0.11.1-atlassian-1
  Expose Atlassian's maven repository
  Update gwtorm to 1.7.1
  Buck: Strip SNAPSHOT suffix in artifact names only for GERRIT repositories

Conflicts:
	VERSION
	lib/maven.defs

Change-Id: Iacf4e3634cf4dbd2a1b86558f06cf5cdb0e50475
2014-07-09 10:43:12 +09:00
David Pursehouse
379e61e02c Merge branch 'stable-2.8' into stable-2.9
* stable-2.8:
  Release notes for Gerrit 2.8.6.1
  Remove reference to MyISAM from database setup documentation
  Update version to 2.8.6.1
  Upgrade gwtorm to 1.7.3

Conflicts:
	VERSION
	gerrit-plugin-archetype/pom.xml
	gerrit-plugin-gwt-archetype/pom.xml
	gerrit-plugin-gwtui/pom.xml
	gerrit-plugin-js-archetype/pom.xml
	lib/BUCK

Change-Id: Ic5046ad7a73aeb67313bfe8b6af1bda42d6723c9
2014-07-08 18:24:26 +09:00
David Pursehouse
e5c2acb6ae Remove reference to MyISAM from database setup documentation
From 2.8.6 only transactional databases are supported.

Change-Id: Ie0d94c40a371dd018b897113eca8b745a1000d2e
2014-07-04 19:50:59 +09:00
Edwin Kempin
4c3966c33c Merge "Add REST endpoint to flush a cache" 2014-07-02 18:53:01 +00:00
Dave Borowitz
5d44ddce9f Allow forcing mergeability check through the REST API.
Due to bugs like I8aeb0c87, some changes might end up with incorrect
values of the mergeable flag. They should normally correct themselves
as the branch advances, but provide an option to the /mergeable
endpoint for the impatient.

Change-Id: I961f9dccf67373946b153bb99f4fdac73f38cac4
2014-07-02 12:20:22 -07:00
Edwin Kempin
4053b21319 Fix reference to Forge Committer access right in documentation
The access right '+2 Forge Committer or Tagger Identity' in the
'Forge Identity' category doesn't exist anymore, but was replaced by
the 'Forge Committer' access right.

Change-Id: I786579407939b66ec886645fd687220e21ccb04d
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-08 07:24:01 +00:00
Edwin Kempin
d905e585ce Add REST endpoint to get server summary
Change-Id: Ibd24b2c13d3b791c90b49fe8e9a14688a26c36f4
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-01 14:53:13 +02:00
Edwin Kempin
4279d4b9c3 Require 'Administrate Server' capability to see server summary
The show-caches SSH command now only prints out the summary
information if the caller is an administrator. This is done because
the summary information contains system information which must not be
exposed to non-administrators. This means that the behaviour is
changed and users that only have the 'View Caches' capability are not
anymore able to see the summary information as they did before.

Change-Id: I3b5433b456d3b5f9d5de872a731470d2fe20623f
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-01 14:53:13 +02:00
Edwin Kempin
a3c6d039c2 Support flushing a set of caches at once via REST
Change-Id: I2e51e3138eea15b305c3fc5029e91aa6b2f0b4cb
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-01 14:53:13 +02:00
Edwin Kempin
a428683bc2 Support flushing of all caches via REST
Change-Id: I82807e71e7fceb7ba3bba23d51263b72998f251d
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-01 14:53:13 +02:00
Edwin Kempin
8dd941266f Support listing of cache names via REST
Change-Id: Ibab22bfa1e69f87a5918b2f250e22f0bcce132d9
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-01 14:53:04 +02:00
Edwin Kempin
37cc41a930 Add REST endpoint to flush a cache
Change-Id: Ic5d1ab37f5808d760e0d86b5956cce9557d0292b
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-07-01 10:45:32 +02:00
David Pursehouse
440e7f406f Docs: changes /index endpoint requires administrateServer capability
The documentation of the /index REST API endpoint was added
with commit 4e38b97171ed4851395655435ab88d7d93da6bee but omitted
to mention that the caller must be a member of a group that is
granted the administrateServer capability.

Change-Id: Ic71dcd887e2f7ec3ea3194102aa8cd4f6c539398
2014-06-27 14:56:42 +00:00
Edwin Kempin
89f734cbf1 Merge "Add UploadValidationListener extension point." 2014-06-26 21:53:19 +00:00
Edwin Kempin
88c0e0fc9a Merge "Add extension point to register JGit PreUploadHooks" 2014-06-29 18:15:17 +00:00