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

pulibrary / tigerdata-app / 7291b10e-eaa3-4284-9371-5a980ceebf59

24 Nov 2025 07:18PM UTC coverage: 87.613% (-3.7%) from 91.333%
7291b10e-eaa3-4284-9371-5a980ceebf59

push

circleci

web-flow
Adds breadcrumb to Wizard (#2231)

Adds the breadcrumb to the Wizard and the functionality to allow the
user to save their changes before leaving the Wizard when clicking on
the "Dashboard" link in the breadcrumbs.

Closes #2102

5 of 12 new or added lines in 11 files covered. (41.67%)

904 existing lines in 36 files now uncovered.

2801 of 3197 relevant lines covered (87.61%)

360.23 hits per line

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

83.33
/app/controllers/mediaflux_info_controller.rb
1
# frozen_string_literal: true
2
class MediafluxInfoController < ApplicationController
3✔
3
  # GET /mediaflux_infos or /mediaflux_infos.json
4
  def index
3✔
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
    @java_plugin_status = java_plugin_check
2✔
UNCOV
10
    respond_to do |format|
2✔
UNCOV
11
      format.html
2✔
UNCOV
12
      format.json { render json: @mf_version }
3✔
13
    end
14
  end
15

16
  private
3✔
17

18
    def java_plugin_check
3✔
UNCOV
19
      trivial_attempt = Mediaflux::StringReverse.new(string: "Hello, Mediaflux!", session_token: current_user.mediaflux_session)
2✔
UNCOV
20
      trivial_attempt.resolve
2✔
UNCOV
21
      trivial_attempt.response_body
2✔
22
    rescue => ex
23
      Rails.logger.error("Java plugin not working: #{ex.message}")
×
24
      "Not working: #{ex.message}"
×
25
    end
26

27
    def mediaflux_version_info
3✔
28
      # Notice that we use the system user (instead of the current user) in this request to Mediaflux
29
      # because the average user does not have access to execute server.version.
UNCOV
30
      version_request = Mediaflux::VersionRequest.new(session_token: current_user.mediaflux_session)
2✔
UNCOV
31
      version_request.resolve
2✔
UNCOV
32
      raise version_request.response_error[:message] if version_request.error?
2✔
UNCOV
33
      version_request.version
2✔
34
    rescue => ex
35
      Rails.logger.error("Error fetching Mediaflux version: #{ex.message}")
×
36
      { vendor: "N/A", version: "N/A" }
×
37
    end
38
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