-
Notifications
You must be signed in to change notification settings - Fork 2
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
Dashboard service: with mechanism for notification of new saves #6
Comments
Here is my suggestion for the API: Create event:
List events:
Listing events may also support filtering.
|
What would filename be for /day1/module1.ipynb vs /day2/module1.ipynb, for example? |
Would |
I don't think we should persist all events. It would add complexity without having a use case for us.
Querying could be same as suggested. What do you think? |
Filename is the relative path from homedir. Path is already the unique key.
Let's keep it simple and flat. Remember, the important part is the
integration, not the api.
…On Mon, Nov 14, 2022, 2:03 PM Kaustubh Maske Patil ***@***.***> wrote:
I don't think we should make it a complete event logging solution. It
would add complexity without having a use case for us.
Maybe we could model it like creating a key on the frontend with user +
path, and the server would update an item if the given key already exists.
So,
POST /events
{
"type": "save-notebook",
"key": {
"user": "alice",
"path": "/home/alice/module1-day1.ipynb"
},
"data"': {
"user": "alice",
"path": "/home/alice/module1-day1.ipynb",
"timestamp": "..."
"filename": "module1-day1.ipynb"
}
}
---
200 OK / 201 Created
{
"id": ...,
"type": ...,
"key": ...,
"data": ...,
}
Querying could be same suggested.
What do you think?
—
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAB3ELGZ64SP5AGIC4GXBLWIH2N7ANCNFSM6AAAAAAR7PPLME>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
This commit adds a 'Dashboard' JupyterHub service. When deployed, it can be viewed http://hub.example.com/services/dashboard. This commit also adds a change to install pip during the setup process. This is later used by the service's launch script to install dependencies. Issue: #6
Added in this commit: 8c559c2 |
It should have two endpoints:
Webhook:
Polling endpoint:
Jupyterhub services reference: https://jupyterhub.readthedocs.io/en/stable/reference/services.html
The text was updated successfully, but these errors were encountered: