pull/8453/head
Oliver Günther 4 years ago
parent 58562e7379
commit ddcefeebf7
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 2
      app/services/projects/instantiate_template_service.rb
  2. 1
      modules/job_status/app/controllers/job_status/job_statuses_controller.rb
  3. 2
      modules/job_status/app/workers/job_status/application_job_with_status.rb
  4. 1
      modules/job_status/db/migrate/20200610124259_extend_job_status.rb
  5. 7
      modules/job_status/lib/api/v3/job_status/job_status_api.rb
  6. 2
      modules/job_status/lib/api/v3/job_status/job_status_representer.rb
  7. 1
      modules/job_status/lib/open_project/job_status.rb
  8. 1
      modules/job_status/lib/open_project/job_status/engine.rb
  9. 2
      modules/job_status/lib/open_project/job_status/event_listener.rb
  10. 1
      modules/job_status/lib/openproject-job_status.rb

@ -40,7 +40,7 @@ module Projects
contract_options: { template_project_id: template_id }
end
def after_validate(params, call)
def after_validate(params, _)
job = ::CopyProjectJob.perform_later(
user_id: user.id,
source_project_id: template_id,

@ -1,4 +1,5 @@
#-- encoding: UTF-8
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2020 the OpenProject GmbH

@ -1,4 +1,5 @@
#-- encoding: UTF-8
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2020 the OpenProject GmbH
@ -26,7 +27,6 @@
#
# See docs/COPYRIGHT.rdoc for more details.
#++
module JobStatus
module ApplicationJobWithStatus
# Delayed jobs can have a status:

@ -20,7 +20,6 @@ class ExtendJobStatus < ActiveRecord::Migration[6.0]
t.jsonb :payload
end
# Now that we have user reference on job status
# we don't need it on export
remove_reference :work_package_exports, :user

@ -1,4 +1,5 @@
#-- encoding: UTF-8
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2020 the OpenProject GmbH
@ -32,12 +33,6 @@ module API
module JobStatus
class JobStatusAPI < ::API::OpenProjectAPI
resources :job_statuses do
after_validation do
authorize_any([:view_cost_entries, :view_own_cost_entries],
global: true,
user: current_user)
end
route_param :job_id, type: String, desc: 'Job UUID' do
after_validation do
@job = ::JobStatus::Status

@ -1,3 +1,5 @@
#-- encoding: UTF-8
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2020 the OpenProject GmbH

@ -1,4 +1,5 @@
#-- encoding: UTF-8
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2020 the OpenProject GmbH

@ -1,4 +1,5 @@
#-- encoding: UTF-8
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2020 the OpenProject GmbH

@ -1,3 +1,5 @@
#-- encoding: UTF-8
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2020 the OpenProject GmbH

@ -1,4 +1,5 @@
#-- encoding: UTF-8
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2020 the OpenProject GmbH

Loading…
Cancel
Save