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

Get latest resource #36

Merged
merged 26 commits into from
Aug 1, 2024
Merged

Get latest resource #36

merged 26 commits into from
Aug 1, 2024

Conversation

ross-hull
Copy link
Contributor

a separate pull request to review the get_latest_resource functions I accidently included within the issue10 pull request

@ross-hull ross-hull requested review from Moohan and csillasch July 11, 2024 13:57
R/get_latest_resource.R Outdated Show resolved Hide resolved
R/get_latest_resource.R Outdated Show resolved Hide resolved
R/get_latest_resource_id.R Outdated Show resolved Hide resolved
R/get_latest_resource_id.R Outdated Show resolved Hide resolved
R/get_latest_resource_id.R Outdated Show resolved Hide resolved
R/get_latest_resource_id.R Outdated Show resolved Hide resolved
R/get_latest_resource_id.R Outdated Show resolved Hide resolved
R/get_latest_resource_id.R Outdated Show resolved Hide resolved
R/get_latest_resource.R Outdated Show resolved Hide resolved
R/get_latest_resource.R Show resolved Hide resolved
R/get_latest_resource_id.R Outdated Show resolved Hide resolved
@ross-hull ross-hull requested review from Moohan and csillasch July 31, 2024 09:34
R/get_latest_resource.R Outdated Show resolved Hide resolved
Moohan
Moohan previously requested changes Jul 31, 2024
R/get_latest_resource.R Outdated Show resolved Hide resolved
R/get_latest_resource.R Outdated Show resolved Hide resolved
@ross-hull ross-hull requested a review from Moohan August 1, 2024 10:44
@ross-hull ross-hull requested a review from csillasch August 1, 2024 10:44
Copy link
Member

@Moohan Moohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, my only (final) suggestion is that maybe we should always / by default return the context when using this i.e. set include_context = TRUE in the function definition.

Alternatively, include this context information in a message to the user. My concern is that, at the moment it returns a resource, but there's no way for the user to find out what has been returned unless they set include_context = TRUE themselves

@Moohan Moohan dismissed their stale review August 1, 2024 15:58

Happy, pending my final comment, I'll let @csillasch weigh in / approve.

csillasch
csillasch previously approved these changes Aug 1, 2024
Copy link
Contributor

@csillasch csillasch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me too!
That's a good point on returning context, I think setting include_context = T by default is probably what I'd lean towards rather than the message option (which is more likely to get overlooked).

Moohan
Moohan previously approved these changes Aug 1, 2024
Copy link
Member

@Moohan Moohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made the change to the default for include_context

@Moohan Moohan merged commit 22f73ab into master Aug 1, 2024
1 check passed
@Moohan Moohan deleted the get_latest_resource branch August 1, 2024 16:42
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.

3 participants