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

pulibrary / tigerdata-app / 84a2dfd2-cbf5-4e2d-9eb7-e276471bcc35

22 Oct 2025 11:08AM UTC coverage: 91.184% (+0.1%) from 91.051%
84a2dfd2-cbf5-4e2d-9eb7-e276471bcc35

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/c2277b4d23cf53321b272bce8dc929ddec37f4ef">&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/c2277b4d23cf53321b272bce8dc929ddec37f4ef">&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 (
  • 2741 of 3006 relevant lines covered (91.18%)

    650.71 hits per line

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

    96.83
    /app/presenters/request_presenter.rb
    1
    # frozen_string_literal: true
    
    2
    class RequestPresenter
    
    5✔
    3
      attr_reader :request
    
    5✔
    4
      def initialize(request)
    
    5✔
    5
        @request = request
    
    161✔
    6
      end
    
    7
    
    
    8
      def eligible_to_edit?(user)
    
    5✔
    9
        return false if user.nil?
    
    31✔
    10
        if request.submitted?
    
    31✔
    11
          user.eligible_sysadmin?
    
    15✔
    12
        else
    
    13
          user.uid == request.requested_by || user.eligible_sysadmin?
    
    16✔
    14
        end
    
    15
      end
    
    16
    
    
    17
      def data_sponsor
    
    5✔
    18
        full_name(request.data_sponsor)
    
    13✔
    19
      end
    
    20
    
    
    21
      def data_manager
    
    5✔
    22
        full_name(request.data_manager)
    
    15✔
    23
      end
    
    24
    
    
    25
      def full_name(uid)
    
    5✔
    26
        return "" if uid.blank?
    
    34✔
    27
        user = User.find_by(uid: uid)
    
    28✔
    28
        user.display_name_safe.to_s
    
    28✔
    29
      end
    
    30
    
    
    31
      # Returns the correct CSS class suffix for the sidebar navigation progress for a given
    
    32
      # step/substep.
    
    33
      def sidebar_progress(controller, step, substep = nil)
    
    5✔
    34
        controller_name = controller.controller_name
    
    330✔
    35
        case step
    
    330✔
    36
        when 1
    
    37
          step1_css_suffix(controller_name, substep)
    
    132✔
    38
        when 2
    
    39
          step2_css_suffix(controller_name)
    
    66✔
    40
        when 3
    
    41
          step3_css_suffix(controller_name)
    
    66✔
    42
        when 4
    
    43
          step4_css_suffix(controller_name)
    
    66✔
    44
        else
    
    45
          "-incomplete"
    
    ×
    46
        end
    
    47
      end
    
    48
    
    
    49
      private
    
    5✔
    50
    
    
    51
        def step1_css_suffix(controller_name, substep = nil)
    
    5✔
    52
          css_suffix = "-incomplete"
    
    132✔
    53
          if substep.nil?
    
    132✔
    54
            return "-current" if controller_name.start_with?("project_information")
    
    66✔
    55
            if step1_valid?
    
    43✔
    56
              css_suffix = "-completed"
    
    12✔
    57
            end
    
    58
          elsif substep == "Basic Details"
    
    66✔
    59
            return "-current" if controller_name == "project_information"
    
    66✔
    60
            if step1_valid?
    
    47✔
    61
              css_suffix = "-completed"
    
    12✔
    62
            end
    
    63
          end
    
    64
          css_suffix
    
    90✔
    65
        end
    
    66
    
    
    67
        def step2_css_suffix(controller_name)
    
    5✔
    68
          return "-current" if controller_name == "roles_and_people"
    
    66✔
    69
          if step2_valid?
    
    54✔
    70
            "-completed"
    
    7✔
    71
          else
    
    72
            "-incomplete"
    
    47✔
    73
          end
    
    74
        end
    
    75
    
    
    76
        def step3_css_suffix(controller_name)
    
    5✔
    77
          return "-current" if controller_name == "storage_and_access"
    
    66✔
    78
          if step3_valid?
    
    59✔
    79
            "-completed"
    
    9✔
    80
          else
    
    81
            "-incomplete"
    
    50✔
    82
          end
    
    83
        end
    
    84
    
    
    85
        def step4_css_suffix(controller_name)
    
    5✔
    86
          return "-current" if controller_name == "review_and_submit"
    
    66✔
    87
          if step4_valid?
    
    50✔
    88
            "-completed"
    
    ×
    89
          else
    
    90
            "-incomplete"
    
    50✔
    91
          end
    
    92
        end
    
    93
    
    
    94
        def step1_valid?
    
    5✔
    95
          return false if request.project_title.blank? || request.project_folder.blank? || request.project_purpose.blank? || request.description.blank? || request.departments.blank?
    
    140✔
    96
          true
    
    33✔
    97
        end
    
    98
    
    
    99
        def step2_valid?
    
    5✔
    100
          return false if request.data_manager.blank? || request.data_sponsor.blank?
    
    63✔
    101
          true
    
    10✔
    102
        end
    
    103
    
    
    104
        def step3_valid?
    
    5✔
    105
          return false if request.storage_size.nil?
    
    62✔
    106
          true
    
    9✔
    107
        end
    
    108
    
    
    109
        def step4_valid?
    
    5✔
    110
          step1_valid? && step2_valid? && step3_valid?
    
    50✔
    111
        end
    
    112
    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