Open gordonwoodhull opened 6 years ago
For encrypted I've been using the rcloud.support:::is.notebook.encrypted
and for private rcloud.support::rcloud.is.notebook.visible
. Is it best to use cryptogroup?
They do the same thing - @s-u is just using a lower-level API in his notebook. And you are correct that we should also check if the notebook is visible - good catch!
I didn't see any reference to those in index_all.R
, which is why I filed the issue. Please ignore if I missed it somehow.
I included his code just for reference, not that it should be followed exactly.
index_all
used to be a wrapper around update_solr
which does check for encrypted/private. However, I'm changing it to handle batch so it'll need its own checks. So definitely worth a reminder!
Ah, got it. Makes sense!
Below is the notebook @s-u was most currently using for indexing, because we forgot that you had implemented
index_all
.We need to skip encrypted notebooks, and we also need to specify
raw=TRUE
when getting the notebook so that it stays b64 encoded.