• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / tigerdata-app / 54385a8c-ec76-421e-81fd-41bf4c9d5b76

21 Jul 2025 08:55PM UTC coverage: 66.374% (-5.3%) from 71.631%
54385a8c-ec76-421e-81fd-41bf4c9d5b76

push

circleci

web-flow
Upgrade mediaflux build to v0.7.0 (#1617)

* Upgrade mediaflux build to v0.7.0

* prettier

* Upgrade mflux version used by the test suite

* tagging integration tests

* tagging integration tests

4 of 18 branches covered (22.22%)

0 of 1 new or added line in 1 file covered. (0.0%)

222 existing lines in 24 files now uncovered.

2722 of 4101 relevant lines covered (66.37%)

295.38 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

20.0
/app/jobs/activate_project_job.rb
1
class ActivateProjectJob < ApplicationJob
1✔
2
  queue_as :default
1✔
3

4
  def perform(user:, project_id:)
1✔
UNCOV
5
    project = Project.find(project_id)
×
UNCOV
6
    raise "Invalid project id #{project_id} for job #{job_id}" if project.nil?
×
7
    #The id of the project in mediaflux is the collection id, and mediaflux id is what we refer to the collection id in rails
UNCOV
8
    collection_id = project.mediaflux_id
×
9

10
    # ACTIVATE THE PROJECT IF THE DOI IN RAILS AND MF MATCH
UNCOV
11
    project.activate!(collection_id: collection_id, current_user: user)
×
12

UNCOV
13
    project.reload
×
UNCOV
14
    return unless project.status != Project::ACTIVE_STATUS #CHECK IF PROJECT ACTIVATION WAS SUCCESSFUL
×
15
    activation_failure_msg = "Project with #{collection_id} failed to activate due to mismatched DOI's between rails and mediaflux"
×
16

17
    #SEND EMAIL
18
    mailer = TigerdataMailer.with(project_id: project.id, user:, activation_failure_msg:)
×
19
    message_delivery = mailer.project_activation
×
20
    message_delivery.deliver_later
×
21

22
    # NOTIFY HONEYBADGER
23
    honeybadger_context = {
24
      project_id: project.id,
×
25
      project_metadata: project.metadata_model
26
    }
27
    Honeybadger.notify(activation_failure_msg, context: honeybadger_context)
×
28
  end
29
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc