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

pulibrary / tigerdata-app / 83b0522b-f91f-4e94-90b7-25006b51e19a

01 Dec 2025 05:39PM UTC coverage: 91.374% (+3.8%) from 87.594%
83b0522b-f91f-4e94-90b7-25006b51e19a

push

circleci

web-flow
Updating the department select to utilize LuxInputMultiSelect (#2251)

The component only allows an item to be selected once (only for non
async results which departments are).

fixes #2134

2913 of 3188 relevant lines covered (91.37%)

569.59 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
2
module Mediaflux
3✔
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"}]
7
  class NamespaceListRequest < Request
3✔
8
    attr_reader :parent_namespace
3✔
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
13
    def initialize(session_token:, parent_namespace:)
3✔
14
      super(session_token: session_token)
5✔
15
      @parent_namespace = parent_namespace
5✔
16
    end
17

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

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

36
    private
3✔
37

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