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

pulibrary / tigerdata-app / 05e191d4-64e8-439b-90ff-6e60c2f43360

24 Oct 2025 01:36PM UTC coverage: 90.93% (-0.2%) from 91.178%
05e191d4-64e8-439b-90ff-6e60c2f43360

push

circleci

carolyncole
Adding more details to the request index page

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

301 existing lines in 21 files now uncovered.

2737 of 3010 relevant lines covered (90.93%)

377.01 hits per line

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

88.24
/app/controllers/mediaflux_info_controller.rb
1
# frozen_string_literal: true
UNCOV
2
class MediafluxInfoController < ApplicationController
3✔
3
  # GET /mediaflux_infos or /mediaflux_infos.json
UNCOV
4
  def index
3✔
UNCOV
5
    @mf_version = mediaflux_version_info
65✔
UNCOV
6
    @mediaflux_roles = User.mediaflux_roles(user: current_user)
65✔
UNCOV
7
    @sysadmin = current_user.sysadmin
65✔
UNCOV
8
    @developer = current_user.developer
65✔
UNCOV
9
    respond_to do |format|
65✔
UNCOV
10
      format.html
65✔
UNCOV
11
      format.json { render json: @mf_version }
127✔
UNCOV
12
    end
UNCOV
13
  end
14

UNCOV
15
  private
3✔
16

UNCOV
17
    def mediaflux_version_info
3✔
18
      # Notice that we use the system user (instead of the current user) in this request to Mediaflux
19
      # because the average user does not have access to execute server.version.
UNCOV
20
      version_request = Mediaflux::VersionRequest.new(session_token: SystemUser.mediaflux_session)
65✔
UNCOV
21
      version_request.resolve
65✔
UNCOV
22
      raise version_request.response_error[:message] if version_request.error?
65✔
UNCOV
23
      version_request.version
65✔
UNCOV
24
    rescue => ex
25
      Rails.logger.error("Error fetching Mediaflux version: #{ex.message}")
×
26
      { vendor: "N/A", version: "N/A" }
×
UNCOV
27
    end
UNCOV
28
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