Skip to content

Commit 32b9e8a

Browse files
committed
MBS-14183: Add placeholder emails to editors sin sample data dumps
fixed test case t
1 parent 33a798c commit 32b9e8a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/MusicBrainz/Script/EntityDump.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,9 @@ sub editors {
367367
$ids,
368368
);
369369

370+
my $editor_columns = $EDITOR_SANITISED_COLUMNS;
371+
$editor_columns =~ s/'' AS email/'editor-' || editor.id || '\@musicbrainz.invalid' AS email/;
372+
370373
# The editor table's 'area' column creates cycles between several tables,
371374
# so we only do this for areas that we know have been dumped. While it's
372375
# true that we can detect cycles in core_entity, that would prevent us

t/script/ExportAllTables.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use String::ShellQuote;
99
use Test::More;
1010
use Test::Routine;
1111
use Test::Routine::Util;
12-
use Test::Deep qw( cmp_deeply ignore );
12+
use Test::Deep qw( cmp_deeply ignore re );
1313
use MusicBrainz::Server::Test;
1414
use aliased 'MusicBrainz::Server::DatabaseConnectionFactory' => 'Databases';
1515
use utf8;

0 commit comments

Comments
 (0)