-
Notifications
You must be signed in to change notification settings - Fork 18
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
Studio: Delete all active demo sites #131
Conversation
@kozer , what do you think about moving the heavy logic to the backend? I feel more confident if the App makes only one request to delete all the sites. |
@kozer it seems that you are adding a confirmation window for deleting all sites in this PR. I currently have a similar issue assigned: https://github.com/Automattic/dotcom-forge/issues/7081 - would you like to assign it to yourself if that case since you are covering that functionality? |
I'm sorry, Kat! The ticket I'm working on, mentioned the confirmation in the comments, and I haven't realized, there was a separate issue for that! I can assign it to me, thanks! |
@sejas , I was thinking about that, and I decided not to do that, for the following reasons:
|
No worries, I have not started yet - so all good! I removed my assignment from that issue 👍 |
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.
Tbh, I had the same problem this morning, @katinthehatsite . I applied the diff, and I didn't have any success. To see if it's working or not, open dev tools and check if |
I see, I did not apply the diff initially because I missed |
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.
When I tested the feature, I had some floating demo sites in Studio: a few expired ones, and one I removed using Jurassic Ninja Report Card tool. The new feature removed existing sites correctly, but it didn't clear the floating ones. Should it also remove all local demo sites?
@kozer I don't have access to that diff to apply it. |
It's ok Matt! I'm not sure what I need to do for you to obtain access. My guess is that @wojtekn can do that for you. |
Thanks for sharing the context! Let's do that 👌 |
Thanks @kozer , looks good: Could you please fix lint errors? |
Related to https://github.com/Automattic/dotcom-forge/issues/6655
Fixes https://github.com/Automattic/dotcom-forge/issues/7081
Proposed Changes
This PR fixes a bug where the user reaches the maximum number of active demo sites. However, if none of the created sites are linked to the demo sites, he can't remove any to continue creating demo sites.
Testing Instructions
Prerequisite: Apply D148749-code
appdata-v1.json
files, and remove all snapshotsPre-merge Checklist