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

pulibrary / tigerdata-app / a58d2114-3bb5-4615-9966-6a8fa8bc5e8f

29 Oct 2025 07:13PM UTC coverage: 91.355% (+0.02%) from 91.333%
a58d2114-3bb5-4615-9966-6a8fa8bc5e8f

push

circleci

web-flow
Log long Mediaflux requests (#2120)

Since we are going to fetch data from Mediaflux more frequently now that
we fetch the list of projects straight from Mediaflux (issue #2037) and
soon also the project details (#2039) it will be good to have a sense of
how long these queries are taking in Mediaflux.

For now I am logging as a warning any query that takes longer than 3
seconds. We can tweak that value once we see what's a good benchmark to
use. We could also send to Honeybadger extremely slow requests, again,
once we know what "extreme" means in the Mediaflux sense.

7 of 8 new or added lines in 1 file covered. (87.5%)

687 existing lines in 31 files now uncovered.

2811 of 3077 relevant lines covered (91.36%)

499.05 hits per line

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

100.0
/app/controllers/users/mediaflux_callbacks_controller.rb
1
# frozen_string_literal: true
UNCOV
2
class Users::MediafluxCallbacksController < ApplicationController
2✔
UNCOV
3
  def passthru
2✔
UNCOV
4
    session[:original_path] = params["path"]
1✔
UNCOV
5
    redirect_to session[:cas_login_url], allow_other_host: true
1✔
UNCOV
6
  end
7

UNCOV
8
  def cas
2✔
UNCOV
9
    ticket = params[:ticket]
2✔
UNCOV
10
    uri = URI.parse(session[:cas_validation_url])
2✔
UNCOV
11
    token = "#{uri.query}#{ticket}"
2✔
UNCOV
12
    current_user.mediaflux_login(token, session)
2✔
UNCOV
13
    redirect_to(session["original_path"] || dashboard_path)
2✔
UNCOV
14
  end
UNCOV
15
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