-
Notifications
You must be signed in to change notification settings - Fork 189
Bug 1922986 - Create script that exports BMO data as JSON suitable for import into a BigQuery instance in GCP #2370
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c139ba4
Bug 1922986 - Create script that exports BMO data as JSON suitable fo…
dklawren 7d944ee
Delete lock before dying
dklawren ff4ec36
Added #! line for export script so webservices-infra can call it usin…
dklawren 0ed9119
Merge remote-tracking branch 'upstream/master' into 1922986
dklawren 23fbf42
Extra cleanup and more verbose output
dklawren d971acd
Remove extra bigquery service from docker-compose.yml
dklawren d2feaf8
Added some missing functionality and reorganized the code to use func…
dklawren da91d43
Fixed failing sanity test
dklawren 5ba44bd
- Updated test script to use todays date instead of hardcoded date
dklawren 1d8ffe6
* Use LIMIT/OFFSET for all tables instead of just slurping the whole …
dklawren 1243b67
Change bug_see_also to see_also to match proper BigQuery table name
dklawren 7bbc222
- Convert last_seen_date from date to a timestamp for BigQuery
dklawren b9c901f
Small changes based on review
dklawren File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM ghcr.io/goccy/bigquery-emulator:0.6.5 | ||
|
||
COPY data.yaml /data.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
projects: | ||
- id: test | ||
datasets: | ||
- id: bugzilla | ||
tables: | ||
- id: bugs | ||
columns: | ||
- name: id | ||
type: INTEGER | ||
- name: assignee_id | ||
type: INTEGER | ||
- name: url | ||
type: STRING | ||
- name: severity | ||
type: STRING | ||
- name: status | ||
type: STRING | ||
- name: type | ||
type: STRING | ||
- name: crash_signature | ||
type: STRING | ||
- name: component | ||
type: STRING | ||
- name: creation_ts | ||
type: TIMESTAMP | ||
- name: updated_ts | ||
type: TIMESTAMP | ||
- name: op_sys | ||
type: STRING | ||
- name: priority | ||
type: STRING | ||
- name: product | ||
type: STRING | ||
- name: platform | ||
type: STRING | ||
- name: reporter_id | ||
type: INTEGER | ||
- name: resolution | ||
type: STRING | ||
- name: summary | ||
type: STRING | ||
- name: whiteboard | ||
type: STRING | ||
- name: milestone | ||
type: STRING | ||
- name: version | ||
type: STRING | ||
- name: team_name | ||
type: STRING | ||
- name: group | ||
type: STRING | ||
- name: classification | ||
type: STRING | ||
- name: is_public | ||
type: BOOLEAN | ||
- name: comment_count | ||
type: INTEGER | ||
- name: cc_count | ||
type: INTEGER | ||
- name: vote_count | ||
type: INTEGER | ||
- name: snapshot_date | ||
type: DATE | ||
- id: attachments | ||
columns: | ||
- name: id | ||
type: INT64 | ||
- name: bug_id | ||
type: INT64 | ||
- name: creation_ts | ||
type: TIMESTAMP | ||
- name: description | ||
type: STRING | ||
- name: filename | ||
type: STRING | ||
- name: is_obsolete | ||
type: BOOL | ||
- name: content_type | ||
type: STRING | ||
- name: updated_ts | ||
type: TIMESTAMP | ||
- name: submitter_id | ||
type: INT64 | ||
- name: snapshot_date | ||
type: DATE | ||
- id: flags | ||
columns: | ||
- name: attachment_id | ||
type: INT64 | ||
- name: bug_id | ||
type: INT64 | ||
- name: creation_ts | ||
type: TIMESTAMP | ||
- name: updated_ts | ||
type: TIMESTAMP | ||
- name: requestee_id | ||
type: INT64 | ||
- name: setter_id | ||
type: INT64 | ||
- name: name | ||
type: STRING | ||
- name: value | ||
type: STRING | ||
- name: snapshot_date | ||
type: DATE | ||
- id: tracking_flags | ||
columns: | ||
- name: bug_id | ||
type: INT64 | ||
- name: name | ||
type: STRING | ||
- name: value | ||
type: STRING | ||
- name: snapshot_date | ||
type: DATE | ||
- id: keywords | ||
columns: | ||
- name: bug_id | ||
type: INT64 | ||
- name: keyword | ||
type: STRING | ||
- name: snapshot_date | ||
type: DATE | ||
- id: see_also | ||
columns: | ||
- name: bug_id | ||
type: INT64 | ||
- name: url | ||
type: STRING | ||
- name: snapshot_date | ||
type: DATE | ||
- id: bug_mentors | ||
columns: | ||
- name: bug_id | ||
type: INT64 | ||
- name: user_id | ||
type: INT64 | ||
- name: snapshot_date | ||
type: DATE | ||
- id: bug_dependencies | ||
columns: | ||
- name: bug_id | ||
type: INT64 | ||
- name: depends_on_id | ||
type: INT64 | ||
- name: snapshot_date | ||
type: DATE | ||
- id: bug_regressions | ||
columns: | ||
- name: bug_id | ||
type: INT64 | ||
- name: regresses_id | ||
type: INT64 | ||
- name: snapshot_date | ||
type: DATE | ||
- id: bug_duplicates | ||
columns: | ||
- name: bug_id | ||
type: INT64 | ||
- name: duplicate_of_id | ||
type: INT64 | ||
- name: snapshot_date | ||
type: DATE | ||
- id: users | ||
columns: | ||
- name: id | ||
type: INT64 | ||
- name: last_seen | ||
type: TIMESTAMP | ||
- name: email | ||
type: STRING | ||
- name: nick | ||
type: STRING | ||
- name: name | ||
type: STRING | ||
- name: is_staff | ||
type: BOOL | ||
- name: is_trusted | ||
type: BOOL | ||
- name: ldap_email | ||
type: STRING | ||
- name: is_new | ||
type: BOOL | ||
- name: snapshot_date | ||
type: DATE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.