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

pulibrary / tigerdata-app / 751a8b7a-3dcf-4fbf-b16e-522d27f88642

03 Nov 2025 02:30PM UTC coverage: 91.4% (+0.006%) from 91.394%
751a8b7a-3dcf-4fbf-b16e-522d27f88642

push

circleci

web-flow
Make sure all projects are fetched (not only the first 100) (#2131)

This fixes an issue we noted while testing in Staging since
Administrators should be able to fetch all projects that they have
access to, not only the first 100 (which is the default when not
indicating a `size` parameter to Mediaflux.)

3 of 3 new or added lines in 1 file covered. (100.0%)

191 existing lines in 11 files now uncovered.

2827 of 3093 relevant lines covered (91.4%)

486.73 hits per line

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

100.0
/app/models/mediaflux/iterator_destroy_request.rb
1
# frozen_string_literal: true
2
module Mediaflux
5✔
3
  class IteratorDestroyRequest < Request
5✔
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:)
5✔
8
      super(session_token: session_token)
40✔
9
      @iterator = iterator
40✔
10
    end
11

12
    # Specifies the Mediaflux service to use when running a query
13
    # @return [String]
14
    def self.service
5✔
15
      "asset.query.iterator.destroy"
80✔
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
5✔
UNCOV
23
      xml = response_xml
1✔
UNCOV
24
      xml.xpath("/response/reply['error']").text
1✔
25
    end
26

27
    private
5✔
28

29
      def build_http_request_body(name:)
5✔
30
        super do |xml|
80✔
31
          xml.args do
80✔
32
            xml.id @iterator
80✔
33
          end
34
        end
35
      end
36
  end
37
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