VizierDB / web-ui

Web User Interface
Apache License 2.0
12 stars 2 forks source link

Publish Dataset Locally #267

Closed okennedy closed 4 years ago

okennedy commented 4 years ago

Problem: We want a way to allow datasets to be shared between notebooks.

Proposal

  1. Add a PUBLISH cell with 2 options: (i) "Dataset" (the dataset to publish) and (ii) "Mode" (pop-up currently with just one option "Publish Locally"; although see #269). When called, the cell simply prints out the internal reference details for the indicated dataset in some sort of pretty URL-like format. e.g., vizier://ds/[notebook_id]/[dataset_id]
  2. Add a "Annotated Dataset" option to the LOAD DATASET cell. When called in "From the Internet" mode, this cell grabs the URL produced by a publish dataset cell and simply redirects references to the loaded dataset to that dataset.
    • Add a 'import_dataset' method to the notebook that takes an export URL.
    • In FS, copy the dataset details over from the referenced notebook
    • In MIMIR, add a new dataset referencing the dataset with the specified ID

This isn't entirely clean, but provides a proof-of-concept

It does however lay the groundwork for new things in the future:

okennedy commented 4 years ago

Closed by https://github.com/VizierDB/web-api-async/commit/a4ff3759d3edc6a281254811207ea8b01f2b9dc5