Merge branch 'stable-2.16'
* stable-2.16: Fix IAE when listing reviewers of change that has reviewers by email BugFix: Add documentation for 'read as' capability Fix assignee getting the owner's status on change list Change-Id: Idc07fa417d75eeb8d5944cf1fc8af353d8736650
This commit is contained in:
@@ -1362,6 +1362,12 @@ This limit applies not only to the link:cmd-query.html[`gerrit query`]
|
|||||||
command, but also to the web UI results pagination size.
|
command, but also to the web UI results pagination size.
|
||||||
|
|
||||||
|
|
||||||
|
[[capability_readAs]]
|
||||||
|
=== Read As
|
||||||
|
|
||||||
|
Allow users to impersonate any user to see which refs they can read.
|
||||||
|
|
||||||
|
|
||||||
[[capability_runAs]]
|
[[capability_runAs]]
|
||||||
=== Run As
|
=== Run As
|
||||||
|
|
||||||
|
@@ -165,8 +165,9 @@ limitations under the License.
|
|||||||
hidden$="[[isColumnHidden('Assignee', visibleChangeTableColumns)]]">
|
hidden$="[[isColumnHidden('Assignee', visibleChangeTableColumns)]]">
|
||||||
<template is="dom-if" if="[[change.assignee]]">
|
<template is="dom-if" if="[[change.assignee]]">
|
||||||
<gr-account-link
|
<gr-account-link
|
||||||
|
id="assigneeAccountLink"
|
||||||
account="[[change.assignee]]"
|
account="[[change.assignee]]"
|
||||||
additional-text="[[_computeAccountStatusString(change.owner)]]"></gr-account-link>
|
additional-text="[[_computeAccountStatusString(change.assignee)]]"></gr-account-link>
|
||||||
</template>
|
</template>
|
||||||
<template is="dom-if" if="[[!change.assignee]]">
|
<template is="dom-if" if="[[!change.assignee]]">
|
||||||
<span class="placeholder">--</span>
|
<span class="placeholder">--</span>
|
||||||
|
@@ -182,10 +182,13 @@ limitations under the License.
|
|||||||
element.change = {
|
element.change = {
|
||||||
assignee: {
|
assignee: {
|
||||||
name: 'test',
|
name: 'test',
|
||||||
|
status: 'test',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
flushAsynchronousOperations();
|
flushAsynchronousOperations();
|
||||||
assert.isOk(element.$$('.assignee gr-account-link'));
|
assert.isOk(element.$$('.assignee gr-account-link'));
|
||||||
|
assert.equal(Polymer.dom(element.root)
|
||||||
|
.querySelector('#assigneeAccountLink').additionalText, '(test)');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('_computeAccountStatusString', () => {
|
test('_computeAccountStatusString', () => {
|
||||||
|
Reference in New Issue
Block a user