• 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

100.0
/app/models/mediaflux/namespace_list_request.rb
1
# frozen_string_literal: true
UNCOV
2
module Mediaflux
2✔
3
  # List all of the namespaces that are inside of a given namespace
4
  # @example
5
  #   namespace_list = Mediaflux::NamespaceListRequest.new(session_token: session_id, parent_namespace: "/td-test-001/tigerdataNS").namespaces
6
  #   => [{:id=>"1264", :name=>"Avocado1NS"}, {:id=>"1282", :name=>"Banana1NS"}]
UNCOV
7
  class NamespaceListRequest < Request
2✔
UNCOV
8
    attr_reader :parent_namespace
2✔
9

10
    # Constructor
11
    # @param session_token [String] the API token for the authenticated session, same as session_id
12
    # @param parent_namespace [String] Parent namespace for the query
UNCOV
13
    def initialize(session_token:, parent_namespace:)
2✔
UNCOV
14
      super(session_token: session_token)
5✔
UNCOV
15
      @parent_namespace = parent_namespace
5✔
UNCOV
16
    end
17

18
    # Specifies the Mediaflux service to use when creating assets
19
    # @return [String]
UNCOV
20
    def self.service
2✔
UNCOV
21
      "asset.namespace.list"
10✔
UNCOV
22
    end
23

UNCOV
24
    def namespaces
2✔
UNCOV
25
      @namespaces ||= begin
3✔
UNCOV
26
                        xml = response_xml
3✔
UNCOV
27
                        namespaces = []
3✔
UNCOV
28
                        xml.xpath("/response/reply/result/namespace/namespace").each.each do |ns|
3✔
UNCOV
29
                          id = ns.xpath("@id").text
91✔
UNCOV
30
                          namespaces << { id: id, name: ns.text }
91✔
UNCOV
31
                        end
UNCOV
32
                        namespaces
3✔
UNCOV
33
                      end
UNCOV
34
    end
35

UNCOV
36
    private
2✔
37

UNCOV
38
      def build_http_request_body(name:)
2✔
UNCOV
39
        super do |xml|
10✔
UNCOV
40
          xml.args do
10✔
UNCOV
41
            xml.namespace parent_namespace
10✔
UNCOV
42
          end
UNCOV
43
        end
UNCOV
44
      end
UNCOV
45
  end
UNCOV
46
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