Page MenuHomePhabricator

Need a way to detect age of WURFL db and possible updates
Closed, DeclinedPublic

Description

Since the WURFL db is constantly getting updated we should have an easy way to know that its out of date with what we have in production.


Version: --
Severity: normal

Details

Reference
bz29401

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:34 PM
bzimport set Reference to bz29401.
bzimport added a subscriber: Unknown Object (MLST).

preilly wrote:

The XML file has the following tags at the beginning of the file.

<ver>www.wurflpro.com - 2010-12-31 05:04:30</ver>

<last_updated>Fri Dec 31 05:10:11 -0600 2010</last_updated>
 ...

preilly wrote:

I updated the database to the following:

<ver>www.wurflpro.com - 2011-04-24 12:07:53</ver>
<last_updated>Sun Apr 24 12:09:17 -0500 2011</last_updated>

It would be great if we could automate this and then set an alarm whenever the WURFL db drifted past X days/months. That way it could easily be automated.

Do we really need to detect the age? could we just not have a cron script that updates it every X days no matter if there is a new version or not?

We should have a cron update it as the first step no matter what ... but crons break down and I'd hate have this as silent failure and then lose updates because no one knows that its busted.

It would be great to have this just happen and alarm if it explodes.

I'm sure we have the cron spam something if it breaks in a similar way to LU spams the irc channel if it does.

I would suggest working with OPs to have them implement something in Nagios.

Alternatively, you could start working on something that would be like WordPress's way to notify you if there are updates for WP or an extension. It would be great if we could build an update-checker extension (I think it would have to be an extension to mitigate privacy concerns, but I could be wrong) that other extensions (like the mobile extension) could plug into.