CottageLabs/OpenArticleGauge

dates in elasticsearch

Opened this issue · 1 comments

Right now Publisher configs for the GSM are being created with created_date that's something like 2014-02-20 1646, which is just a string (and is kind of a weird format). We should make these actual dates at some point. They're generated automatically anyway so control over them should be easy.

If this change is made we'll need to be careful when running the service live with all the old data, mixing dates and strings for 1 field will probably not be to elasticsearch's taste. So all old records might need to be updated or reindexed or something. Anyway, need to be careful when changing this.

Also not needed just now as we don't need sorting on when objects were created, but noting here for later.

I'm probably going to have some migrate scripts from the existing OAG
database to the new version required for the next phase (no data model
changes, but some data changes). We could add a migrate script that sorts
these dates out.

On 20 February 2014 17:17, Emanuil Tolev notifications@github.com wrote:

Right now Publisher configs for the GSM are being created with
created_date that's something like 2014-02-20 1646, which is just a
string (and is kind of a weird format). We should make these actual dates
at some point. They're generated automatically anyway so control over them
should be easy.

If this change is made we'll need to be careful when running the service
live with all the old data, mixing dates and strings for 1 field will
probably not be to elasticsearch's taste. So all old records might need to
be updated or reindexed or something. Anyway, need to be careful when
changing this.

Also not needed just now as we don't need sorting on when objects were
created, but noting here for later.


Reply to this email directly or view it on GitHubhttps://github.com//issues/69
.

Richard Jones,

Founder, Cottage Labs
t: @richard_d_jones, @CottageLabs
w: http://cottagelabs.com