Skip to content

Commit

Permalink
Merge pull request #9673 from alphagov/content-modelling/set-update-type
Browse files Browse the repository at this point in the history
Send `update_type` of `major` for Content Blocks
  • Loading branch information
pezholio authored Nov 29, 2024
2 parents 057105d + c6ce0d5 commit c96225d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def create_publishing_api_edition(content_id:, content_id_alias:, schema_id:, ti
content_id_alias:,
details:,
links:,
update_type: "major",
})
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def assert_edition_is_published(&block)
links: {
primary_publishing_organisation: [organisation.content_id],
},
update_type: "major",
},
]
publishing_api_mock.expect :publish, fake_publish_content_response, [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class PublishableTestClass
content_block_edition.lead_organisation.content_id,
],
},
update_type: "major",
},
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def assert_draft_created_in_publishing_api(content_id:, content_id_alias:, &bloc
organisation.content_id,
],
},
update_type: "major",
},
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class ContentBlockManager::PublishEditionServiceTest < ActiveSupport::TestCase
links: {
primary_publishing_organisation: [@organisation.content_id],
},
update_type: "major",
},
]
publishing_api_mock.expect :publish, fake_publish_content_response, [
Expand Down

0 comments on commit c96225d

Please sign in to comment.