-
Notifications
You must be signed in to change notification settings - Fork 53
Expired previews are not getting deleted #1909
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
Conversation
…ttic/studio into fix/expired-preview-sites-removal
…ttic/studio into fix/expired-preview-sites-removal
📊 Performance Test ResultsComparing b5dd97a vs trunk site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change |
gcsecsey
left a comment
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.
Thanks @katinthehatsite, this looks good and works well for me. 👍
I already had a couple expired preview sites:
After clearing "My Elementor Website Preview 1":
After restarting the app:
The preview is also removed from appdata-v1.json:
wojtekn
left a comment
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.
It fixes the issue - cleared previews do not appear in my Studio again.
nightnei
left a comment
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.
Co-authored-by: Volodymyr Makukha <[email protected]>
…-preview-sites-removal
…ttic/studio into fix/expired-preview-sites-removal


Related issues
Closes STU-859
Proposed Changes
This PR ensures that when you are clicking on the
Clearbutton to remove an expired preview site from the UI, it is removed correctly from app-data and does not show back in the UI on app rerendering.Testing Instructions
/Library/Application Support/Studio/appdata-v1.jsonfile and set that preview site to be created 10 days agoPreviewsand observe that the preview site is marked as expired in the UIClearbuttonappdata-v1.jsonPre-merge Checklist