• 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

    30.43
    /app/controllers/edit_requests_controller.rb
    1
    # frozen_string_literal: true
    
    2
    class EditRequestsController < ApplicationController
    
    1✔
    3
      layout "edit_request"
    
    1✔
    4
      before_action :set_breadcrumbs
    
    1✔
    5
    
    
    6
      before_action :set_request_model, only: %i[edit update]
    
    1✔
    7
      before_action :check_access
    
    1✔
    8
    
    
    9
      # GET /edit_requests/1/edit
    
    10
      def edit
    
    1✔
    11
        add_breadcrumb(@request_model.project_title, request_path(@request_model))
    
    ×
    12
        add_breadcrumb("Edit Submitted Request")
    
    ×
    13
      end
    
    14
    
    
    15
      # PATCH/PUT /edit_requests/1 or /edit_requests/1.json
    
    16
      def update
    
    1✔
    17
        respond_to do |format|
    
    ×
    18
          if @request_model.update(request_params) && @request_model.valid_to_submit?
    
    ×
    19
            format.html { redirect_to request_url(@request_model), notice: I18n.t(:successful_update) }
    
    ×
    20
            format.json { render :show, status: :ok, location: @request_model }
    
    ×
    21
          else
    
    22
            format.html { render :edit, status: :unprocessable_entity }
    
    ×
    23
            format.json { render json: @request_model.errors, status: :unprocessable_entity }
    
    ×
    24
          end
    
    25
        end
    
    26
      end
    
    27
    
    
    28
      private
    
    1✔
    29
    
    
    30
        # Use callbacks to share common setup or constraints between actions.
    
    31
        def set_request_model
    
    1✔
    32
          @princeton_departments = Affiliation.all
    
    ×
    33
          @project_purposes = [["Research", "research"], ["Administrative", "administrative"], ["Teaching", "teaching"]]
    
    ×
    34
          @request_model = Request.find(params[:id])
    
    ×
    35
        end
    
    36
    
    
    37
        # Only allow a list of trusted parameters through.
    
    38
        def request_params
    
    1✔
    39
          request_params = params.fetch(:request, {}).permit(:request_title, :project_title, :state, :data_sponsor, :data_manager,
    
    ×
    40
                                            :description, :project_purpose, :parent_folder, :project_folder, :project_id, :quota,
    
    41
                                            :requested_by, :storage_size, :storage_unit, :number_of_files, :hpc, :smb, :globus,
    
    42
                                            user_roles: [], departments: [])
    
    43
    
    
    44
          if request_params[:departments].present?
    
    ×
    45
            request_params[:departments] = request_params[:departments].compact_blank.map { |dep_str| JSON.parse(dep_str) }
    
    ×
    46
          end
    
    47
          if request_params[:user_roles].present?
    
    ×
    48
            request_params[:user_roles] = request_params[:user_roles].compact_blank.map { |role_str| JSON.parse(role_str) }
    
    ×
    49
          end
    
    50
          move_approved_values(request_params)
    
    ×
    51
        end
    
    52
    
    
    53
        def move_approved_values(request_params)
    
    1✔
    54
          if request_params[:quota].present?
    
    ×
    55
            request_params[:approved_quota] = request_params.delete(:quota)
    
    ×
    56
          end
    
    57
          if request_params[:storage_size].present?
    
    ×
    58
            request_params[:approved_storage_size] = request_params.delete(:storage_size)
    
    ×
    59
          end
    
    60
          if request_params[:storage_unit].present?
    
    ×
    61
            request_params[:approved_storage_unit] = request_params.delete(:storage_unit)
    
    ×
    62
          end
    
    63
          request_params
    
    ×
    64
        end
    
    65
    
    
    66
        def set_breadcrumbs
    
    1✔
    67
          add_breadcrumb("Dashboard", dashboard_path)
    
    ×
    68
          add_breadcrumb("Requests", requests_path)
    
    ×
    69
        end
    
    70
    
    
    71
        def check_access
    
    1✔
    72
          return if user_eligible_to_modify_request?
    
    ×
    73
    
    
    74
          # request can not be modified by this user, redirect to the request
    
    75
          flash[:notice] = I18n.t(:no_modify_submitted)
    
    ×
    76
          redirect_to request_path(@request_model)
    
    ×
    77
        end
    
    78
    
    
    79
        def user_eligible_to_modify_request?
    
    1✔
    80
          # elevated privs for the current user
    
    81
          if current_user.sysadmin || (current_user.developer && !Rails.env.production?)
    
    ×
    82
            true
    
    ×
    83
          else
    
    84
            false
    
    ×
    85
          end
    
    86
        end
    
    87
    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