Plots2: Subscribers over time

Created on 6 Mar 2019  Â·  6Comments  Â·  Source: publiclab/plots2

Display the # of subscribers over time on tag stats pages like this: https://publiclab.org/tag/ui/stats

Ruby enhancement help wanted in-progress

Most helpful comment

@gauravano @jywarren @sagarpreet-chadha @SidharthBansal

This is what I have in mind for this graph.
sy59iglx

The bar graphs showing the number of subscribers subscribed during a period and the area graph showing the growth number of subscribers with time for each tag.

However I am blocked on how to fetch this data. The tag_selection model does not have a timestamp so I cannot use it to get the number of subscribers at a particular time or the number of subscribers who subscribed within a given range. Maybe I am missing something...any ideas on how I can query the number of subscribers against time.
Also how does the graph look? Thanks.

All 6 comments

@gauravano @jywarren @sagarpreet-chadha @SidharthBansal

This is what I have in mind for this graph.
sy59iglx

The bar graphs showing the number of subscribers subscribed during a period and the area graph showing the growth number of subscribers with time for each tag.

However I am blocked on how to fetch this data. The tag_selection model does not have a timestamp so I cannot use it to get the number of subscribers at a particular time or the number of subscribers who subscribed within a given range. Maybe I am missing something...any ideas on how I can query the number of subscribers against time.
Also how does the graph look? Thanks.

ahhhhhhh node_selection has no timestamp? wait, what about tag_selection?

If tag_selection has none, we may be stuck! I mean, we could start tracking
now, but we'd have no data from the past...

On Thu, Mar 21, 2019 at 12:33 PM Cess notifications@github.com wrote:

@gauravano https://github.com/gauravano @jywarren
https://github.com/jywarren @sagarpreet-chadha
https://github.com/sagarpreet-chadha @SidharthBansal
https://github.com/SidharthBansal

This is what I have in mind for this graph.
[image: sy59iglx]
https://user-images.githubusercontent.com/17081074/54767485-486f0800-4c0e-11e9-9ed0-d88c2d4b531c.png

The bar graphs showing the number of subscribers subscribed during a
period and the area graph showing the growth number of subscribers with
time for each tag.

However I am blocked on how to fetch this data. The node_selection model
does not have a timestamp so I cannot use it to get the number of
subscribers at a particular time or the number of subscribers who
subscribed within a given range. Maybe I am missing something...any ideas
on how I can query the number of subscribers against time.
Also how does the graph look? Thanks.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/4925#issuecomment-475305000,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJyubdnHBGWfWXH06u8jsApglKP2cks5vY7QugaJpZM4bgPRA
.

Oh sorry I meant tag_selection

Okay I think I will add the timestamp and we can start tracking from now. Thanks @jywarren

OK, thank you Cess!

On Fri, Mar 22, 2019 at 12:27 PM Cess notifications@github.com wrote:

Okay I think I will add the timestamp and we can start tracking from now.
Thanks @jywarren https://github.com/jywarren

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/4925#issuecomment-475686753,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJzLugzcC00gmXdUVYwgsCWdgjkFJks5vZQQ9gaJpZM4bgPRA
.

Active Record automatically timestamps create and update operations if the table has fields named created_at/created_on or updated_at/updated_on.

I think this'll be a very quick fix!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

milaaraujo picture milaaraujo  Â·  3Comments

jywarren picture jywarren  Â·  3Comments

keshavsethi picture keshavsethi  Â·  3Comments

first-timers[bot] picture first-timers[bot]  Â·  3Comments

keshavsethi picture keshavsethi  Â·  3Comments