gerrit-review stops supporting default preferences

59 views
Skip to first unread message

Edwin Kempin

unread,
Jan 9, 2024, 8:26:20 AM1/9/24
to Repo and Gerrit Discussion, gerritcodereview-maintainers
Dear Gerrit contributors,

The gerrit-review server will no longer support default preferences (preferences that are stored in the refs/users/default branch of the All-Users repository).

So far we used this feature to set the default for the diff.lineLength preference (aka "Diff width" in the UI) to 80 characters. This setting controls after how many chars the vertical line for visualising the line length is shown on diff screens.

Now that default preferences are no longer supported, the hard-coded default of 100 will apply, unless you have set something else in your personal user preferences. This means, if you haven't set this preference yet and you want to keep the diff line length at 80 chars you have to set "Diff width" to 80 at https://gerrit-review.git.corp.google.com/settings/#DiffPreferences.

Sorry for the inconvenience.
Edwin on behalf of the Gerrit team at Google

Note: Only Gerrit servers hosted by Google will no longer support default preferences. For all other Gerrit servers default preferences continue to work.

Edwin Kempin

unread,
Jan 9, 2024, 8:28:03 AM1/9/24
to Repo and Gerrit Discussion, gerritcodereview-maintainers
On Tue, Jan 9, 2024 at 2:25 PM Edwin Kempin <eke...@google.com> wrote:
Dear Gerrit contributors,

The gerrit-review server will no longer support default preferences (preferences that are stored in the refs/users/default branch of the All-Users repository).

So far we used this feature to set the default for the diff.lineLength preference (aka "Diff width" in the UI) to 80 characters. This setting controls after how many chars the vertical line for visualising the line length is shown on diff screens.

Now that default preferences are no longer supported, the hard-coded default of 100 will apply, unless you have set something else in your personal user preferences. This means, if you haven't set this preference yet and you want to keep the diff line length at 80 chars you have to set "Diff width" to 80 at https://gerrit-review.git.corp.google.com/settings/#DiffPreferences.
Reply all
Reply to author
Forward
0 new messages