mirror of
https://github.com/discourse/discourse.git
synced 2025-06-25 01:30:17 +08:00

Currently, if a batch "copy" of an import step results in all rows being skipped, the `after_commit_of_skipped_rows` callback is never triggered. This happens because the callback is nested inside a block that only runs when at least one row is inserted. This change ensures the DB copy operation returns both inserted and skipped rows, allowing the caller to respond appropriately in either case. --------- Co-authored-by: Gerhard Schlager <gerhard.schlager@discourse.org>