where are the events on the timeline stored in the source code of MBS?
JonnyJD joined the channel
chirlu
Mineo: Nowhere, they are data (rows in statistics.statistic_event).
Freso[koume] joined the channel
Freso[koume]
Huh. No ruaok.
reosarevok
Freso[koume]: net-splitted at 8AM
Freso[koume]
Ah.
chirlu
7 am our time.
Freso[koume] has quit
FergusL joined the channel
chrisskye_ joined the channel
chrisskye_ has quit
kwikadi has quit
diana_olhovyk_ joined the channel
diana_olhovyk_ has quit
Mineo
so the process to get new events on the timeline is basically "write some sql and send it to barcelona with a bag of chocolate"?:)
chirlu
“Make a PR adding a one-time script to admin/sql/updates”, I’d say. But they won’t refuse chocolate either, I guess.
Hobbyboy joined the channel
Freso|koume joined the channel
colbydray joined the channel
chirlu joined the channel
JonnyJD has quit
djwhitey has quit
LordSputnik
Leftmost: QuoraUK: I'll be 15 minutes late for the meeting today
Leftmost
LordSputnik, alright.
QuoraUK
LordSputnik: no problem
LordSputnik
Leftmost: QuoraUK: ping
QuoraUK
LordSputnik: Pong
Leftmost
Pong.
LordSputnik
How are you both?
Leftmost
Not too bad, overall. Tired, though. Work is taking up all of my energy of late.
QuoraUK
Alright, internet still busted >.<
cant move til tuesday now, I think i did jinx myself
Leftmost
Eek.
LordSputnik, how's it with you?
LordSputnik
Pretty good, but busy. I finished of OAuth and then closes PRs pretty much
*closed
Including one of the gamification ones and a lot of dependency upgrades
Freso|koume is here, too! :D
\o/
Leftmost
Very nice.
QuoraUK
rad :D
LordSputnik
I'd like to close the OAuth PR by Monday evening - Leftmost, will you have had time to look at that point?
Leftmost
Yeah, I spaced it this week but I can get to it today.
Sorry about the delay on that.
LordSputnik
OK that's fine :)
I'm going to close more PRs and then start implementing Selenium browser tests over the next few days
QuoraUK
LordSputnik: Finally got events firing :D. it was the silly thing :P
LordSputnik
Ahhh OK good
QuoraUK
oh, I also pushed the migrations up
LordSputnik
The missing client JS stuff?
Slurpee joined the channel
QuoraUK
the sql ones?
oh, yeah. that was it :P
LordSputnik
Hmm. I'm not sure we should include the achievement type data in the migration
QuoraUK
ok, I can move that somewhere else
LordSputnik
However, we've never really done anything like this before (adding new types), so I don't really know the best way to do it
QuoraUK
what do you recommend? A different migration file?
CallerNo6 joined the channel
LordSputnik
I think either way you'll end up reading SQL to load the data in, so I guess it might as well be included in the migration
But that raises the question - should the types also be included in the schema SQL? Or a similar SQL file used when setting up the database for the first time
It seems strange to include something in a migration but not in the initial setup
QuoraUK: also, you'll probably want to add lines to drop all the foreign keys to your down.sql script, I think
QuoraUK
Ahh, ok. I did look into that, I assumed those were dropped as well
ill get on that shortly
LordSputnik
I'm not 100% sure but I don't think deleting the tables will work for that
Leftmost
It seems like something that'd belong in initial setup, since it's data that could be present in a clean import.
chirlu has quit
LordSputnik
OK, so perhaps we could make a new "create_type_data.sql" file in scripts/, and then add the achievement/title types to that along with all the other types in BB
or "create_initial_data.sql"
QuoraUK
ok, would that script be called from anywhere in particular?
chirlu joined the channel
LordSputnik
Nope, don't think so - it'd be up to users to call it manually if they need the initial data set up in the database
The alternative would be to import our official dump
QuoraUK
alright, fair enough
LordSputnik
(when it's publically available)
Once there's a docker script, we'll probably do something similar to what musicbrainz-docker does, and allow the user to specify whether to use dumps when setting up the container
if not, the initial data will get loaded in
QuoraUK
that shounds like a good idea
JesseW joined the channel
LordSputnik
On another note, my OAuth stuff introduces the "co" package to -site - I'm hoping eventually to convert more of our promise logic to use this
I'll start with the most complex stuff, because that's where we'll get the most benefit for readability and clarity of code
QuoraUK
oh! I can probably make a move over to that as well