-
Couldn't load subscription status.
- Fork 26
fix: update get_content ptype and docs
#468
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with us moving forward with this, though I'm surprised that there are no test changes needed here.
But that might also signal a separate, bigger, and IMO more important question: what is the value that we (or our users) get out of maintaining this structure and mapping? It seems like a lot of work, not adding much value (the descriptions are just copy/pasted from the API docs, yeah?) and a lot of work for supporting the pattern of the package that we are moving away from. And if we're not even testing that this does the thing we are expecting, do we really care about it that much?
Test or code changes apparently are needed — in integration tests. 😅 I think I see the point you're driving at. (Fwiw, updating this wasn't much work. But to your point, the need to remember to update these is a burden.) The value in the I see us dropping this in the future if we totally deprecate converting to data frames! But I could also see an argument that it's worth keeping, or approaching in a different way — and I don't think I know enough about how that would unfold to really have that discussion yet. |
|
I'm somewhat on team drop the type mapping. Looking at these updates, many of the field names being added have been present in API responses since early 2023. So we're clearly not keeping up with mapping these fields as it is. That said, it's not a hill I'm going to die on, so @toph-allen if you want to keep it and own it, it's ok with me. |
@karawoo Yeah, wrote up #473 to track this. Between this and discussion on #470, it feels like parsing should happen either during the actual JSON parse from I def agree that, as |
Intent
Update the
ptypeand documentation forget_content()to include recently-added columns. Theptypeupdate means that the columns will be parsed with proper types.Fixes #461
Checklist
NEWS.md(referencing the connected issue if necessary)?devtools::document()?