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

pulibrary / tigerdata-app / 2e85105d-f9c8-41e9-8b05-fe438b698516

26 Nov 2025 12:16PM UTC coverage: 71.597% (-8.0%) from 79.623%
2e85105d-f9c8-41e9-8b05-fe438b698516

push

circleci

web-flow
Display the data sponsor and data manager in the dashboard listing (#2247)

Closes #2236 

<img width="1036" height="675" alt="Screenshot 2025-11-25 at 3 07 41 PM"
src="https://github.com/user-attachments/assets/3b6a2189-7f71-4b17-97e5-e66c8fed3cb3"
/>

1 of 3 new or added lines in 1 file covered. (33.33%)

346 existing lines in 26 files now uncovered.

2367 of 3306 relevant lines covered (71.6%)

147.24 hits per line

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

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

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

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

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

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

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

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

36
      project.metadata
×
37
    end
38

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

42
      project_metadata[:project_id]
×
43
    end
44

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