• 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/work_activity_notifications_controller.rb
1
# frozen_string_literal: true
UNCOV
2
class WorkActivityNotificationsController < ApplicationController
×
UNCOV
3
  before_action :set_activity_notification, only: %i[show]
×
4

5
  # GET /activity_notifications or /activity_notifications.json
UNCOV
6
  def index
×
UNCOV
7
    @work_activity_notifications = WorkActivityNotification.where(user_id: user.id).order(created_at: :desc)
×
UNCOV
8
  end
×
9

10
  # GET /activity_notifications/1 or /activity_notifications/1.json
UNCOV
11
  def show; end
×
12

UNCOV
13
  private
×
14

15
    # Use callbacks to share common setup or constraints between actions.
UNCOV
16
    def set_activity_notification
×
UNCOV
17
      @work_activity_notification = WorkActivityNotification.find(params[:id])
×
UNCOV
18
    end
×
19

UNCOV
20
    def user
×
UNCOV
21
      @user ||= if user_param
×
UNCOV
22
                  User.find_by(uid: user_param) || current_user
×
UNCOV
23
                else
×
UNCOV
24
                  current_user
×
UNCOV
25
                end
×
UNCOV
26
    end
×
27

UNCOV
28
    def user_param
×
UNCOV
29
      return nil unless current_user.super_admin?
×
UNCOV
30
      @user_param ||= params[:user]
×
UNCOV
31
    end
×
UNCOV
32
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