Skip to content
代码片段 群组 项目
提交 d3549cfd 编辑于 作者: Lukas Eipert's avatar Lukas Eipert
浏览文件

Create more generic fetchUserCounts

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.
上级 45b21750
No related branches found
No related tags found
无相关合并请求
显示
99 个添加47 个删除
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册