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

Allow instance creation after first failure #2227

Merged
merged 3 commits into from
Jun 6, 2023

Conversation

Pezmc
Copy link
Contributor

@Pezmc Pezmc commented Jun 5, 2023

Description

Regression likely introduces in #2054 or #1966.

When creating an instance fails, it should still be possible to submit this form, and skip the create application step behind the scenes. The submit button, as shown in #2221 was rendering as disabled.

This PR passes the created application to the instance form if creating an instance fails, rendering a pre-filled select.
The user can then create an instance only from the same form.

Draft as test coverage is pending.

Screenshot 2023-06-05 at 14 06 21 Screenshot 2023-06-05 at 14 06 32

Related Issue(s)

Fixes #2221

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on flowforge/helm to update ConfigMap Template
    • Issue/PR raised on flowforge/CloudProject to update values for Staging/Production

Labels

  • Backport needed? -> add the backport label
  • Includes a DB migration? -> add the area:migration label

@Pezmc Pezmc marked this pull request as ready for review June 5, 2023 12:31
@Pezmc Pezmc requested review from knolleary and joepavitt June 6, 2023 09:51
@Steve-Mcl
Copy link
Contributor

@Pezmc seeing as I spent a good deal of time working through the original issue, confirming the problem and testing your branch (locally), I will pick up the review.

@Pezmc Pezmc requested review from Steve-Mcl and removed request for knolleary and joepavitt June 6, 2023 11:06
Copy link
Contributor

@Steve-Mcl Steve-Mcl 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 on local testing.

Will not merge immediately (gives @joepavitt a chance to review)

Discussed with @Pezmc we believe there is no UX elements that @joepavitt needs to review - gonna ship it :)

@Steve-Mcl Steve-Mcl merged commit e25627e into main Jun 6, 2023
@Steve-Mcl Steve-Mcl deleted the fix-2221-stuck-after-failed-instance-creation branch June 6, 2023 11:10
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.

Stuck on the form Create a new Application & Instance after using an already known instance name
2 participants