-
由 Lukas Eipert 创作于
The previous iteration of `refreshUserMergeRequestCounts` had a promise based API which wasn't necessary and the name suggested that it only updated a User's MR counts while under the hood it updated _all_ the counts. The function is now co-located with the super sidebar and has been renamed `fetchUserCounts` which is more generic. It is in a separate file to avoid side-effects when importing, which is ironic, because the whole function triggers a side-effect. All the uses of the function have been adjusted as well and tests for them added.
由 Lukas Eipert 创作于The previous iteration of `refreshUserMergeRequestCounts` had a promise based API which wasn't necessary and the name suggested that it only updated a User's MR counts while under the hood it updated _all_ the counts. The function is now co-located with the super sidebar and has been renamed `fetchUserCounts` which is more generic. It is in a separate file to avoid side-effects when importing, which is ironic, because the whole function triggers a side-effect. All the uses of the function have been adjusted as well and tests for them added.
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。