-
Notifications
You must be signed in to change notification settings - Fork 38
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
Upgrade dbplyr generics #211
base: master
Are you sure you want to change the base?
Conversation
* Follow upgrade guide at https://dbplyr.tidyverse.org/articles/backend-2.html#nd-edition * DESCRIPTION: Bump version (suggest 0.7.1 once merged), bump min versions for jsonlite, dplyr, dbplyr to latest available, update author email for FM, bump RoxygenNote * Fix Roxygen warning: Upgrade syntax in ckanr-package.R * Add dbplyr_edition as per upgrade guide (new man page) * Upgrade dplyr.R generics and imports as per upgrade guide * Document package to rebuild NAMESPACE * TODO NEWS * TODO see if tests pass (no working CKAN available here) * This PR should be reviewed thoroughly before merging
My overall preference would be to not pin the dependencies to allow the installation on older environments.
Would you mind opening a separate PR for this? I'm still not familiar with the codebase and it will make it easier for me to digest piecemeal changes.
The workflow needed access to the I'm fixing this on #212 and managed to run the tests on ubuntu but some other issue came up that still needs investigating related to the |
@fjuniorr thanks for the info! re dependencies: re deprecation: moved to #214. Great discussion at #187 too! I'm pushing a work in progress - I've set up a local CKAN as follows (TODO add to contrib guide?)
Tests are now running, but 2.10 deprecated some API endpoints such as Current WIP:
I may need to implement Edit: Implementing a clean DBI backend will require a bit more work: https://solutions.posit.co/connections/db/advanced/backend/ |
* See ropensci#215: support multiple CKAN versions * Disable tests for deprecated API endpoints as of CKAN 2.10 * Introduce a default for get_test_url and get_test_behaviour * Format ckanr_settings
* Update functions to match new DBI connection * Some function generics still need to be implemented * Tests are passing, but not covering much of the dplyr/DBI interface * Improve docstrings and examples
This PR upgrades dbplyr generics from v1 to v2 to prevent breakage once the v1 generics are removed from dbplyr.
Description
DESCRIPTION
: Bump version (suggest 0.8.0 once merged), bump and pin min versions for R,DBI
,crul
,jsonlite
,dplyr
,dbplyr
to latest available versions, update author email for FM, bump RoxygenNoteckanr-package.R
: Upgrade syntax to fix Roxygen warning, add new authors from DESCRIPTIONdbplyr_edition
as per upgrade guide (new man page)dplyr.R
generics and imports as per upgrade guideNAMESPACE
ckanr
usersQuestions to the package maintainer @fjuniorr:
ds_create_dataset
will be removed in favour ofresource_create
. This PR suggests a new package version (0.8.0). Would you like me to dropds_create_dataset
in this PR or leave it up to you?Related Issue
Fix #187
Fix #212
Example
The upgraded dbplyr generics are not used explicitly outside of
dplyr.R
inckanr
, so no existing ckanr function will be affected.However, users of the deprecated
dplyr
generics must now upgrade their code to use the newerdbplyr
equivalents. The v0.8.0 release note in NEWS adds a migration guide for the affected functions.This PR upgrades internal syntax (dbplyr generics). (See above: affected are only exposed
dplyr
/dbplyr
generics).The test run (example) looks like CKAN is up and running (e.g. API key is generated), but
ckanr
has trouble accessing it ("CKAN is offline").@fjuniorr while I'm getting a local CKAN up and running, have you got any pointer why the GH action workflow can't find the CKAN test instance?