Closed Bug 623348 Opened 14 years ago Closed 13 years ago

Keep a fixed number of tweets per locale

Categories

(support.mozilla.org :: Army of Awesome, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: paulc, Assigned: paulc)

References

Details

Right now we're only including tweets from users whose language is English.

AoA pages in other languages probably want to see at least tweets in their language.

Kadir and William will be discussing what tweets should localizers see.

As James pointed out, we need to reconsider how we limit the tweets after this, since right now we're only storing 500 tweets, and en-US will dominate that.
Would it be possible to store the 500 most recent English tweets and 100 most recent tweets for each locale we're supporting? For example: we'd store 500 en-US, 100 de, 100 fr, etc.
Some reworking will be needed but in principle, yeah, it would be.
We'd like to just show tweets from that locale. If someone wants to see English tweets, they can view the en-US/army-of-awesome page.

Can we store the 500 most recent tweets for each locale?
(In reply to comment #3)
> Can we store the 500 most recent tweets for each locale?
Well, one constant is simpler than 2, and we can revisit if there will be a need to restrict to 100 for non-English tweets.

I do expect that most locales won't have much, but e.g. German, French might be fairly active.
Assignee: nobody → paulc
Depends on: 624459
Blocks: 627831
There's a fallback message that needs tweaking, for which bug 627831 has been filed. This commit really doesn't do what the bug summary says, so I'm changing it.

https://github.com/jsocol/kitsune/commit/886c7a4ff675e38af78e72deab51cacd57964618

The locale-specific tweet list was taken care of in bug 623341.

QAing this is not that easy, but if there are enough, say, German or French tweets, then it's proof that the cleanup works differently from before (when it would just keep the newest 500 regardless of locale, overwhelmingly English).
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Summary: Locale-specific tweet list → Keep a fixed number of tweets per locale
Did you file a bug for adding the purge_tweet cron to allizom?
Blocks: 628199
(In reply to comment #6)
> Did you file a bug for adding the purge_tweet cron to allizom?
I did now!
It looks like we're only getting tweets from 8 hours ago, no scrolling is in effect on any other locale ex:
https://support-release.allizom.org/fr/army-of-awesome

The tweets are coming in by the hour so I expect there should be enough data to scroll.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
In non-English locales, it will take a while to build up to the maximum number of tweets we store. French has tweets going back about 21 hours now, and there is a second "page".

At 17:25-8 it was around 2 am in France. Give them time ;)
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Japan has been awake longer, and has a bunch of data already:

https://support-release.allizom.org/ja/army-of-awesome
Good stuff, guys, makes me feel good.
Verified many more tweets in non-US locales. I don't think any of them will exceed 500 prior to the release, but will keep an eye on it- it's definitely more than 100.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.