Convert SubscriptionHistory create to an allowlist
Previously, the attributes stored to the GitlabSubscriptionHistory table were selected using a denylist. This caused issues with attributes being added to this list and then going through the canary stage for deployment. Using the denylist approach, we tried to fetch the attributes from the database directly and then save those to the history table. This meant that the new attribute (which was deployed to main and canary at the same time) would attempt to be stored to the history table as the denylist was only deployed to canary. This caused errors updating subscriptions in the main stage. EE: true MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/89370 Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/360628
显示
- ee/app/models/gitlab_subscription.rb 3 个添加, 14 个删除ee/app/models/gitlab_subscription.rb
- ee/app/models/gitlab_subscription_history.rb 43 个添加, 0 个删除ee/app/models/gitlab_subscription_history.rb
- ee/spec/models/gitlab_subscription_history_spec.rb 61 个添加, 0 个删除ee/spec/models/gitlab_subscription_history_spec.rb
- ee/spec/models/gitlab_subscription_spec.rb 7 个添加, 8 个删除ee/spec/models/gitlab_subscription_spec.rb
加载中
想要评论请 注册 或 登录