DEV: Add reviewables:populate rake task (#30540)

Adds a new reviewables:populate rake task that works in a similar fashion to the existing *:populate rake tasks. The rake task creates pending reviewable of all core types, with possibility for plugins to extend the task to populate their own reviewable types.
This commit is contained in:
Osama Sayegh
2025-01-03 05:05:04 +03:00
committed by GitHub
parent 4aa7a89371
commit 5a55c9062a
10 changed files with 186 additions and 3 deletions

View File

@ -37,7 +37,7 @@ module DiscourseDev
raise 'To run this rake task in a production site, set the value of `ALLOW_DEV_POPULATE` environment variable to "1"'
end
unless ignore_current_count || @ignore_current_count
if !ignore_current_count && !@ignore_current_count
if current_count >= @count
puts "Already have #{current_count} #{type} records"