-
Notifications
You must be signed in to change notification settings - Fork 5
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
Switch to iRODS HTTP API #46
Conversation
I think jsonlite should be moved to |
@montesmariana. Thanks for already looking into this! There are a lot of consideration again with the new API. Perhaps we can once go through this over a video call. |
Given the number of files being modified in this PR and me not being familiar with R, are there files we can/should ignore? Are there files you want us to focus on? |
The division of commits is as follows.
I mainly wanted to let you (iRODS) know that this is underway (draft PR), but it seems to work fine. I will in the next weeks discuss with Mariana the finer details of the R package update. |
Got it. And thanks for the explanation. I somehow didn't think to look at the commits. Good to hear things appear to work. We just released v0.2.0 of the HTTP API. It's available via docker hub. See https://hub.docker.com/r/irods/irods_http_api/tags. |
This is then also directly available through the irods_demo. Right? |
I answered that my self. But there seems to be a problem: From running docker compose up:
|
I guess this needs to be change now: https://github.com/irods/irods_demo/blob/main/irods_client_http_api/config.json |
That's correct. The demo environment needs an update. we'll get a fix in today. |
Here's the PR that bumps the HTTP API to 0.2.0 in case you want to give it a try. Let us know if it works for you. |
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.
still a lot of duplication, but we can address that over time. the URL being everywhere feels very brittle.
Not sure what is meant. I presume this can only be documentation and testing, using the localhost and the associated URL. Pretty sure there is no hardcoded URL. |
I mean that I see the URL (and the version number) hard-coded in many places. When we bump to 0.3.0 or 1.0.0 we'll need to touch everything again. Was thinking perhaps there could be a single source of truth, and a variable that gets used everywhere. Not critical, an optimization, perhaps. |
I see. I guess you mainly see the duplication in the roxygen examples with 'create_irods'. I presume there must indeed be a smarter way to do that. I'll investigate. |
@MartinSchobben We've merged irods/irods_demo#59. The HTTP API is pinned to 0.2.0 in irods/irods_demo until the next release. |
Well, it all seems to work with HTTP API 0.2.0. Also included now a dynamic way of generating the documentation in regards to the HTTP API version changes. Although the website does not look that nice for the Reference to functions: https://martinschobben.github.io/irods_client_library_rirods/index.html. Moreover I can't run one vignette against the irods_demo (local vs iRODS) due a problem with a dependency when capturing HTTP responses (so this does not relate to functionality of rirods). |
I see three references to 'REST' in the rendered page at https://martinschobben.github.io/irods_client_library_rirods/index.html |
0f5e5c6
to
1cde369
Compare
I think that the PR is nearing completion. See also the blog post draft: https://martinschobben.github.io/iRODS4R/posts/rirods-0-2-0/ for when it is accepted at CRAN. Please propose edits at the source: https://github.com/MartinSchobben/iRODS4R/tree/dev-blog. |
ce7b842
to
cd2ed0f
Compare
please start a PR for the post, and then edits/comments can be added. |
I asked @jspijker if they want to have a look at this PR at the RIVM, so maybe more changes will still follow. |
Okay, the tests by RIVM will have to wait a bit. So, I guess we can proceed. Or will more testing proceed at KU Leuven @montesmariana? |
I see 9 commits. Please confirm this is ready for merging as is. |
This is ready to merge. Thanks |
We now have a candidate SHA for 0.2.0... 1301faf Please confirm that SHA is correct for CRAN and GitHub release. |
I need to make another tiny PR. CRAN checks complained about a possible unsafe URL. |
got it. |
It arrived at CRAN. https://cloud.r-project.org/web/packages/rirods/index.html |
Oh, excellent. Which SHA shall we tag as 0.2.0? |
@MartinSchobben I assume defa2ca please confirm. |
Yes, that's correct |
Got it - will tag and release here at GitHub. |
This updates rirods to version 0.2.0 which is based on iRODS HTTP API 0.2.0.
Things to consider:
Wait for new HTTP API release (0.2.0), this will e.g. remove count parameter from write endpointDocumentation has only been roughly adapted for nowOnly the old rirods 0.1.2 functionality has now been implemented with some minor addition, such as, the server-info endpoint