Create popup panel on avatar image only on mouse enter

Every time we make a AvatarImage, even if avatars are not enabled, a
new <div> is created in the top level document node to host a hidden
popup panel that can be used to display the larger avatar image. This
is horribly inefficient when loading a large page like "My > Changes"
with 100 changes on it.

Create the UserPopupPanel only when the mouse enters the AvatarImage
for the first time and the popup is actually displayed.

Change-Id: Ibda47f560137636d203653651540f8f7bb1dd995
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge remote-tracking branch 'origin/stable-2.7' into stable-2.7-typo3
Update 2.7 release notes with recent changes

Update with recent changes and mention that 2.7 includes the
fixes from 2.6.1 and 2.6.2.

Also fix a few minor formatting issues.

Change-Id: I990826715cfe6afd481491d8dea0ac78a734a2a7
Clarify that file:regex over is:watched never works

Change-Id: I5231ae2713954a453d9e311aaf03f5a055c6533f
Return inherited boolean values for settings from /projects/*/config

For the boolean project settings (use contributor agreements, etc.) the
ProjectInfoScreen shows the configured value ('TRUE', 'FALSE',
'INHERITED') and the boolean value that is inherited from the parent
project (so that the users knows which value applies if 'INHERITED' is
chosen). Include both values (the configured value and the inherited
value) in addition to the effective value into the result of the
get project configuration REST endpoint. This allows to use this REST
endpoint to populate the ProjectInfoScreen.

This change is incompatible with the previous result format of the get
project configuration REST endpoint. However this REST endpoint was
newly added in 2.7 and there is no final release yet that contains this
version of the REST endpoint.

In the REST documentation the description of the config-info entity is
moved up because the entities are sorted alphabetically.

Change-Id: I063d258c03d7e199e119dbc8921845f4970546de
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge branch 'stable-2.6' into stable-2.7

* stable-2.6:
  Clarify that file:regex over is:watched never works
Fix NullPointerException when comparing AccessSections

AccessSection.permissions and Permission.rules may not be set and null
values should be handled in the equals methods.

We saw this NPE when PermissionCollection tried to sort the access
sections.

Change-Id: I6f5a0886e6f9e5498fe9d756f289c5e91ed3485e
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
(cherry picked from commit 915104def3969fe5153bdc1e3e22f007483ff1aa)
Release notes for Gerrit 2.6.2

Change-Id: I601b56793f265603d608bc397f386d35c0cdf3b8
Mark ALREADY_MERGED changes as merged in the DB

If a change is marked ALREADY_MERGED, likely a result of a bug in the
merge code, it does not end up in the toSubmit list and so was never
being marked as merged, despite the branch head already having
advanced. Fix this so ALREADY_MERGED changes are updated to match the
branch state.

This does not fix any bugs in the merge code proper, but at least
allows recovery from a certain kind of bad state.

Works around (does not fix) bug 1985 and perhaps bug 600.

Change-Id: I44548cce039e303a86d579b0b0d76b12ad9bdcfb
Fix for issue 2016 ssh keys not flushed

ssh keys that are added and deleted via the command line command
set-account username --add-ssh-key don't take effect until after
the caches have been flushed manually. This is cause by the fact
that account.getUserName returns null.

Change-Id: I23e66d5734f21bb5e378cfb99d4507379fc9334b
Update 2.7 release notes with recent changes

Change-Id: I7a86cbef2cef869360049e330c4887bd5a52946b
Fix test skipping flag

Change-Id: I0f8bbb2e1d8b8659a2f57acc5c68eeb506e87ca5
TrivialRebase: Support custom labels

Change-Id: I99c8979725ced1a6191d4a5f94ab70378c5b260d
TrivialRebase: Avoid re-adding -2 for code-review label

Change-Id: I35dadcce6e151ccbbabe4d443262ff8e2b457f3e
Merge "TrivialRebase: Support custom labels" into stable-2.7
Merge "TrivialRebase: Avoid re-adding -2 for code-review label" into stable-2.7
TrivialRebase: Replace category_id with label

terms have changed in 2.6. schema still hasn't.

Change-Id: I1003d420fcd5b2f56b9c1dc7955f761c37253dc5
Say in gsql documentation that 'Access Database' capability is required

Since abd6d4e1d4ac11b7478c00289258a462d8544a24 the 'Access Database'
capability is required to run the gsql command.

Change-Id: I39b2b22be975172839ab9808649afcfc58994806
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge branch 'stable-2.6' into stable-2.7

* stable-2.6:
  Say in gsql documentation that 'Access Database' capability is required
  Release notes for Gerrit 2.6.2
  Fix NullPointerException when comparing AccessSections
Fix Gerrit plugins under Tomcat by avoiding Guice static filter

The static GuiceFilter breaks when a plugin loads and configures
its own web environment. Follow the pattern used by JettyServer
to initialize and load GuiceFilter in a non-static way, allowing
Gerrit to always have its own filter stack during any request.

Bug: issue 1966
Change-Id: I864f3badc4ec90154a276d35e6a5a3fa75058933