Handle Gitlab::SyncOrderJob::SyncError
Problem
Handle Gitlab::SyncOrderJob::SyncError
Reported cases
There are multiple reasons for the sync error, including being unable to downgrade a gold trial b/c the namespace is not top level:
RuntimeError: Error updating namespace <namespace id> with params
{:plan=>nil, :trial_ends_on=>"<trial end date>", :shared_runners_minutes_limit=>2000}: "
{\"message\":{\"shared_runners_minutes_limit\":[\"is not supported for this namespace\"]}}"
As well as resolving these error, data check on GitLab.com will need to ensure trials have ended, and shared runner minutes are reset.
If the customers portal is the SSOT, then perhaps the gitlab api should update the plan and trial end date even if shared_runners_minutes_limit is not supported for this namespace
.
Edited by Phil Calder