diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-15 03:08:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-15 03:08:43 +0300 |
commit | 45ccc5610c9afec64de3c4894789896ee2d5c48d (patch) | |
tree | 544b5e40167eca28e075cec24d4736283620b88e /app/models/group_import_state.rb | |
parent | 6b4c082fc8f266aa796595103e6c5f6ddb199280 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/group_import_state.rb')
-rw-r--r-- | app/models/group_import_state.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/group_import_state.rb b/app/models/group_import_state.rb index a4c7092b80f..d22c1ac5550 100644 --- a/app/models/group_import_state.rb +++ b/app/models/group_import_state.rb @@ -32,4 +32,8 @@ class GroupImportState < ApplicationRecord state.update_column(:last_error, last_error) if last_error end end + + def in_progress? + created? || started? + end end |