Skip to content

Disable Ultimate features for public projects with no activity

What does this MR do and why?

For https://gitlab.com/gitlab-org/gitlab/-/issues/352930

This migration aims at setting project_settings.legacy_open_source_license_available to false for existing public (visibility_level = 20) and NOT active in the last 12 months.

By setting this attribute to false, such projects stop getting Ultimate features. This is similar to a previous migration, !88310 (merged).

According to database-lab, the number of such projects whose setting will be updated is: 2321804

Migration

Up

$ bin/rails db:migrate:up:main VERSION=20220627090231

main: == 20220627090231 ScheduleDisableLegacyOpenSourceLicenseForInactivePublicProjects: migrating
main: == 20220627090231 ScheduleDisableLegacyOpenSourceLicenseForInactivePublicProjects: migrated (0.0695s)

Down

$ bin/rails db:migrate:down:main VERSION=20220627090231

main: == 20220627090231 ScheduleDisableLegacyOpenSourceLicenseForInactivePublicProjects: reverting
main: == 20220627090231 ScheduleDisableLegacyOpenSourceLicenseForInactivePublicProjects: reverted (0.0269s)

Screenshots or screen recordings

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

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 Alper Akgun

Merge request reports

Loading