Skip to content
代码片段 群组 项目
  • Albert Salim's avatar
    4662ae3e
    Extract counter implementation from a model concern · 4662ae3e
    Albert Salim 创作于
    To make the counter increment polymorphic between
    attributes that use Redis counter and legacy Rails counter,
    the increment implementation is extracted into two counter
    classes: Gitlab::Counters::BufferedCounter and
    Gitlab::Counters::LegacyCounter.
    
    Redis implementation is extracted from the concern
    into the BufferedCounter class.
    
    LegacyCounter wraps around existing ActiveRecord
    
    Operations on ProjectStatistics such as
    refreshing storage size and scheduling ScheduleAggregationWorker
    are performed in an after_commit_callback.
    4662ae3e
    历史
    Extract counter implementation from a model concern
    Albert Salim 创作于
    To make the counter increment polymorphic between
    attributes that use Redis counter and legacy Rails counter,
    the increment implementation is extracted into two counter
    classes: Gitlab::Counters::BufferedCounter and
    Gitlab::Counters::LegacyCounter.
    
    Redis implementation is extracted from the concern
    into the BufferedCounter class.
    
    LegacyCounter wraps around existing ActiveRecord
    
    Operations on ProjectStatistics such as
    refreshing storage size and scheduling ScheduleAggregationWorker
    are performed in an after_commit_callback.
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。