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

Fix bug with User not being in removal reparse section #908

Merged

Conversation

Martii
Copy link
Member

@Martii Martii commented Feb 26, 2016

  • Calling this removal reparse for lack of better naming
  • Fix bug on User removal when there is no other content
  • Fill in the basic construct for Comment and Discussion removal... designed so the top portion can be moved around to a separate function if needed... yes it might need some compression but not until the remaining switch cases are filled in (need) to see what can code be reused.
  • Removal of an owned discussion "orphans" others comment however it's not fatal and keeps their comments around
  • When comment editing comes around... will need to call remove Comment and check if the Discussion needs to be removed as well.
  • Tested orphans to ensure they didn't get reassigned if a topic is resurrected.
  • May need a little tweaking on User Comments list with breadcrumbs but that is UI specific.
  • Very literal coding here... using null in all async fields... I'm aware of undefined but lessens the readability and contributor understanding... negligible impact
  • Watching for VPS timing issue with potential multiple comments... and it has been attempted on pro already by others... added a TODO for this and will watch stderr

NOTES

Applies to #126 ... shamelessly treads on #262 (comment)

* Calling this removal reparse for lack of better naming
* Fix bug on User removal when there is no other content
* Fill in the basic construct for Comment and Discussion removal... designed so the top portion can be moved around to a separate function if needed... yes it might need some compression but not until the remaining switch cases are filled in to see what can code be reused.
* Removal of an owned discussion "orphans" others comment however it's not fatal and keeps their comments around
* When comment editing comes around... will need to call remove Comment and check if the Discussion needs to be removed as well.
* Tested orphans to ensure they didn't get reassigned if a topic is resurrected.
* May need a little tweaking on User Comments list with breadcrumbs but that is UI specific.
* Very literal coding here... using `null` in all *async* fields... I'm aware of `undefined` but lessens the readability and contributor understanding... negligible impact
* Watching for VPS timing issue with potential multiple comments... and it has been attempted on pro already by others... added a TODO for this and will watch stderr

**NOTES**
* Keeping OpenUserJS#126 open until all removal issues are with minimal coverage

Applies to OpenUserJS#126 ... shamelessly treads on OpenUserJS#262 (comment)
@Martii Martii added bug You've guessed it... this means a bug is reported. enhancement Something we do have implemented already but needs improvement upon to the best of knowledge. CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. labels Feb 26, 2016
Martii added a commit that referenced this pull request Feb 26, 2016
Fix bug with `User` not being in removal reparse section

Auto-merge
@Martii Martii merged commit 83925ca into OpenUserJS:master Feb 26, 2016
@Martii Martii deleted the Issue-126addCommentToDiscussionCheck branch February 26, 2016 09:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug You've guessed it... this means a bug is reported. CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. enhancement Something we do have implemented already but needs improvement upon to the best of knowledge.
Development

Successfully merging this pull request may close these issues.

1 participant