Skip to content
代码片段 群组 项目
  • Lukas Eipert's avatar
    d3549cfd
    Create more generic fetchUserCounts · d3549cfd
    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.
    d3549cfd
    历史
    Create more generic fetchUserCounts
    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.
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。