Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Publish button/toggle/cell #18

Open
okennedy opened this issue Jun 18, 2019 · 0 comments
Open

Add a Publish button/toggle/cell #18

okennedy opened this issue Jun 18, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@okennedy
Copy link
Collaborator

Starting a thread to discuss how to implement this properly (Tagging @mrb24 @lordpretzel @julianafreire @heikomuller @soniacq @CarlosaBauti for discussion).

Current behaviour: Access to cell results occurs through the API at a common URL for all results (based on cell ID). This means that cell results can be embedded via a URL of the form:

https://[...]/vizier-db/api/v1/projects/432b71f0/branches/d3d598a7/head/modules/ab46ed65

which returns a JSON description of the cell and its results. However, this approach suffers from two limitations:

  • It requires interpretation of the JSON results to get a specific output form (e.g., the HTML console output), and thus can not be embedded in an IFRAME.
  • It is not compatible with API instances protected by http-authentication

Proposed behavior: Thorough some mechanism to be discussed, users flag a cell result as publishable. They are provided with a URL that can be viewed by anyone, embedded in an external html page, etc... Critically, the set of published cells would be collected under a specific path (e.g., /api/v1/published/...) making it possible to expose them to the public or at least a different set of users with the right proxy configuration.

Some ideas on how this could be implemented:

  • Attach a toggle to Python, SQL, Plot, and Scala cells that publishes the cell result.
  • Provide a button on console output that publishes the cell result and displays the URL.
  • Add an explicit "Publish" cell or incorporate into the UNLOAD cell a feature for publishing the results of an earlier cell.
@okennedy okennedy added the enhancement New feature or request label Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant