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

pulibrary / tigerdata-app / 8479a24a-e310-45e5-8d6b-ec6c71da8281

24 Nov 2025 02:38PM UTC coverage: 73.002% (-15.1%) from 88.064%
8479a24a-e310-45e5-8d6b-ec6c71da8281

Pull #2235

circleci

carolyncole
Do not redirect from home page when login is disabled
fixes #2188
Pull Request #2235: Do not redirect from home page when login is disabled

2 of 5 new or added lines in 2 files covered. (40.0%)

320 existing lines in 38 files now uncovered.

2320 of 3178 relevant lines covered (73.0%)

209.4 hits per line

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

88.24
/app/models/mediaflux/iterator_destroy_request.rb
1
# frozen_string_literal: true
2
module Mediaflux
1✔
3
  class IteratorDestroyRequest < Request
1✔
4
    # Constructor
5
    # @param session_token [String] the API token for the authenticated session
6
    # @iterator [Int] The iterator to destroy (This is the value returned by QueryRequest)
7
    def initialize(session_token:, iterator:)
1✔
8
      super(session_token: session_token)
30✔
9
      @iterator = iterator
30✔
10
    end
11

12
    # Specifies the Mediaflux service to use when running a query
13
    # @return [String]
14
    def self.service
1✔
15
      "asset.query.iterator.destroy"
60✔
16
    end
17

18
    # Returns empty string if iterator was destroyed, error message otherwise.
19
    # Notice that once have run through an iterator Mediaflux destroys it automatically
20
    # so it is possible to get an error indicating that an iterator does not exist if
21
    # Mediaflux deleted it on its own.
22
    def result
1✔
UNCOV
23
      xml = response_xml
×
UNCOV
24
      xml.xpath("/response/reply['error']").text
×
25
    end
26

27
    private
1✔
28

29
      def build_http_request_body(name:)
1✔
30
        super do |xml|
60✔
31
          xml.args do
60✔
32
            xml.id @iterator
60✔
33
            # An iterator can be destroyed by Mediaflux when we have read all its contents.
34
            # For example if an iterator query has only a few results and we read them all
35
            # in the first iteration then Mediaflux deletes the iterator behind the scenes.
36
            xml.send("ignore-missing") do
60✔
37
              xml.text(true)
60✔
38
            end
39
          end
40
        end
41
      end
42
  end
43
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