-
Notifications
You must be signed in to change notification settings - Fork 79
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
Deleting assets triggers javascript error #852
Comments
I'm getting the JS error, but the file is removed from the UI for me. |
I've just found this when debugging the 4.4.x-dev behat failures. The tests are failing because the GraphQL query is not updating the apollo store correctly. It looks to me like the #847 modified the structure of I've had a quick go at updating it but I don't know enough about the new apollo library version to do so. Will spend another half an hour or so on it before giving up and asking Uncle Cheese for halp. |
found it under 4.3.1 too |
any news on this minor issue? @robbieaverill |
Here's behat failure: https://travis-ci.org/silverstripe/silverstripe-installer/jobs/522590190#L986 |
Ok had a quick chat to @unclecheese about this, here's a summary of our conversation:
My PR at #951 removes the optimistic updates and clears the store cache entirely. This isn't a great solution but will fix this issue and the broken Behat builds, and we can look at reimplementing optimistic updates in a separate issue. |
Pull requests merged, thanks @unclecheese. The fix for this will be in the next SilverStripe 4.3 and 4.4 releases. |
Requirements
Details
Deleting an asset in the asset admin triggers a javascript error, and mildly interrupts the sequence of states
Steps to recreate
or
Expected result:
The image is removed from view (and deleted from the filesystem in the background). A confirmation notice reads "1 folders/files were successfully archived."
Actual result:
The image remains in view, prompting a javascript error, (but is deleted from the filesystem in the background). A confirmation notice reads "1 folders/files were successfully archived.". The asset is removed from view within 1-2 seconds.
Verbose
Parent issue
The text was updated successfully, but these errors were encountered: