slovensko-digital/harvester.ecosystem

View on GitHub
app/jobs/itms/sync_project_job.rb

Summary

Maintainability
A
2 hrs
Test Coverage
A
100%

Method perform has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def perform(itms_href, downloader: ItmsJob::Downloader)
    json = downloader.get_json_from_href(itms_href)

    ActiveRecord::Base.transaction do
      p = Itms::Project.find_or_create_by!(itms_id: json['id'])
Severity: Major
Found in app/jobs/itms/sync_project_job.rb - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status