Skip to content

Commit

Permalink
obs_factory: Export the staging workflow if there is one
Browse files Browse the repository at this point in the history
So that tools digesting obs_factory's APIs know what to ignore
  • Loading branch information
coolo committed Oct 9, 2019
1 parent 81264aa commit 765fc19
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/api/app/models/obs_factory/staging_project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def workflow_present?
project.staging_workflow.present?
end

# @return [Integer] id of the staging work flow (or nil)
def staging_workflow
project.staging_workflow_id
end

# Part of the name shared by all the staging projects belonging to the same
# distribution
#
Expand Down Expand Up @@ -203,7 +208,7 @@ def self.attributes
'building_repositories', 'broken_packages',
'untracked_requests', 'missing_reviews',
'selected_requests', 'overall_state',
'checks', 'missing_checks']
'checks', 'missing_checks', 'staging_workflow']
end

# Required by ActiveModel::Serializers
Expand Down

0 comments on commit 765fc19

Please sign in to comment.