Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Export Logging function #320

Closed
wibeasley opened this issue Feb 24, 2021 · 1 comment · Fixed by #383
Closed

New Export Logging function #320

wibeasley opened this issue Feb 24, 2021 · 1 comment · Fixed by #383
Assignees

Comments

@wibeasley
Copy link
Member

In the next month or so, I should be able to add a REDCapR function that calls REDCap 10.8.0's new function:

New feature: New API “Export Logging” method - This new API method allows users to export a project’s logging via the API using very similar methods and filters as in the project’s user interface. See the documentation for all filter parameters that are available.

This has been requested before in #243 (and maybe a little with #230).

Community Site for REDCap Admins

@wibeasley wibeasley self-assigned this Feb 24, 2021
wibeasley added a commit to joundso/REDCapR that referenced this issue Aug 12, 2022
wibeasley added a commit that referenced this issue Aug 12, 2022
@wibeasley
Copy link
Member Author

@joundso wrote most of the function (#383). For the log_begin_date parameter, I set the default value to 7 days ago. That mimics what you get in the browser downloading the same log.

The server API function accepts a datetime object, but the REDCapR function dumbs it down to just date for a few reasons

  1. dates are easier for me to validate & document than the variety of datetimes (eg, posixct, posixlt, hms, etc)
  2. dates are easier for people to understand
  3. I doubt many people need that granular of filtering. And if so, they can further filter within R

But I left room to grow. Within the function, log_begin_date and log_end_date and transformed to log_begin_datetime and log_end_datetime. If enough people need the more granular filtering at the server, we can add new parameters of log_begin_datetime and log_end_datetime, and internally coalesce them with their date-only counterparts.

Respons toe Amanda's community post, which started this issue last year.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant