Sha256: fbbfd5e6c738ddf953a4d1e8aa6e3d51ef120f007514eb36bf12215e5dfab36c

Contents?: true

Size: 947 Bytes

Versions: 22

Compression:

Stored size: 947 Bytes

Contents

require_dependency "hubstats/application_controller"

module Hubstats
  class QaSignoffsController < Hubstats::BaseController

    # Public - Will list all of the QA Signoffs that belong to any specific user(s)
    #
    # Returns - the QA Signoff data
    def index
      @qa_signoffs = Hubstats::QaSignoff.includes(:repo, :pull_request, :user)
        .belonging_to_users(params[:users])
        .belonging_to_repos(params[:repos])
        .group_by(params[:group])
        .paginate(:page => params[:page], :per_page => 15)

      grouping(params[:group], @qa_signoffs)
    end 

    # Public - Will show the particular QA Signoff selected
    #
    # Returns - the specific details of the QA Signoff
    def show
      @repo = Hubstats::Repo.where(id: params[:repo_id]).first
      @pull_request = Hubstats::PullRequest.where(id: params[:pull_request_id]).first
      @user = Hubstats::User.where(id: params[:user_id]).first
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
hubstats-1.2.1 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-1.2.0 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-1.1.0 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-1.0.0 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-1.0.0.beta3 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-1.0.0.beta2 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-1.0.0.beta1 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-1.0.0.beta app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-0.12.2 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-0.12.1 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-0.12.0 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-0.11.5 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-0.11.4 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-0.11.1 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-0.11.0 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-0.10.0 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-0.9.5 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-0.9.4 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-0.9.3 app/controllers/hubstats/qa_signoffs_controller.rb
hubstats-0.9.2 app/controllers/hubstats/qa_signoffs_controller.rb