Skip to content

PR develop into main - #27

Draft
jspijker wants to merge 18 commits into
mainfrom
develop
Draft

jspijker wants to merge 18 commits into
mainfrom
develop

Conversation

@jspijker

Copy link
Copy Markdown
Collaborator

No description provided.

jspijker and others added 8 commits March 24, 2023 12:21
In case of error, NULL is returned but timerange is not added to cache.

See #21, this solves #10
Issue21,  improve error catching
Several DBI generics (dbGetQuery, dbExecute, dbWriteTable) were called
without a namespace prefix, causing 'could not find function' errors
when DBI/pool is not attached to the search path. Qualify all such
calls with pool::, matching the pattern used elsewhere in the package.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jspijker
jspijker marked this pull request as draft August 27, 2026 08:40
jspijker and others added 10 commits August 27, 2026 10:42
Fix #23: namespace-qualify DBI calls with pool::
Closes #25

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Add list_doc() to list meta document references by type
The cache table now stores a non-nullable time_dl field recording when
a time range was inserted. insert_time_range fills it with the current
time as a UTC unix timestamp.

Closes #29

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Add a function to remove measurements based on their download time,
recorded in the cache table's time_dl field. For every cached time
range downloaded before the given date, the measurements of the
station between the range start and end (inclusive) are removed. When
no measurements for a station remain, the station is also removed from
the location table. The processed cache record is removed and a named
list describing the removed ranges is returned.

Includes a roxygen2 header, generated documentation, testthat tests
and a new "Remove data" chapter in the vignette.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Make the cutoff inclusive: select cached ranges with time_dl <= date
  and update the roxygen header wording accordingly.
- Update the vignette "Remove data" chapter to say "before or equal to".
- Move the seed_ test helpers into tests/testthat/helper.R and add a
  test for a range downloaded exactly at the cutoff.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Add remove_time_ranges_before function (issue #30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant