Skip to content
Snippets Groups Projects
Commit e19d366c authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Fix applying GitHub-imported labels when importing job is interrupted

Closes #24075
parent c3216706
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -55,6 +55,7 @@ Please view this file on the master branch, on stable branches it's out of date.
- In all filterable drop downs, put input field in focus only after load is complete (Ido @leibo)
- Improve search query parameter naming in /admin/users !7115 (YarNayar)
- Fix table pagination to be responsive
- Fix applying GitHub-imported labels when importing job is interrupted
- Allow to search for user by secondary email address in the admin interface(/admin/users) !7115 (YarNayar)
## 8.13.3
......
......@@ -59,6 +59,8 @@ def import_labels
end
end
end
ensure_labels_are_cached
end
def import_milestones
......@@ -234,6 +236,14 @@ def import_releases
end
end
def ensure_labels_are_cached
return unless @labels.empty?
project.labels.select(:id, :title).find_each do |label|
@labels[label.title] = label.id
end
end
def fetch_resources(resource_type, *opts)
return if imported?(resource_type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment