You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve support for using the Connections Pane for non-database connections, such as object storage providers #13044
In 2017, the Connections Pane became significantly more flexible, allowing packages to surface arbitrary objects and icons via the "Connections Contract". However, so far there are few users of this powerful interface (outside of the odbc and sparklyr packages), and so the majority of users think about it as being a gateway to databases for novice users.
At the same time, the most common source of data after files and databases is almost certainly object storage (e.g. S3). There are existing R packages that expose S3 and comparable services already, but all are focused on programmatic access, and none of them offer much in the way of a UI that can appeal to more novice users.
Although object storage is emphatically not a filesystem (and so it does not belong in the Files Pane), it does have a hierarchical structure similar to the catalog/schema/table tree used in the Connections Pane. This makes me think that making sure that the IDE and the Connections Contract work well with object storage idioms (buckets, blobs, objects) is a valuable investment.
Moreover, I've heard numerous accounts from customers that onboarding new users to use cloud-based tools like S3 is difficult because they are simply more comfortable navigating a mounted filesystem in the File Viewer (or in, say, Windows Explorer). This is a huge sticking point for otherwise painful technologies like Kerberos.
My attempts to use the Connections Pane for S3 ran into three minor limitations, all of which could be improved without too much effort:
There are builtin icons for catalogs, schemas, tables, and views, but none for object storage idioms like "bucket".
The "preview" action opens the Data Viewer to show up to 1,000 rows -- this doesn't really make sense for object storage. We should allow implementations to return NULL rather than a data frame, in which case the Data Viewer won't open. Implementations could then trigger other actions instead (for example, downloading an object to the local filesystem).
Some UI elements are still too tied to databases. The tooltip for the preview "button" (which is the icon) says View table (up to 1,000 rows) and the pane shows (No tables) when the implementation returns no entries. Ideally, we could expand the Connections Contract to allow implementations to provide their own text for both of these cases.
Example screenshot, to show what's possible:
Reacted by E. David Aja, Tom Mock and Sam Edwardes
Activity
mikebessuille commentedon May 8, 2023
@jmcphers to be considered in future development.