Skip to content

Add background migration to expiry all OAuth tokens

Imre Farkas requested to merge if-oauth_tokens_migration_to_expire into master

What does this MR do and why?

This is a breaking change for %15.0.

In !86362 (merged), we are removing the backward compatibility for non-expiring OAuth tokens introduced. This MR makes sure that all existing tokens have an expiry, otherwise they would never expire.

Related to #340848 (closed)

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

Migration output

up

$ rake db:migrate:up:main VERSION=20220428133724                                                                                                                                                                
== 20220428133724 ScheduleExpireOAuthTokens: migrating ========================
== 20220428133724 ScheduleExpireOAuthTokens: migrated (0.0431s) ===============

down

$ rake db:migrate:up:main VERSION=20220428133724                                                                                                                                                                
== 20220428133724 ScheduleExpireOAuthTokens: migrating ========================
== 20220428133724 ScheduleExpireOAuthTokens: migrated (0.0431s) ===============

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Imre Farkas

Merge request reports

Loading