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

deploy app from git #510

Merged
merged 25 commits into from
Nov 18, 2024
Merged

deploy app from git #510

merged 25 commits into from
Nov 18, 2024

Conversation

kildre
Copy link
Contributor

@kildre kildre commented Nov 1, 2024

Reference Issues or PRs

What does this implement/fix?

Adds functinality to the Deploy App form to pull in an app from a git repo
Put a x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • [x ] 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
  • [x ] Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Other (please describe):

Testing

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

Documentation

Access-centered content checklist

Text styling

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

Non-text content

  • [ x] 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?

deployFromGit image image

Copy link

vercel bot commented Nov 1, 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 15, 2024 6:39pm
jhub-apps-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 6:39pm

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.

A couple of nitpicks before I get into a code review:

  1. I would think the radio buttons would make more sense being below the Page Title, from both a visual and accessibility point of view
  2. I can't think of a reason why these options would be visible when in headless mode, I would suggest hiding those when headless as well

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.

Let me know if there are any questions

ui/src/components/app-card/app-card.tsx Outdated Show resolved Hide resolved
ui/src/components/app-form/app-form.tsx Outdated Show resolved Hide resolved
ui/src/components/app-form/app-form.tsx Outdated Show resolved Hide resolved
ui/src/components/app-form/app-form.tsx Outdated Show resolved Hide resolved
ui/src/components/app-form/app-form.tsx Outdated Show resolved Hide resolved
ui/src/components/app-form/app-form.tsx Outdated Show resolved Hide resolved
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.

Should just be a little more cleanup.

ui/src/components/app-card/app-card.tsx Outdated Show resolved Hide resolved
ui/src/components/app-form/app-form.tsx Outdated Show resolved Hide resolved
@kildre
Copy link
Contributor Author

kildre commented Nov 5, 2024

@jbouder made the changes to the Radio buttons, put them below the Deploy titles.

@kildre
Copy link
Contributor Author

kildre commented Nov 12, 2024

@aktech made updates to repository config object
image

@aktech
Copy link
Member

aktech commented Nov 12, 2024

Thanks, it needs to be passed in the server endpoint as well, it isn't at the moment: /server

    "user_options": {
        // ...
        "repository": {"url": "https://github.com/nebari-dev/jhub-apps-from-git-repo-example.git"}
    }
Screenshot 2024-11-12 at 3 50 21 pm

@kildre
Copy link
Contributor Author

kildre commented Nov 12, 2024

@aktech Ooops!
Made the update to user_options

@kildre kildre requested a review from aktech November 13, 2024 14:27
@aktech
Copy link
Member

aktech commented Nov 13, 2024

The "keep app alive" and "public" are false in the UI toggle, even thogh the API response has true for both of them:

Screenshot 2024-11-13 at 4 32 26 pm

@kildre
Copy link
Contributor Author

kildre commented Nov 14, 2024

image
Made corrections to keep-alive and public

@aktech
Copy link
Member

aktech commented Nov 14, 2024

We should display the error message from backend:

As in this case repository is valid, but there was some other error:

Screenshot 2024-11-14 at 3 51 57 pm

@kildre
Copy link
Contributor Author

kildre commented Nov 15, 2024

@aktech made the Error title more generic, to 'ERROR'
please review PR again.

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 working on this. 🎉

@aktech aktech merged commit 9ec3ec4 into nebari-dev:main Nov 18, 2024
25 checks passed
aktech added a commit that referenced this pull request Nov 18, 2024
@aktech
Copy link
Member

aktech commented Nov 18, 2024

Looks like all the tests are failing after merge to main, can you take a look: https://github.com/nebari-dev/jhub-apps/actions/runs/11889273170/job/33132014404 @kildre @jbouder

@aktech
Copy link
Member

aktech commented Nov 18, 2024

Never mind, the test failures are unrelated. Looks like the new PyJWT version released yesterday, introduced some breaking changes. I have created a PR to pin it for now: #532

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