You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prevent publishing/scheduling a standard edition with invalid tab form
We have agreed to only send a globally valid edition to Publishing API. In that sense, the Edition Publisher and Edition Scheduler services now collect each tab's failure reasons (e.g. "Social media accounts tab is invalid") so publishers see useful messages rather than a generic one.
Consequently, the Draft Edition Updater service skips pushing to Publishing API if any tab is invalid.
Copy file name to clipboardExpand all lines: app/services/edition_publisher.rb
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ def failure_reasons
10
10
reasons << "This edition is invalid: #{edition.errors.full_messages.to_sentence}"unlessedition.valid?(:publish)
11
11
reasons << "An edition that is #{edition.current_state} cannot be #{past_participle}"unlesscan_transition?
12
12
reasons << "Scheduled editions cannot be published. This edition is scheduled for publication on #{edition.scheduled_publication}"ifscheduled_for_publication?
0 commit comments