slopp / connectApiUtils

Experimental
4 stars 1 forks source link

Compatibility with which RStudio connect version ? #3

Open cderv opened 5 years ago

cderv commented 5 years ago

Hi @slopp,

Even if experimental, I am willing to try this library to build migration script between to servers.

I have an old server RStudio Connect v1.5.4-13 to migrate from to a new server with new version I tried to filter the apps but it failed

> client$get_apps(filter = list(owner_username = "dervieuxchr"))
Error in self$raise_error(res) : 
  http://poker-rsconnect.rte-france.com:3939/__api__/applications?filter=owner_username:dervieuxchr request failed with Client error: (400) Bad Request

I believe the filter parameter in the option does not work here ?

I'll also try the promote approach but it would be helpful to know for which version you experimented with this :package:

Thanks!

slopp commented 5 years ago

Hey @cderv ,

We have some awesome improvements to programmatic deployment coming with the next release (Jan 14, 2019). I'd recommend waiting till then. At that point, we'll hopefully be able to revamp some of the PoC code in this package.

cderv commented 5 years ago

We have some awesome improvements to programmatic deployment coming with the next release (Jan 14, 2019)

Awesome. Right in time for RStudio Conf ! 😉 I'll see what I can do. At work, where I need this, we have kind of a huge inertia and I won't be able to upgrade right away, and I must migrate before end of temporary licence. So, I think I am stuck with what I have. 😄 Your POC here really helped to understand what is possible, and I think I can do something for this one shot need.

revamp some of the PoC code in this package.

I really think that management of the product by API is really interesting for R-admin, that are not Sys admin.. It will be interesting to work on that.