Releases: The-Academic-Observatory/oapen-irus-uk-cloud-function
v1.1.9
v1.1.8
Workaround for when "Item" field is missing
v1.1.7
updated oapen API to version 3
v1.1.6
v1.1.5
v1.1.4
v1.1.3
- IRUS-UK created an updated version of the API, so the URL was changed to the updated version.
- To make the cloud function work for OAPEN as a dashboard partner, it is required to get all data without filtering on a publisher. Only when the publisher_uuid or publisher_id is not empty it will be used to filter on a publisher.
v1.1.2
Reformat output so that country and location info is stored in a list of dictionaries, where each dictionary has info on a single country/location.
Previously the country and location info was stored in a single dictionary with multiple lists and each entry in the list mapped to a single country/location.
This means that the schema of the OAPEN IRUS UK telescope can be reformatted to contain a REPEATED RECORD (country or location) and the fields within this RECORD are not repeated.
Check for exceptions
Check report header for exceptions and update masked url in logging.
v1.1.0
-
The output from the new and old platform of OAPEN is changed so that the format and schema is the same for both of them.
This will make it easier to handle the data in BigQuery, the reasoning is discussed in the issue here: The-Academic-Observatory/observatory-platform#424 -
Each row represents 1 book, the location metrics (both for the country and location from IP) are nested within this row. Previously, each row represented a combination of book + location and there was no nested data.
-
For the old platform, both the Country and IP reports are now downloaded and then merged. Previously, only the IP report was downloaded.
-
For the new platform, the API is queried 3 times, each time with different 'attributes_to_show'. The results from these 3 queries are then merged. The queries are:
- Once without any attributes to show
- Once with 'Country' as an attribute to show
- Once with 'Client_IP' as an attribute to show.
-
An extra field 'version' is added, referring to the COUNTER version of the reports. This is version 4 for the old platform and version 5 for the new platform.