Skip to content

Commit

Permalink
xref events removal
Browse files Browse the repository at this point in the history
  • Loading branch information
keegansmith21 committed Oct 3, 2024
1 parent ea4d118 commit 9d7513d
Show file tree
Hide file tree
Showing 26 changed files with 51 additions and 1,625 deletions.
11 changes: 0 additions & 11 deletions dags/oaebu_workflows/airflow_pools.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,3 @@ def create_or_get_pool(self):
return self.get_pool()
except PoolNotFound:
return self.create_pool()


class CrossrefEventsPool(AirflowPool):
def __init__(self, pool_slots: int = 15):
"""Constructor CrossrefEventsPool instance
:param pool_slots: The number of slots assigned to this pool
"""
super().__init__(
pool_name="crossref_events_pool", pool_slots=pool_slots, pool_description="Crossref Events API Pool"
)
295 changes: 4 additions & 291 deletions dags/oaebu_workflows/onix_workflow/onix_workflow.py

Large diffs are not rendered by default.

80 changes: 0 additions & 80 deletions dags/oaebu_workflows/onix_workflow/schema/book.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,85 +80,5 @@
"name": "chapters",
"type": "RECORD",
"description": "Crossref Objects (that are of type chapter) associated with the primary ISBN"
},
{
"fields": [
{
"fields": [
{
"mode": "NULLABLE",
"name": "source",
"type": "STRING",
"description": "Event Source"
},
{
"mode": "NULLABLE",
"name": "count",
"type": "INTEGER",
"description": "Count of Events"
}
],
"mode": "REPEATED",
"name": "overall",
"type": "RECORD",
"description": "Overall Event Count"
},
{
"fields": [
{
"mode": "NULLABLE",
"name": "month",
"type": "STRING",
"description": "Month of the count"
},
{
"mode": "NULLABLE",
"name": "source",
"type": "STRING",
"description": "Event Source"
},
{
"mode": "NULLABLE",
"name": "count",
"type": "INTEGER",
"description": "Event Count in time period"
}
],
"mode": "REPEATED",
"name": "months",
"type": "RECORD",
"description": "Event counts broken down by month"
},
{
"fields": [
{
"mode": "NULLABLE",
"name": "year",
"type": "INTEGER",
"description": "Year of count"
},
{
"mode": "NULLABLE",
"name": "source",
"type": "STRING",
"description": "Event Source"
},
{
"mode": "NULLABLE",
"name": "count",
"type": "INTEGER",
"description": "Event count in time period"
}
],
"mode": "REPEATED",
"name": "years",
"type": "RECORD",
"description": "Event counts broken down by month"
}
],
"mode": "NULLABLE",
"name": "events",
"type": "RECORD",
"description": "Crossref events assoicated with ISBN"
}
]
14 changes: 0 additions & 14 deletions dags/oaebu_workflows/onix_workflow/schema/book_metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,5 @@
"name": "month",
"type": "DATE",
"description": "The month in which the metrics took place"
},
{
"fields": [
{
"mode": "NULLABLE",
"name": "count",
"type": "INTEGER",
"description": "Count of events"
}
],
"mode": "NULLABLE",
"name": "crossref_events",
"type": "RECORD",
"description": "Metrics from Crossref Events"
}
]
17 changes: 2 additions & 15 deletions dags/oaebu_workflows/onix_workflow/schema/book_metrics_author.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,6 @@
"name": "month",
"type": "DATE",
"description": "Month in which metrics took place"
},
{
"fields": [
{
"mode": "NULLABLE",
"name": "count",
"type": "INTEGER",
"description": "Count of events"
}
],
"mode": "NULLABLE",
"name": "crossref_events",
"type": "RECORD",
"description": "Metrics from Crossref events"
}
]
]

170 changes: 0 additions & 170 deletions dags/oaebu_workflows/onix_workflow/schema/book_metrics_events.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@
"name": "month",
"type": "DATE",
"description": "The month in which the metrics occurred"
},
{
"fields": [
{
"mode": "NULLABLE",
"name": "count",
"type": "INTEGER",
"description": "Count of events"
}
],
"mode": "NULLABLE",
"name": "crossref_events",
"type": "RECORD",
"description": "Metrics from Crossref events"
}
]
]

Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@
"name": "month",
"type": "DATE",
"description": "The month in which the metrics occurred"
},
{
"fields": [
{
"mode": "NULLABLE",
"name": "count",
"type": "INTEGER",
"description": "Count of events"
}
],
"mode": "NULLABLE",
"name": "crossref_events",
"type": "RECORD",
"description": "Metrics from Crossref events"
}
]
]

Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@
"name": "month",
"type": "DATE",
"description": "The month in which the metrics occurred"
},
{
"fields": [
{
"mode": "NULLABLE",
"name": "count",
"type": "INTEGER",
"description": "Count of events"
}
],
"mode": "NULLABLE",
"name": "crossref_events",
"type": "RECORD",
"description": "Metrics from Crossref events"
}
]
]

Loading

0 comments on commit 9d7513d

Please sign in to comment.