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

Editing an app changes it's display name to unique name - #2 #214

Merged
merged 2 commits into from
Apr 8, 2024

Conversation

jbouder
Copy link
Collaborator

@jbouder jbouder commented Apr 8, 2024

Reference Issues or PRs

N/A

What does this implement/fix?

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?

Any other comments?

  • Fixed app create/edit error
  • Added homepage redirect to app edit
  • Verified all combinations of app creation/edit locally with and without server options

Copy link

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

@@ -281,7 +281,6 @@ export const AppForm = ({ id }: AppFormProps): React.ReactElement => {
useEffect(() => {
// istanbul ignore next
if (currentFormInput) {
setCurrentServerName(currentFormInput.display_name);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was unnecessary as server name is being stored globally

@@ -101,6 +102,7 @@ export const ServerTypes = (): React.ReactElement => {
updateQuery(payload, {
onSuccess: async () => {
queryClient.invalidateQueries({ queryKey: ['app-state'] });
window.location.assign(APP_BASE_URL);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was previously missed. Without this, the user stays on the server types page after the payload response.

@aktech aktech merged commit a6c5f6f into nebari-dev:main Apr 8, 2024
11 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.

2 participants