This implements Add Transfer tab/app to conditionally render in CE (#393443 - closed)
usage_quotas_for_all_editions
Feature Flag.data_transfer_monitoring
Feature Flag.Now that we finished with #440195 (closed), i.e. after we merge !143633 (merged) and !143637 (merged), we're now able to migrate other tabs. The migration here is simpler because we just need to conditionally render this tab.
In other words: This tab will be hooked to an App that is in CE
but will only render in EE
.
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
usage_quotas_for_all_editions off |
usage_quotas_for_all_editions on |
---|---|
![]() |
![]() |
data_transfer_monitoring
feature flag
bin/rails console
Feature.enable(:data_transfer_monitoring)
bin/rails console
PopulateDataTransfer.run(<group_id>)
in the console; e.g. PopulateDataTransfer.run(89)
q
then type exit
to get back to the normal command promptSettings
-> Usage quotas
Transfer
tabWe need to validate this in 4 scenarios:
export FOSS_ONLY=1
gdk restart
CE
Now go to your Group Usage Quotas: https://gdk.test:3443/groups/<your-group-here>/-/usage_quotas
and check if your local setup matches the expected behavior.
Feature.enable(:usage_quotas_for_all_editions)
Feature.disable(:usage_quotas_for_all_editions)
Expected behavior:
GitLab Distribution | Expected behavior FF off | Expected behavior FF on |
---|---|---|
GitLab EE Unlicensed | Renders a 404 page |
Renders the Transfer tab alongside the others |
GitLab EE | Loads the page normally | Renders the Transfer tab alongside the others |
GitLab SaaS | Page loads normally | Renders the Transfer tab alongside the others |
GitLab CE | Renders a 404 page |
Renders only the storage tab |