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

Send server owner #533

Merged
merged 3 commits into from
Nov 20, 2024
Merged

Send server owner #533

merged 3 commits into from
Nov 20, 2024

Conversation

kildre
Copy link
Contributor

@kildre kildre commented Nov 18, 2024

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

Reference Issues or PRs

#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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds a feature)
  • Breaking change (fix or feature that would cause existing features not to work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Other (please describe):

Testing

  • Did you test the pull request locally?
  • Did you add new tests?

Documentation

Access-centered content checklist

Text styling

  • The content is written with plain language (where relevant).
  • If there are headers, they use the proper header tags (with only one level-one header: H1 or # in markdown).
  • All links describe where they link to (for example, check the Nebari website).
  • This content adheres to the Nebari style guides.

Non-text content

  • All content is represented as text (for example, images need alt text, and videos need captions or descriptive transcripts).
  • If there are emojis, there are not more than three in a row.
  • Don't use flashing GIFs or videos.
  • If the content were to be read as plain text, it still makes sense, and no information is missing.

Any other comments?

image

Copy link

vercel bot commented Nov 18, 2024

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
Copy link
Contributor Author

kildre commented Nov 18, 2024

@aktech @jbouder please review PR

Copy link
Collaborator

@jbouder jbouder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works as far as I can tell.

@aktech
Copy link
Member

aktech commented Nov 18, 2024

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

Screenshot 2024-11-18 at 10 55 53 pm

@kildre
Copy link
Contributor Author

kildre commented Nov 20, 2024

@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
Copy link
Collaborator

jbouder commented Nov 20, 2024

@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
Copy link
Member

aktech commented Nov 20, 2024

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?

@jbouder
Copy link
Collaborator

jbouder commented Nov 20, 2024

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:

  • My App: Redirected home and modal came up
  • Non-shared App: Default 404 page
  • Shared App: infinite loop

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

@aktech
Copy link
Member

aktech commented Nov 20, 2024

Ah, I see. Thanks for confirming. I have created a separate issue for the same: #534

Copy link
Member

@aktech aktech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for fixing this 🎉

@aktech aktech merged commit 444a639 into nebari-dev:main Nov 20, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants