Skip to content
  • Simon Tomlinson's avatar
    23b5e1ae
    Register web_hook_logs for partitioning directly · 23b5e1ae
    Simon Tomlinson 创作于
    Before this change, we registered web_hook_logs for partitioning in the
    class, as normal. However this caused a bug if the feature flag
    web_hook_logs_daily_enabled was set because the feature flag
    changed the table_name read by the partition manager.
    
    Fix this by directly registering both web_hook_logs tables directly in
    the initializer, bypassing the feature flag and keeping tables
    compatible with both feature flag states.
    
    Fixes https://gitlab.com/gitlab-org/gitlab/-/issues/523921
    23b5e1ae
    Register web_hook_logs for partitioning directly
    Simon Tomlinson 创作于
    Before this change, we registered web_hook_logs for partitioning in the
    class, as normal. However this caused a bug if the feature flag
    web_hook_logs_daily_enabled was set because the feature flag
    changed the table_name read by the partition manager.
    
    Fix this by directly registering both web_hook_logs tables directly in
    the initializer, bypassing the feature flag and keeping tables
    compatible with both feature flag states.
    
    Fixes https://gitlab.com/gitlab-org/gitlab/-/issues/523921
加载中