Skip to content

Commit

Permalink
Update FoS query, fix path, update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jmelot committed Aug 30, 2024
1 parent feb09ad commit 1f34223
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions schemas/repos_with_full_meta_raw.json
Original file line number Diff line number Diff line change
Expand Up @@ -2400,6 +2400,18 @@
"mode": "NULLABLE",
"name": "secret_scanning_validity_checks",
"type": "RECORD"
},
{
"fields": [
{
"mode": "NULLABLE",
"name": "status",
"type": "STRING"
}
],
"name": "secret_scanning_non_provider_patterns",
"mode": "NULLABLE",
"type": "RECORD"
}
],
"mode": "NULLABLE",
Expand Down
2 changes: 1 addition & 1 deletion scripts/scrape_additional_metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ done_file="scrape_additional_metadata"
cd $working_dir
gsutil rm "gs://${data_bucket}/${production_dataset}/done_files/${done_file}"
PYTHONPATH='.' python3 scripts/retrieve_repo_metadata.py curr_repos_filled.jsonl curr_repos_final.jsonl
gsutil cp curr_repos_final.jsonl "gs://${data_bucket}/${tmp_dir}" && touch $done_file
gsutil cp curr_repos_final.jsonl "gs://${data_bucket}/${tmp_dir}/" && touch $done_file
gsutil cp $done_file "gs://${data_bucket}/${production_dataset}/done_files/"
4 changes: 2 additions & 2 deletions sql/top_level1_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WITH
field_name_scores AS (
SELECT
merged_id,
name,
field.name,
field.score AS score
FROM
fields_of_study_v2.field_scores
Expand All @@ -12,7 +12,7 @@ field_name_scores AS (
LEFT JOIN
fields_of_study_v2.field_meta
ON
field_id = field.id
field_meta.name = field.name
WHERE
(level = 1)),

Expand Down

0 comments on commit 1f34223

Please sign in to comment.