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

fix: Environment creating state #4060

Merged
merged 5 commits into from
Jun 5, 2024
Merged

Conversation

kyle-ssg
Copy link
Member

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Disables create env button when creating

How did you test this code?

  • Created an environment

Copy link

vercel bot commented May 31, 2024

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

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2024 10:10am
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2024 10:10am
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2024 10:10am

Copy link
Contributor

github-actions bot commented May 31, 2024

Uffizzi Preview deployment-52474 was deleted.

Copy link
Member

@rolodato rolodato left a comment

Choose a reason for hiding this comment

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

The bug I originally reported is fixed, but we're introducing the same behaviour as in #4026. If the request fails or is blocked, the Create button will never be re-enabled and no error is displayed.

Approving anyway because it's better to need to refresh the page than to delete duplicated environments :)

@kyle-ssg
Copy link
Member Author

kyle-ssg commented Jun 3, 2024

@rolodato I've fixed the above in the PR

@rolodato
Copy link
Member

rolodato commented Jun 3, 2024

Not sure if I'm looking at the correct deployment, but I can reproduce the same behaviour by blocking the request to clone an environment in https://flagsmith-frontend-staging-4x2teb60z-flagsmith.vercel.app/ :

block.env.create.mov

@kyle-ssg kyle-ssg linked an issue Jun 4, 2024 that may be closed by this pull request
4 tasks
@github-actions github-actions bot added fix and removed fix labels Jun 4, 2024
@kyle-ssg
Copy link
Member Author

kyle-ssg commented Jun 4, 2024

Ah yep I forgot that #4058 is yet to be merged, added the relevant fixes here too.

@rolodato
Copy link
Member

rolodato commented Jun 4, 2024

I see the button correctly being disabled while the environment is being created, but I don't see an error visibly reported if blocking the request or trying to clone an environment while offline:

create.env.no.error.mov

@kyle-ssg
Copy link
Member Author

kyle-ssg commented Jun 5, 2024

Ah yep, spotted the issue here.

This is now fixed, going to merge as am convinced this works now.

image

@kyle-ssg kyle-ssg added this pull request to the merge queue Jun 5, 2024
Merged via the queue into main with commit 652af8f Jun 5, 2024
21 checks passed
@kyle-ssg kyle-ssg deleted the fix/environment-creating-state branch June 5, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Create Environment" button not disabled during environment creation
2 participants