Skip to content

Commit

Permalink
Send update_type of major for Content Blocks
Browse files Browse the repository at this point in the history
Going forward, we will give users the option to choose if the update
is a major or minor one, but for now, let’s set it to `major` each time,
as this is creating a bunch of noise in the logs.
  • Loading branch information
pezholio committed Nov 29, 2024
1 parent 057105d commit c6ce0d5
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 c6ce0d5

Please sign in to comment.