gerrit/gerrit-server/src/main/java/com/google/gerrit/server
Edwin Kempin 62c156857e Rename 'Push Annotated/Signed Tag' permission to 'Create Annotated/Signed Tag'
Each tag type requires a special permission for the tag creation:
- Lightweight tags require 'Create Reference'
- Annontated tags require 'Push Annotated Tag'
- Signed tags require 'Push Signed Tag'

This naming is inconsistent and may be confusing. E.g. whether tags
can be updated is controlled by the 'Push' permission on 'refs/tags/*'
and not by the 'Push Annotated/Signed Tag' permission, as some users
might expect.

This change includes a schema migration that renames the permissions
for creating annotated/signed tags.

Permission rules in project.config that use the old names are still
respected. They are automatically converted when the project config is
saved the next time. This is needed so that multi-master sites can do
a multi-step-migration:

1. First upgrade all hosts to the new binary:
   Projects may still contain permissions with the old names,
   new permissions are saved with the new names.
2. Run a background job on all hosts that migrates the permissions for
   all projects to the new names:
   Projects do not contain permissions with the old names,
   new permissions are saved with the new names.
3. Upgrade all hosts to a binary that doesn't respect the old names
   anymore.

The migration for schema 130 is rewritten because ProjectConfig no
longer allows to change the force flag for 'pushTag' without
converting it to 'createTag'.

Change-Id: I839be24f82a908b5184f15e746f3588a0d397b7e
Signed-off-by: Edwin Kempin <ekempin@google.com>
2016-09-08 13:50:04 +09:00
..
access Use native constructors instead of Guava to instantiate empty collections 2016-05-04 22:41:39 +09:00
account DeleteActive: Return 409 Conflict when account is already inactive 2016-09-06 06:40:53 +00:00
api Account API: Add methods to set account active/inactive 2016-09-02 17:27:01 +09:00
args4j Move AuthType from gerrit-reviewdb to extension API 2016-08-23 17:27:50 +09:00
auth Revert "Remove usage of to-be-deprecated Throwables" 2016-08-25 00:09:01 +00:00
avatar
cache Add missing license headers 2016-07-04 15:15:48 +02:00
change Merge "PostReviewers: Fail with specific message if reviewer is inactive" 2016-09-07 09:00:36 +00:00
config Merge branch 'stable-2.13' 2016-09-07 10:41:47 +09:00
data ChangeKind: Move to extension API 2016-07-01 17:44:28 +09:00
documentation Use SimpleQueryParser for doc search 2016-02-19 10:23:14 -08:00
edit Publish change edit: Delete edit ref in BatchUpdate 2016-08-23 13:04:42 +02:00
events ReviewerAddedListener: Notify multiple reviewers added in same event 2016-08-19 14:23:36 +02:00
extensions Remove deprecated AccountInfo get... methods from events API 2016-09-02 11:59:57 +00:00
git Rename 'Push Annotated/Signed Tag' permission to 'Create Annotated/Signed Tag' 2016-09-08 13:50:04 +09:00
group Move AuthType from gerrit-reviewdb to extension API 2016-08-23 17:27:50 +09:00
index Remove @Inject from IndexCollection constructor 2016-08-02 15:24:51 -07:00
ioutil Enable and fix 'Statement unnecessarily nested within else clause' warnings 2016-06-02 10:20:37 +09:00
mail MailSoyTofuProvider: Add missing trailing comma on array 2016-09-02 16:02:30 +09:00
mime
notedb Fix minor CheckStyle warnings 2016-08-29 15:07:32 +09:00
patch Specify UTF-8 instead of platform default charset 2016-09-03 22:44:06 -04:00
plugins PluginLoader, InitPluginStepsLoader: Consolidate methods to list plugins 2016-07-01 15:32:47 +09:00
project Rename 'Push Annotated/Signed Tag' permission to 'Create Annotated/Signed Tag' 2016-09-08 13:50:04 +09:00
query GetRelated: Reload change if it is stale 2016-09-07 09:13:15 +02:00
schema Rename 'Push Annotated/Signed Tag' permission to 'Create Annotated/Signed Tag' 2016-09-08 13:50:04 +09:00
securestore Allow plugins to store encypted settings in etc/$PLUGIN.secure.config 2016-07-28 10:50:42 +09:00
ssh NoSshKeyCache: Bind as singleton 2016-05-06 10:56:37 -04:00
tools Merge branch 'stable-2.12' 2016-08-10 11:31:04 +09:00
util Revert "Remove usage of to-be-deprecated Throwables" 2016-08-25 00:09:01 +00:00
validators Remove redundant modifiers from interfaces' methods 2016-04-12 21:44:27 +09:00
AccessPath.java
AnonymousUser.java Remove asynchronous loading of starred changes 2016-05-31 13:34:53 +02:00
ApprovalCopier.java Fix approval copying when labels are set on push 2016-08-18 16:49:51 -07:00
ApprovalsUtil.java ApprovalsUtil: Pass correct committerId to canSee 2016-08-25 00:25:55 +00:00
ChangeFinder.java InternalChangeQuery: Add a noFields builder method 2016-02-12 11:50:32 +09:00
ChangeMessagesUtil.java Fix IllegalStateException when running ChangeCleanup 2016-06-14 14:41:19 +00:00
ChangeUtil.java Remove public bumpRowVersionNoLastUpdatedOn from ChangeUtil 2016-05-03 08:40:47 -04:00
CmdLineParserModule.java
CommonConverters.java
CurrentUser.java Remove asynchronous loading of starred changes 2016-05-31 13:34:53 +02:00
EnableSignedPush.java
GerritPersonIdent.java
GerritPersonIdentProvider.java
GpgException.java
IdentifiedUser.java Add visibility check for account queries 2016-06-27 16:54:11 +02:00
InternalUser.java Remove asynchronous loading of starred changes 2016-05-31 13:34:53 +02:00
OptionUtil.java
OutputFormat.java
PatchLineCommentsUtil.java Add 'Parent $x' options to diff for merge commits 2016-07-15 10:55:29 +02:00
PatchSetUtil.java Support ChangeUpdates without providing a CurrentUser 2016-04-07 10:27:52 -04:00
PeerDaemonUser.java Remove asynchronous loading of starred changes 2016-05-31 13:34:53 +02:00
PluginUser.java
ProjectUtil.java
RemotePeer.java
RequestCleanup.java
ReviewerSet.java Always use REVIEW state in ReviewDb 2016-08-12 15:51:06 -07:00
ReviewerStatusUpdate.java Parse and serve reviewer updates via REST API 2016-08-05 10:17:09 -07:00
ReviewersUtil.java Small stylistic fixes to ReviewersUtil and AccountState 2016-07-21 17:02:00 -04:00
Sequences.java Configure NoteDb change sequence batch size with an option 2016-07-22 15:48:18 -04:00
StarredChangesUtil.java Remove asynchronous loading of starred changes 2016-05-31 13:34:53 +02:00
StringUtil.java Add missing trailing comma on array declarations 2016-04-13 17:27:30 +09:00
UrlEncoded.java
WebLinks.java Add missing whitespace around keywords, operators and braces 2016-04-11 19:51:18 +09:00