Closed chrisala closed 1 year ago
Based on the description, the title for this could be changed to Add download source code for CSDM to logger
, ie, add a row to the logger.log_source_type
table on ala-simon
, rather than the logger.log_reason_type
table that is the list that users need to explicitly choose.
The current contents of logger.log_source_type
is the following:
mysql> select * from log_source_type;
+-------+----------------+
| id | name |
+-------+----------------+
| 0 | ALA |
| 1 | OZCAM |
| 2 | AVH |
| 3 | OBIS |
| 4 | ASBP |
| 5 | AMRIN |
| 6 | BVP |
| 7 | TEPAPA |
| 10000 | Spatial Portal |
| 10001 | List Tool |
| 2001 | ALA4R |
| 2002 | BCCVL |
| 2003 | AODN |
+-------+----------------+
13 rows in set (0.00 sec)
Works for me:
https://logger-test.ala.org.au/service/logger/sources
https://logger-test.ala.org.au/service/logger/reasons
Appears in the download reason list on biocache-test:
I added this to Ready for CAB
on the operations project board as it will need work from the infrastructure team to logger and biocache to release this even though it is tracked in spatial-hub issue tracker currently.
Collectory statistics view - https://collections-test.ala.org.au/public/show/dr1097
Also verified this on lists-test.ala.org.au
when downloading lists the new reason shows up and there was a request to logger-test.ala.org.au
to show it was accessing the expected URL:
203.101.227.110 - - [04/Nov/2019:11:42:40 +1100] "GET /service/logger/reasons HTTP/1.1" 200 1483 "-" "-" "-" request_time=0.036 upstream_response_time=0.036 upstream_connect_time=0.004 upstream_header_time=0.036 upstream_cache_status=-
Waiting for commit for flow through for code review
Adding a specific download reason to the logger would enable CSDM downloads / usage to be easily visible. It also frees the user from an extra step of having to use that reason.