-
Notifications
You must be signed in to change notification settings - Fork 406
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: save feature error handling #4058
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Uffizzi Preview |
Thats just because the PR doesnt have the latest main, the PRs were all up at the same time. The preview url will now contain the other changes from yesterday. |
# Conflicts: # frontend/common/stores/feature-list-store.ts
@rolodato This can be re-tested |
Tested again, this works:
This doesn't work:
create.feature.offline.mov |
@rolodato can I just check you're testing on the right url ? Strangely the url in your video doesn't have the branch name in it. Failing that, I suppose it could be that your browser is retrying/trying to connect the request whilst offline in which case I can't intercept it. Regardless, here's what I'm seeing on the above. offline.mov |
@kyle-ssg I tried visiting the preview URL from your video (https://flagsmith-frontend-preview-git-fix-save-featur-1e23c8-flagsmith.vercel.app) and I still get the same behaviour when trying to create a feature in Firefox with "Work Offline" enabled, or in Chromium when setting the devtools Network throttling mode to "Offline". I see the same Digging deeper I've found why this is working for you - you're trying to update a feature in a versioning-v1 environment. This also shows an error for me as expected. However, these all fail with no error message and the buttons are never re-enabled:
Hopefully this video makes it clearer: features.offline.mov |
@kyle-ssg were you able to take a look at my comment above? |
|
|
Should be resolved @rolodato , I believe this was only fixed for non-versioned environments before. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No error is displayed when attempting to create a new feature offline, all other cases appear covered.
Updating works with or without feature versioning, but I get the same behaviour (create button never re-enabled) when creating features on your latest changes. |
Docker builds report
|
@rolodato I've added error handling for create flag |
Going to merge this, any follow up issues can be a separate ticket. |
@kyle-ssg apologies for the late reply - I do see an error when trying to create a duplicate feature now, but the error message shown is |
@rolodato I promise this is the last time 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved - found one more preexisting bug if you'd like to fix it in this same PR:
- Try to create a feature with a duplicate name, get an error
- Close the "new feature" modal
- Edit any feature - the error from step 1 is shown here
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingdocs/
if required so people know about the feature!Changes
Tracks and displays errors when saving a feature.
How did you test this code?