Skip to content

Releases: The-Academic-Observatory/oapen-irus-uk-cloud-function

v1.1.9

13 Nov 04:47
Compare
Choose a tag to compare
Added more logs

v1.1.8

18 Aug 02:43
Compare
Choose a tag to compare
Workaround for when "Item" field is missing

v1.1.7

30 May 01:25
3faf2a6
Compare
Choose a tag to compare

updated oapen API to version 3

v1.1.6

26 Apr 04:59
dc92d70
Compare
Choose a tag to compare
  • Replace logging.info() with print(), because the cloud function is deployed as a 2nd gen cloud function

v1.1.5

23 Nov 07:34
6b43be8
Compare
Choose a tag to compare
  • Add functionality to process multiple publishers with the old (counter v4) platform, by splitting publisher name with "|"
  • Update parameter names:
    • 'publisher_name' -> 'publisher_name_v4'
    • 'publisher_uuid' -> 'publisher_uuid_v5'

v1.1.4

27 Jul 07:40
e44bf4d
Compare
Choose a tag to compare
  • Add functionality to download reports for all publishers when no publisher name is given for the old platform (before 2020-04).
  • Update code to work with the recently released API v2.1 of the new platform (since 2020-04).

See #8

v1.1.3

20 Jul 07:32
2968b6c
Compare
Choose a tag to compare
  • 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

08 Jun 03:54
Compare
Choose a tag to compare

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

04 Jun 04:59
aaecd37
Compare
Choose a tag to compare

Check report header for exceptions and update masked url in logging.

v1.1.0

31 May 05:27
Compare
Choose a tag to compare
  • 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.