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

pulibrary / tigerdata-app / b10fccf6-5ec9-4665-936f-349cab0ca8ed

28 Oct 2025 02:06PM UTC coverage: 87.382% (-3.9%) from 91.294%
b10fccf6-5ec9-4665-936f-349cab0ca8ed

Pull #2057

circleci

hectorcorrea
Force a change
Pull Request #2057: Dashboard displays projects straights from Mediaflux

49 of 69 new or added lines in 4 files covered. (71.01%)

930 existing lines in 39 files now uncovered.

2694 of 3083 relevant lines covered (87.38%)

296.77 hits per line

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

82.76
/app/mailers/tigerdata_mailer.rb
1
# frozen_string_literal: true
UNCOV
2
class TigerdataMailer < ApplicationMailer
2✔
UNCOV
3
  def project_creation
2✔
4
    config = Rails.application.config.tigerdata_mail[:project_creation]
2✔
5
    @project_id = params[:project_id]
2✔
6
    raise(ArgumentError, "Invalid Project ID provided for the TigerdataMailer: #{@project_id}") if project.nil?
2✔
7

8
    admin_email = params[:approver].email || Rails.application.config.tigerdata_mail[:to_email]
1✔
9
    title = project.title
1✔
10
    subject = "Project: '#{title}' has been approved"
1✔
11
    mail(to: admin_email, cc: config[:cc_email], subject:)
1✔
UNCOV
12
  end
13

UNCOV
14
  def request_creation
2✔
UNCOV
15
    config = Rails.application.config.tigerdata_mail[:request_creation]
4✔
UNCOV
16
    @request_id = params[:request_id]
4✔
UNCOV
17
    submitter_mail = params[:submitter].email
4✔
UNCOV
18
    raise(ArgumentError, "Invalid Request ID provided for the TigerdataMailer: #{@request_id}") if request.nil?
4✔
19

UNCOV
20
    subject = "New Project Request Ready for Review"
3✔
UNCOV
21
    mail(to: config[:to_email], cc: config[:cc_email], from: submitter_mail, subject:)
3✔
UNCOV
22
  end
UNCOV
23
  private
2✔
24

UNCOV
25
    def request
2✔
UNCOV
26
      @request ||= Request.find_by(id: @request_id)
4✔
UNCOV
27
    end
28

UNCOV
29
    def project
2✔
30
      @project ||= Project.find_by(id: @project_id)
3✔
UNCOV
31
    end
32

UNCOV
33
    def project_metadata
2✔
34
      return if project.nil?
×
35

36
      project.metadata
×
UNCOV
37
    end
38

UNCOV
39
    def project_metadata_id
2✔
40
      return if project.nil?
×
41

42
      project_metadata[:project_id]
×
UNCOV
43
    end
44

UNCOV
45
    def filebase
2✔
46
      @filebase ||= project_metadata_id.tr("/", "_")
×
UNCOV
47
    end
UNCOV
48
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