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

Site Deletion: console error after deletion and no confirmation #5084

Closed
fabianapsimoes opened this issue Apr 28, 2016 · 8 comments
Closed
Labels
[Feature] Site Settings All other general site settings. [Type] Bug When a feature is broken and / or not performing as intended

Comments

@fabianapsimoes
Copy link
Contributor

I'm seeing two console errors in the Site Deletion flow:

  • this.notes[0] is undefined shows as soon as I load /settings/general/:site. This continues being logged in the console within regular intervals of time.
  • TypeError: ownProps.site is undefined shows as soon as I complete the deletion flow and see the green notice.

Another thing I noticed is that there's no confirmation the site was deleted. I see a green notice saying ":site is being deleted" but nothing happens after that. Not sure if that's by design or related to the errors mentioned above.

Steps to reproduce:

  • Create a new site and open your browser's console.
  • Visit /settings/general/:site and check the console. You'll see the error about this.notes[0].
  • Select Delete Site at the bottom of the page, and complete the flow.
  • Take another look at your console. You'll see the error about ownProps.site.
  • After completing the flow, you'll see a green notice letting you know the site is being deleted. Nothing happens after this point.

cc @gwwar, @rralian: @stephanethomas mentioned the error about ownProps.site might be related to #4881 (p1461846744000049-upgrades-slack).

@fabianapsimoes fabianapsimoes added [Type] Bug When a feature is broken and / or not performing as intended [Feature] Site Settings All other general site settings. labels Apr 28, 2016
@lancewillett
Copy link
Contributor

Related: #4444

@lancewillett
Copy link
Contributor

Missing confirmation is a dupe of #158

@fabianapsimoes
Copy link
Contributor Author

After the fix in #5089, I no longer see the error involving ownProps.site. Instead I see TypeError: site is undefined -- cc @gwwar.

The error about this.notes[0] is still there.

@fabianapsimoes
Copy link
Contributor Author

Also I just observed this.notes[0] is undefined after signup when landing in Calypso, either in /checkout or /plans/:site (in case you got a free trial). So not specific to this flow. @lancewillett maybe worth moving this to a separate issue?

@lancewillett
Copy link
Contributor

Yes, new issue would be good. Thanks!

@rralian
Copy link
Contributor

rralian commented May 2, 2016

I did some screen-sharing with @fabianapsimoes, looks like the this.notes[0] issue is related to the notifications system. I'll create a separate issue for that one. I'm looking into the site deletion issue now. We were able to recreate that issue in firefox but not chrome.

@gwwar
Copy link
Contributor

gwwar commented May 3, 2016

TypeError: site is undefined

@fabianapsimoes Did you happen to know what line number that's coming from?

@fabianapsimoes
Copy link
Contributor Author

I've just tested this again, after #5190 was merged, and seems the errors are gone.

Another thing I noticed is that there's no confirmation the site was deleted. I see a green notice saying ":site is being deleted" but nothing happens after that. Not sure if that's by design or related to the errors mentioned above.

This is also fixed now. We're redirected to the no sites screen after the deletion.

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Site Settings All other general site settings. [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

No branches or pull requests

4 participants