• 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

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

UNCOV
15
  private
2✔
16

UNCOV
17
    def mediaflux_version_info
2✔
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)
2✔
UNCOV
21
      version_request.resolve
2✔
UNCOV
22
      raise version_request.response_error[:message] if version_request.error?
2✔
UNCOV
23
      version_request.version
2✔
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