datamade / nyc-councilmatic

:statue_of_liberty: a web app for keeping tabs on city council activity in New York City
https://nyc.councilmatic.org
MIT License
39 stars 12 forks source link

user comments gone in Disqus #202

Closed davidmooreppf closed 7 years ago

davidmooreppf commented 7 years ago

E.g. on bottom of featured bill page, where there had been nine or ten comments. Maybe the deploy nuked them?

I can log in to our Disqus admin panel in a few minutes to see what comments are still there, to help see if we can restore.

derekeder commented 7 years ago

@davidmooreppf can you confirm the shortname for your Disqus account? Is it nyc-councilmatic or nyccouncilmatic?

davidmooreppf commented 7 years ago

It's nyc-councilmatic. Can hand off the login & pw to Admin over chat. #120 was a previous reference issue. I'll look more tmw but as of now, all the "Discussions" in Disqus admin say they were created five hours ago, so that would be the time of the deploy.

davidmooreppf commented 7 years ago

Picking this back up, I can start a Disqus support ticket to inquire about any way to access comments before last week's deploy.

Realizing that Disqus is an add-on system, do we think the deploy fully re-installed Disqus too? It's not an emergency, but it would definitely be good to retrieve comments from Intro 1259, currently featured on homepage

In Disqus Admin panel, previous user comments are not showing as "Deleted", they don't seem to appear anywhere.

In Disqus Admin, there's a Discussions view that has ten legislative pages, somehow updated five hours ago, but there are no public comments on those pages, certainly not five hours ago today, so I don't know how Discussions is being defined. Can ask Disqus.

davidmooreppf commented 7 years ago

I'm gonna check in with Disqus this afternoon on this front, it's priority given some local media tmw. Just one last ping in case anything comes to mind on restoring from previous Disqus version. I'll dive in this afternoon though w/ Disqus support and maybe more documentation.

reginafcompton commented 7 years ago

Okay, David. When we last checked, it looked like comments were back...so, please let us know what Disqus has to say!

davidmooreppf commented 7 years ago

Disqus is there at bottom of pages, but ten user comments on homepage legislative item are still not on production.

reginafcompton commented 7 years ago

Ah, ok! I see. We'll look more closely at this.

davidmooreppf commented 7 years ago

OK, poked around Disqus admin more. I do need to get to bottom of this for our community group partner.

Their help section didn't help. I started an issue describing the below on their support forum. Gah.

Under their /admin/moderate, old comments didn't appear under "pending" or "approved".

But I went to "All" in "past year" and the old comments appeared. I saved a .txt dump just in case. But they wouldn't appear with their initial avatars unless we can restore them from below.

So to try to make them appear, I went to one from last year on intro 856, selected it, and clicked "approve". It saved as check-marked approved in same Disqus admin "all" comments view, but it's not on site, and not in "approved" section on Disqus admin. Attached image. screen shot 2017-02-08 at 12 35 20 pm

So before I make any more checks in /admin, I'll stop here. You have the login for Disqus admin, yes? Can share. And we could screenshare for minute if that's more efficient.

Misc notes:

Is this how we embedded Disqus? Universal code?

Anything happen in the notifications merge into Master that would have affected Disqus? I can't parse files in detail.

derekeder commented 7 years ago

@davidmooreppf I looked into this and I believe I've figured out the cause. When we launched the new updates, we had to make some changes to the way we format the legislation URLs. This was put in place to handle potential conflicts where different legislation had the same URL. Here's an example:

We have redirects setup to handle this, but it appears to be tripping up Disqus, as comments are associated to a specific URL.

It looks like Disqus has some tools for migrating and moving comments for the exact scenario. David - do you want to try it out? https://help.disqus.com/customer/portal/articles/286778-migration-tools

davidmooreppf commented 7 years ago

Ah makes sense to me. I'll start that migration shortly. We have the same Disqus shortname so should merge OK...

I had seen page in Disqus help about importing comments from Drupal or WP or whatever, but hadn't seen that migration page.

derekeder commented 7 years ago

Great - let me know if it works and if you need anything from us.

davidmooreppf commented 7 years ago

So bottom of that page is a Redirect Crawler button. I can push it, but before I do, just confirming we have setup the 301 re-directs it's expecting to find? I mean, as opposed to something else? Ha just being cautious.

derekeder commented 7 years ago

@davidmooreppf yes, we have redirects set up for all the old URLs. Go for it!

davidmooreppf commented 7 years ago

I took the extremely technical step of pressing the button. They say it might take 24 hours, obvs. probably fewer since we have fewer re-directs. Will update.

derekeder commented 7 years ago

Woo. May we be blessed by the old gods and the new

davidmooreppf commented 7 years ago

So, here's my attempt to check on status. It could still be running but gives no such indication.

The migration page said to check /admin/discussions view for updates. That view is showing ten discussion items (bit confusing), I think that's unchanged. It's definitely still just one page.

But over on Intro 856, the old comment I approved now appears. Though not in /admin/discussions.

So I'm going to try approving an old comment on Intro 1259 and seeing if it appears after I press the button again. If that works I'll replicate with all old comments.

davidmooreppf commented 7 years ago

Crawlers must have still been running b/c after posting this I hit refresh and nine comments re-appeared on homepage Intro 1259, and seemingly on all other pages.

So I don't really understand what /admin/discussions is showing, that had been confusing earlier as well when looking for old comments, but I think we're all set.

I'll double check tmw and then close the issue. Thx Derek.

reginafcompton commented 7 years ago

This looks fixed. @davidmooreppf re-open the issue, if needed.