Add get_acoustic_deployment_logs() - #517
Conversation
…ver, record_type, datetime combo
|
Addressed reviewer comments. Ready for review. |
Ping @PietrH - Align title with other functions (short + mention "acoustic"). I think logs is pretty well established as a term - Remove . from title - Use "log data" in description, not "diagnostics information" - Don't prepend base:: - No need to define deployment_id, just use inheritParams - Use "returns" (plural)
Use tidyverse style "Can't find"
peterdesmet
left a comment
There was a problem hiding this comment.
Great to have this function!
Some minor documentation and class suggestions. See also my commits.
| #' For example, a deviation in tilt angle may decrease detection capabilities. | ||
| #' For some receivers, other information such as water temperature is available. | ||
| #' | ||
| #' The log data are returned as a tibble with one row per log entry. |
There was a problem hiding this comment.
This new paragraph currently appears under details. If this is not the intent, add @description on line 3
There was a problem hiding this comment.
This was my intent, do you think I should move it?
There was a problem hiding this comment.
I think it's fine under details. I just find it clearer to then add @details
There was a problem hiding this comment.
I'm quite used to the new paragraph = details. But perhaps it's clearer to indicate it explicitly. I think this is best saved for it's own PR, and then applied to all documentation.
|
Note: I did not review the test file. |
Co-Authored-By: Peter Desmet <peter.desmet@inbo.be>
Co-Authored-By: Peter Desmet <peter.desmet@inbo.be>
|
I'm ready to merge but need reviewer approval! I made all requested changes. |
meeting conclusion:
get_acoustic_deployment_logs(deployment_id, limit = FALSE)under construction!
Notes for the reviewer:
get_receiver_logs()was implemented with speed in mind, but compromises were made for maintainability and to not take extra dependencies (yyjsonr, data.table).ETN_TEST_APIenvironmental variable to the test api url. Contact me if you don't have this value handy. VLIZ has requested we not make it public.deployment_idis required, getting all deployments should not be done likely as it'll take a while.station_namewas requested by Lottestart_dateandend_datewere implemented to mirror other etn functions, getRad does it better with lubridate support but that is a development for another day.station_name.{vcr}HTTP response caching at the moment because as of writing the production{etnservice}deployment is lagging, this way I can ensure that tests will continue to fail until production has caught up.Before merging