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

pulibrary / tigerdata-app / 3f98f228-6ecf-4120-a478-d9932b13e420

23 Oct 2025 09:19PM UTC coverage: 91.178%. Remained the same
3f98f228-6ecf-4120-a478-d9932b13e420

push

circleci

web-flow
Added tooltip to Data Sponsor Field (#2092)

Added 20px to margin to display the tooltip.

ref #2081 


<img width="1219" height="201" alt="Screenshot 2025-10-23 at 2 34 36 PM"
src="https://github.com/user-attachments/assets/d529b85c-a834-4aa3-9456-1ca89e1ec6ac"
/>

Co-authored-by: Precilla Prempeh <pprempeh@princeton.edu>
Co-authored-by: Robert-Anthony Lee-Faison <leefaisonr@users.noreply.github.com>

2739 of 3004 relevant lines covered (91.18%)

757.2 hits per line

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

95.45
/app/models/mediaflux/namespace_describe_request.rb
1
# frozen_string_literal: true
2
module Mediaflux
3✔
3
  # Describes a namespace
4
  # @example
5
  #   namespace = Mediaflux::NamespaceDescribeRequest.new(session_token: session_id).metadata
6
  #   => {:id=>"1", :path=>"/", :name=>"", :description=>"", :store=>"data"}
7
  # @example
8
  #   namespace = Mediaflux::NamespaceDescribeRequest.new(session_token: session_id, path: "/td-test-001/tigerdataNS").metadata
9
  #   => {:id=>"1182", :path=>"/td-test-001/tigerdataNS", :name=>"tigerdataNS", :description=>"TigerData client app root namespace", :store=>"db"}
10
  class NamespaceDescribeRequest < Request
3✔
11
    attr_reader :path, :id
3✔
12

13
    # Constructor
14
    # @param session_token [String] the API token for the authenticated session
15
    # @param path [String] path of the asset to be described
16
    # @param id [Integer] TODO: Define what this is and how to use it.
17
    def initialize(session_token:, path: nil, id: nil)
3✔
18
      super(session_token: session_token)
6✔
19
      @path = path
6✔
20
      @id = id
6✔
21
    end
22

23
    # Specifies the Mediaflux service to use
24
    # @return [String]
25
    def self.service
3✔
26
      "asset.namespace.describe"
12✔
27
    end
28

29
    def metadata
3✔
30
      @metadata ||= begin
6✔
31
                      xml = response_xml
6✔
32
                      node = xml.xpath("/response/reply/result/namespace")
6✔
33
                      {
34
                        id: node.xpath("@id").text,
6✔
35
                        path: node.xpath("./path").text,
36
                        name: node.xpath("./name").text,
37
                        description: node.xpath("./description").text,
38
                        store: node.xpath("./store").text
39
                      }
40
                    end
41
    end
42

43
    def exists?
3✔
44
      metadata[:id].present?
×
45
    end
46

47
    private
3✔
48

49
      def build_http_request_body(name:)
3✔
50
        super do |xml|
12✔
51
          xml.args do
12✔
52
            xml.id id if id.present?
12✔
53
            xml.namespace path if path.present?
12✔
54
          end
55
        end
56
      end
57
  end
58
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