Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1922986 - Create script that exports BMO data as JSON suitable for import into a BigQuery instance in GCP #2370

Merged
merged 13 commits into from
Jan 29, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Small changes based on review
dklawren committed Jan 29, 2025
commit b9c901f8ffd2ad0679b965a3556e1c93f4b892e5
12 changes: 5 additions & 7 deletions extensions/BMO/bin/export_bmo_etl.pl
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@
# Bugs that are private to one or more groups
our %private_bugs = ();

# I order to avoid entering duplicate data, we will first query BigQuery
# In order to avoid entering duplicate data, we will first query BigQuery
# to make sure other entries with this date are not already present.
check_for_duplicates();

@@ -543,13 +543,11 @@ sub process_see_also {
if ($private_bugs{$bug_id}) {
$data->{url} = undef;
}
elsif ($class =~ /::Local/) {
$data->{url} = Bugzilla->localconfig->urlbase . 'show_bug.cgi?id=' . $value;
}
else {
if ($class =~ /::Local/) {
$data->{url} = Bugzilla->localconfig->urlbase . 'show_bug.cgi?id=' . $value;
}
else {
$data->{url} = $value;
}
$data->{url} = $value;
}

push @results, $data;