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

pulibrary / pdc_describe / 4e4e59fc-9df4-4838-9fd4-6c7ea33cdb7c

07 Apr 2025 06:36PM UTC coverage: 1.283% (-94.6%) from 95.862%
4e4e59fc-9df4-4838-9fd4-6c7ea33cdb7c

Pull #1994

circleci

hectorcorrea
Switched to use the autocomplete that we aleady use for ROR. Integrated it with the existing logic for creators
Pull Request #1994: Started adding auto complete to contributors

0 of 46 new or added lines in 2 files covered. (0.0%)

4806 existing lines in 74 files now uncovered.

65 of 5065 relevant lines covered (1.28%)

0.01 hits per line

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

0.0
/app/controllers/works_wizard_policy_controller.rb
1
# frozen_string_literal: true
2

UNCOV
3
require "nokogiri"
×
UNCOV
4
require "open-uri"
×
5

6
# Controller to handle the policy agreement acknowlegdement before the wizard is started
7
#
8
# The wizard flow is shown in the [mermaid diagram here](https://github.com/pulibrary/pdc_describe/blob/main/docs/wizard_flow.md).
9
#
UNCOV
10
class WorksWizardPolicyController < ApplicationController
×
11
  # get /works/policy
UNCOV
12
  def show; end
×
13

14
  # post /works/policy
UNCOV
15
  def update
×
UNCOV
16
    group = Group.find_by(code: params[:group_code]) || current_user.default_group
×
UNCOV
17
    if params[:agreement] == "1"
×
UNCOV
18
      work = Work.create!(created_by_user_id: current_user.id, group:)
×
UNCOV
19
      work.add_provenance_note(DateTime.now, "User agreed to the Data Acceptance and Retention policy", current_user.id)
×
UNCOV
20
      redirect_to work_create_new_submission_path(work)
×
UNCOV
21
    else
×
UNCOV
22
      redirect_to root_path, notice: "You must agree to the policy to deposit"
×
UNCOV
23
    end
×
UNCOV
24
  end
×
UNCOV
25
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