nebari-dev / jhub-apps

Application creator and general launcher for JupyterHub
https://jhub-apps.nebari.dev/
BSD 3-Clause "New" or "Revised" License
27 stars 12 forks source link

Send server owner #533

Closed kildre closed 5 days ago

kildre commented 6 days ago

Adds the owner of the app to the POST request when starting an app

Reference Issues or PRs

https://github.com/nebari-dev/jhub-apps/issues/529

This fixes the issue of a missing owner in the request.

What does this implement/fix?

Adds the owner's name to the request when starting an app Put a x in the boxes that apply

Testing

Documentation

Access-centered content checklist

Text styling

Non-text content

Any other comments?

image

vercel[bot] commented 6 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
jhub-apps ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2024 6:16pm
jhub-apps-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2024 6:16pm
kildre commented 6 days ago

@aktech @jbouder please review PR

aktech commented 6 days ago

Looks like the owner is empty on a server I tried to start:

Screenshot 2024-11-18 at 10 55 53 pm
kildre commented 5 days ago

@aktech so the issue was my oversight in that I only provide logic for clicking on the Menu Item 'Start' I didn't provide the logic for just clicking on the card and the clicking Start in the modal. Fixed this, it should be working either way you start an app and the name of the creator will be sent in the request. Please review again.

jbouder commented 5 days ago

@aktech so the issue was my oversight in that I only provide logic for clicking on the Menu Item 'Start' I didn't provide the logic for just clicking on the card and the clicking Start in the modal. Fixed this, it should be working either way you start an app and the name of the creator will be sent in the request. Please review again.

That explains why I didn't run into any issues. I initiated a start from the context menu.

aktech commented 5 days ago

Also I noticed, when you try opening a shared app which is stopped by directly going to the URL, previously it would show you a pop up asking if you want to start the app (@jbouder implemented this in past), now it returns 404 and is stuck on loading infinitely.

https://github.com/user-attachments/assets/8cfb0361-6919-4c24-a955-c9560ca49962

I am not sure, if this is due to this PR or a bug prior to this, most likely latter?

jbouder commented 5 days ago

Also I noticed, when you try opening a shared app which is stopped by directly going to the URL, previously it would show you a pop up asking if you want to start the app (@jbouder implemented this in past), now it returns 404 and is stuck on loading infinitely.

Screen.Recording.2024-11-20.at.7.00.01.pm.mov I am not sure, if this is due to this PR or a bug prior to this, most likely latter?

I just did a few tests (on main) of directly navigating to a stopped app, and here is what I'm seeing:

I'm guessing this is an existing bug, which could have just been a use case we didn't test.

aktech commented 5 days ago

Ah, I see. Thanks for confirming. I have created a separate issue for the same: https://github.com/nebari-dev/jhub-apps/issues/534