Add option to show ID in change table

Adds the ability for users to optionally select if they would
like to see the Change ID in the change table.

The following behaviour is expected:

As an anonymous/not logged in user the change table should
not show the ID.

For a logged in user by default the ID should not be shown
in the change table.

Once the user changes the setting in preferences the ID should
be shown in the change table.

The setting the user selects should be persistant across server
restarts.

Also updates Schema to 96.

Bug: issue 2646

Change-Id: I4f2d2df0b1d6e45958ddca952581410822f4895d
This commit is contained in:
Rob Ward
2014-05-02 17:16:12 +01:00
parent c32346958e
commit 5269a6090d
15 changed files with 103 additions and 12 deletions

View File

@@ -32,7 +32,7 @@ import java.util.List;
/** A version of the database schema. */
public abstract class SchemaVersion {
/** The current schema version. */
public static final Class<Schema_95> C = Schema_95.class;
public static final Class<Schema_96> C = Schema_96.class;
public static class Module extends AbstractModule {
@Override

View File

@@ -0,0 +1,25 @@
// Copyright (C) 2014 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.gerrit.server.schema;
import com.google.inject.Inject;
import com.google.inject.Provider;
public class Schema_96 extends SchemaVersion {
@Inject
Schema_96(Provider<Schema_95> prior) {
super(prior);
}
}