Skip to content

Improve support for using the Connections Pane for non-database connections, such as object storage providers #13044

Open

Description

@atheriel

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:

Screenshot of the Connections Pane with S3-related contents

Activity

  1. added
    new
    on Apr 24, 2023
  2. added and removed
    new
    on Apr 25, 2023
  3. added this to the Backlog-3 milestone on May 8, 2023
  4. mikebessuille commented on May 8, 2023

    @mikebessuille
    Contributor

    @jmcphers to be considered in future development.

  5. modified the milestones: Backlog-3, Later on Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions