Merge "Move 'User Refs' docs to the intro-user doc."

This commit is contained in:
Saša Živkov 2015-09-07 08:26:12 +00:00 committed by Gerrit Code Review
commit cbc9ed6548
2 changed files with 17 additions and 9 deletions

View File

@ -563,11 +563,23 @@ The project owner may enable link:user-upload.html#auto_merge[
auto-merge on push] to benefit from the automatic merge/rebase on auto-merge on push] to benefit from the automatic merge/rebase on
server side while pushing directly into the repository. server side while pushing directly into the repository.
[[user-refs]]
== User Refs
User configuration data such as link:#preferences[preferences] is
stored in the `All-Users` project under a per-user ref. The user's
ref is based on the user's account id which is an integer. The user
refs are sharded by the last two digits (`+nn+`) in the refname,
leading to refs of the format `+refs/users/nn/accountid+`.
[[preferences]] [[preferences]]
== Preferences == Preferences
There are several options to control the rendering in the Gerrit web UI. There are several options to control the rendering in the Gerrit web UI.
Users can configure their preferences under `Settings` > `Preferences`. Users can configure their preferences under `Settings` > `Preferences`.
The user's preferences are stored in a `git config` style file named
`preferences.config` under the link:#user-refs[user's ref] in the
`All-Users` project.
The following preferences can be configured: The following preferences can be configured:

View File

@ -3,15 +3,11 @@
[[user-named-queries]] [[user-named-queries]]
== User Named Queries == User Named Queries
It is possible to define named queries on a user level. To do It is possible to define named queries on a user level. To do
this, define the named queries in the `queries` file of this, define the named queries in the `queries` file under the
the user's account ref in the `All-Users` project. The user's link:intro-user.html#user-refs[user's ref] in the `All-Users` project. The
account ref is based on the user's account id which is an user's queries file is a 2 column tab delimited file. The left
integer. The account refs are sharded by the last two digits column represents the name of the query, and the right column
(`+nn+`) in the refname, leading to refs of the format represents the query expression represented by the name.
`+refs/users/nn/accountid+`. The user's queries file is a
2 column tab delimited file. The left column represents the
name of the query, and the right column represents the query
expression represented by the name.
Example queries file: Example queries file: