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

pulibrary / tigerdata-app / e091d009-5a3a-4ffa-a23a-daa4e1d7e0e7

21 Oct 2025 09:38PM UTC coverage: 79.122% (-8.2%) from 87.292%
e091d009-5a3a-4ffa-a23a-daa4e1d7e0e7

push

circleci

web-flow
Bump vite from 5.4.20 to 5.4.21 in the npm_and_yarn group across 1 directory (#2062)

Bumps the npm_and_yarn group with 1 update in the / directory:
[vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).

Updates `vite` from 5.4.20 to 5.4.21
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/vitejs/vite/releases">vite's
releases</a>.</em></p>
<blockquote>
<h2>v5.4.21</h2>
<p>Please refer to <a
href="https://github.com/vitejs/vite/blob/v5.4.21/packages/vite/CHANGELOG.md">CHANGELOG.md</a>
for details.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/vitejs/vite/blob/v5.4.21/packages/vite/CHANGELOG.md">vite's
changelog</a>.</em></p>
<blockquote>
<h2><!-- raw HTML omitted -->5.4.21 (2025-10-20)<!-- raw HTML omitted
--></h2>
<ul>
<li>fix(dev): trim trailing slash before <code>server.fs.deny</code>
check (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20968">#20968</a>)
(<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20970">#20970</a>)
(<a
href="https://github.com/vitejs/vite/commit/<a class=hub.com/pulibrary/tigerdata-app/commit/cad1d31d0635dd8fd4ddfe6e5a92eb9ff13cd06c">cad1d31d0<a href="https://github.com/pulibrary/tigerdata-app/commit/b45666a26476ff4bf99d2a0465a0b5ebbdf98838">&quot;&gt;cad1d31&lt;/a&gt;),
closes &lt;a
href=&quot;https://redirect.github.com/vitejs/vite/issues/20968&quot;&gt;#20968&lt;/a&gt;
&lt;a
href=&quot;https://redirect.github.com/vitejs/vite/issues/20970">#20970</a></li>
<li>chore: update CHANGELOG (<a
href="https://github.com/vitejs/vite/commit/<a class="double-link" href="https://github.com/pulibrary/tigerdata-app/commit/ca88ed7398288ce0c60176ac9a6392f10654c67c">ca88ed739</a><a href="https://github.com/pulibrary/tigerdata-app/commit/b45666a26476ff4bf99d2a0465a0b5ebbdf98838">&quot;&gt;ca88ed7&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;/details&gt;
&lt;details&gt;
&lt;summary&gt;Commits&lt;/summary&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a
href=&quot;https://github.com/vitejs/vite/commit/</a><a class="double-link" href="https://github.com/pulibrary/tigerdata-app/commit/adce3c22c64cc9d44cc8f45cc92b543e3e4bf385">adce3c22c">adce3c2
release: v5.4.21
  • cad1d31 fix(dev): trim trailing slash before server.fs.deny check (
  • 2380 of 3008 relevant lines covered (79.12%)

    148.71 hits per line

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

    97.67
    /app/models/mediaflux/query_request.rb
    1
    # frozen_string_literal: true
    
    2
    module Mediaflux
    
    2✔
    3
      class QueryRequest < Request
    
    2✔
    4
        attr_reader :aql_query, :collection, :action, :deep_search, :iterator
    
    2✔
    5
    
    
    6
        # Constructor
    
    7
        # @param session_token [String] the API token for the authenticated session
    
    8
        # @param aql_query [String] Optional AQL query string
    
    9
        # @param collection [Integer] Optional collection id
    
    10
        # @param action [String] Optional, by default it uses get-name but it could also be get-meta to get all
    
    11
        #                        the fields for the assets or `get-values` to get a limited list of fields.
    
    12
        # @param deep_search [Bool] Optional, false by default. When true queries the collection and it subcollections.
    
    13
        # @param iterator [Bool] Optional, true by default. When true returns an iterator.  When false returns a list of results
    
    14
        def initialize(session_token:, aql_query: nil, collection: nil, action: "get-values", deep_search: false, iterator: true)
    
    2✔
    15
          super(session_token: session_token)
    
    29✔
    16
          @aql_query = aql_query
    
    29✔
    17
          @collection = collection
    
    29✔
    18
          @action = action
    
    29✔
    19
          @deep_search = deep_search
    
    29✔
    20
          @iterator = iterator
    
    29✔
    21
        end
    
    22
    
    
    23
        # Specifies the Mediaflux service to use when running a query
    
    24
        # @return [String]
    
    25
        def self.service
    
    2✔
    26
          "asset.query"
    
    58✔
    27
        end
    
    28
    
    
    29
        # Returns the iterator that could be used to fetch the data
    
    30
        def result
    
    2✔
    31
          xml = response_xml
    
    27✔
    32
          xml.xpath("/response/reply/result/iterator").text.to_i
    
    27✔
    33
        end
    
    34
    
    
    35
        def result_items
    
    2✔
    36
          xml = response_xml
    
    2✔
    37
          xml.xpath("/response/reply/result").children.map do |node|
    
    2✔
    38
            {
    
    39
              id: node.xpath("./@id").text,
    
    3✔
    40
              name: node.xpath("./name").text,
    
    41
              path: node.xpath("./path").text
    
    42
            }
    
    43
          end
    
    44
        end
    
    45
    
    
    46
        private
    
    2✔
    47
    
    
    48
          def build_http_request_body(name:)
    
    2✔
    49
            super do |xml|
    
    58✔
    50
              xml.args do
    
    58✔
    51
                # TODO: there is a bug in mediaflux that does not allow the comented out line to paginate
    
    52
                #      For the moment we will utilize the where clasue that does allow pagination
    
    53
                # xml.collection collection if collection.present?
    
    54
                if collection.present?
    
    58✔
    55
                  xml.where mf_where(collection)
    
    54✔
    56
                end
    
    57
                xml.where aql_query if aql_query.present?
    
    58✔
    58
                xml.action action if action.present?
    
    58✔
    59
                declare_get_values_fields(xml) if action == "get-values"
    
    58✔
    60
                xml.as "iterator" if iterator
    
    58✔
    61
              end
    
    62
            end
    
    63
          end
    
    64
    
    
    65
          def mf_where(collection)
    
    2✔
    66
            if deep_search
    
    54✔
    67
              "asset in static collection or subcollection of #{collection}"
    
    54✔
    68
            else
    
    69
              "asset in collection #{collection}"
    
    ×
    70
            end
    
    71
          end
    
    72
    
    
    73
          # Adds the declarations to fetch specific fields
    
    74
          def declare_get_values_fields(xml)
    
    2✔
    75
            declare_get_value_field(xml, "name", "name")
    
    58✔
    76
            declare_get_value_field(xml, "path", "path")
    
    58✔
    77
            declare_get_value_field(xml, "content/@total-size", "total-size")
    
    58✔
    78
            declare_get_value_field(xml, "mtime", "mtime")
    
    58✔
    79
            declare_get_value_field(xml, "@collection", "collection")
    
    58✔
    80
          end
    
    81
    
    
    82
          # Adds a single field declaration
    
    83
          def declare_get_value_field(xml, field_xpath, field_name)
    
    2✔
    84
            xml.xpath do
    
    290✔
    85
              xml.parent.set_attribute("ename", field_name)
    
    290✔
    86
              xml.text(field_xpath)
    
    290✔
    87
            end
    
    88
          end
    
    89
      end
    
    90
    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