12:28 PM
ruaok
2017-12-22 35639, 2017
12:28 PM
github joined the channel
2017-12-22 35639, 2017
12:28 PM
github
[listenbrainz-server] mayhem opened pull request #323: Deploy to beta improvements (master...lb-beta-deploy)
https://git.io/vb9XI
2017-12-22 35639, 2017
12:28 PM
github has left the channel
2017-12-22 35642, 2017
12:28 PM
ruaok
iliekcomputers: how so?
2017-12-22 35605, 2017
12:29 PM
naiveai has quit
2017-12-22 35651, 2017
12:30 PM
iliekcomputers
ruaok: we do import default_config, try: import custom_config in a few places in the db code and the scripts.
2017-12-22 35613, 2017
12:31 PM
iliekcomputers
Creating a flask app and using its configuration would be a better way to manage this
2017-12-22 35637, 2017
12:32 PM
iliekcomputers
2017-12-22 35649, 2017
12:32 PM
ruaok
so, should the consul based config be copied to custom_config.py ?
2017-12-22 35659, 2017
12:33 PM
ruaok
now that I think of it, that makes a lot of sense, but is harder to detect.
2017-12-22 35653, 2017
12:34 PM
ruaok
ah, no. custom_config.py does not exist, on the .default file.
2017-12-22 35606, 2017
12:35 PM
ruaok
so, that makes sense. does the manage.py also read the custom_config.py file?
2017-12-22 35604, 2017
12:36 PM
iliekcomputers
ruaok: yes
2017-12-22 35619, 2017
12:36 PM
ruaok
perfect. let me update the PR then.
2017-12-22 35601, 2017
12:37 PM
iliekcomputers
2017-12-22 35654, 2017
12:37 PM
iliekcomputers
Instead of this, just using the flask app configuration would be better (and remove the need for copying the consul configuration to custom_config)
2017-12-22 35619, 2017
12:38 PM
iliekcomputers
For now, copying should work though.
2017-12-22 35630, 2017
12:39 PM
ruaok
not sure what you mean by "flask app configuration" . isn't that what we're doing?
2017-12-22 35651, 2017
12:40 PM
iliekcomputers
Instead of importing the files, we create an app (which loads the config files) and then use app.config for the values we need.
2017-12-22 35619, 2017
12:41 PM
iliekcomputers
Currently we just import default config, followed by custom_config
2017-12-22 35611, 2017
12:43 PM
ruaok
ok, I don't see the immediate value in doing that. lets do that later if you really feel it is necessary.
2017-12-22 35618, 2017
12:43 PM
github joined the channel
2017-12-22 35618, 2017
12:43 PM
github
[sir] samj1912 closed pull request #71: [WIP] Refactor SIR to handles large queries (master...large)
https://git.io/vbSjN
2017-12-22 35618, 2017
12:43 PM
github has left the channel
2017-12-22 35655, 2017
12:43 PM
iliekcomputers
2017-12-22 35603, 2017
12:44 PM
iliekcomputers
ruaok: yeah, for later
2017-12-22 35615, 2017
12:45 PM
D4RK-PH0ENiX joined the channel
2017-12-22 35613, 2017
12:50 PM
Ashish_
For that task of adding photograph of to wikimedia commons any instrument will do right
2017-12-22 35651, 2017
12:53 PM
heyoni joined the channel
2017-12-22 35640, 2017
12:56 PM
iliekcomputers
ruaok: about the copying of dumps out of the container, once you add the listenbrainz_scheduler container to services.sh, just creating a volume there and fixing the command in crontab would work.
2017-12-22 35614, 2017
12:57 PM
ruaok
k
2017-12-22 35609, 2017
12:58 PM
github joined the channel
2017-12-22 35609, 2017
12:58 PM
github
[sir] samj1912 closed pull request #70: Fix documentation generation (master...doc-update)
https://git.io/vbSK0
2017-12-22 35609, 2017
12:58 PM
github has left the channel
2017-12-22 35643, 2017
13:00 PM
samj1912
Mineo: can you change the repo url for sir documentation to metabrainz/sir instead of mineo/sir?
2017-12-22 35619, 2017
13:06 PM
sampsyo has quit
2017-12-22 35634, 2017
13:09 PM
ruaok
iliekcomputers: PR updated. please have a look.
2017-12-22 35637, 2017
13:09 PM
ruaok
dumps are running now
2017-12-22 35642, 2017
13:10 PM
sampsyo joined the channel
2017-12-22 35610, 2017
13:13 PM
heyoni has quit
2017-12-22 35623, 2017
13:13 PM
naiveai joined the channel
2017-12-22 35627, 2017
13:13 PM
naiveai has quit
2017-12-22 35653, 2017
13:15 PM
iliekcomputers
ruaok: lgtm
2017-12-22 35652, 2017
13:17 PM
ruaok
not a lot of feedback on how long it will take to dump this data.
2017-12-22 35600, 2017
13:18 PM
ruaok
I guess that isn't really needed,but I have no clue right now.
2017-12-22 35645, 2017
13:19 PM
Ashish_ has quit
2017-12-22 35606, 2017
13:20 PM
naiveai joined the channel
2017-12-22 35623, 2017
13:20 PM
iliekcomputers
Should have added logging for number of users done so far :/
2017-12-22 35643, 2017
13:21 PM
naiveai is up now
2017-12-22 35657, 2017
13:22 PM
samj1912
naiveai: what timezone are you on? O.o
2017-12-22 35620, 2017
13:23 PM
naiveai
i'm in the same timezone as you but i'm sleeping as if I was in europe :P
2017-12-22 35637, 2017
13:23 PM
naiveai
slept at bout 11am woke up just now
2017-12-22 35641, 2017
13:23 PM
ruaok
oh, I see your problem, naiveai. You're still trying to sleep.
2017-12-22 35646, 2017
13:23 PM
naiveai
:D
2017-12-22 35651, 2017
13:23 PM
ruaok
iliekcomputers and samj1912 gave that up a long time ago
2017-12-22 35653, 2017
13:23 PM
ruaok
or so it seems
2017-12-22 35605, 2017
13:24 PM
samj1912
lol :P
2017-12-22 35636, 2017
13:24 PM
samj1912 wont comment on his sleep hours :P
2017-12-22 35644, 2017
13:24 PM
iliekcomputers sleeps like a log always :D
2017-12-22 35618, 2017
13:25 PM
samj1912
and naiveai that's closer to US time than europe :P
2017-12-22 35627, 2017
13:25 PM
naiveai
true
2017-12-22 35648, 2017
13:25 PM
arthelon[m]
naiveai: don't give up too much sleep for gci haha
2017-12-22 35618, 2017
13:27 PM
chhavi_
samj1912: Are we talking sleep hours? Want me to pitch in? :p
2017-12-22 35631, 2017
13:27 PM
samj1912 runs away
2017-12-22 35603, 2017
13:29 PM
naiveai
question: thing works in regular Python script but not in jupyter notebook. what do?
2017-12-22 35631, 2017
13:29 PM
iliekcomputers
So the last hour and a half added a lot of stuff to work on for me, opened LB-264, LB-265, LB-266, LB-267 :D
2017-12-22 35631, 2017
13:29 PM
BrainzBot
2017-12-22 35631, 2017
13:29 PM
BrainzBot
2017-12-22 35631, 2017
13:29 PM
BrainzBot
2017-12-22 35631, 2017
13:29 PM
BrainzBot
2017-12-22 35642, 2017
13:29 PM
samj1912
naiveai: post a pastebin?
2017-12-22 35635, 2017
13:31 PM
naiveai
2017-12-22 35619, 2017
13:33 PM
samj1912
archive isn't defined?
2017-12-22 35651, 2017
13:33 PM
naiveai
no, it is, it's a dictionary
2017-12-22 35609, 2017
13:35 PM
samj1912
I meant in the pastebin
2017-12-22 35609, 2017
13:37 PM
samj1912
anyways, that simple script after redefining archive as {} works for me
2017-12-22 35612, 2017
13:37 PM
samj1912
as it should
2017-12-22 35626, 2017
13:48 PM
alastairp
2017-12-22 35632, 2017
13:48 PM
alastairp
> The downside is that you cannot use the application object in the blueprints at import time. You can however use it from within a request. How do you get access to the application with the config? Use current_app:
2017-12-22 35640, 2017
13:48 PM
drsaunders joined the channel
2017-12-22 35655, 2017
13:48 PM
alastairp
I saw that in some of your patches you build app and then store app.config to use in a later place
2017-12-22 35607, 2017
13:49 PM
alastairp
you can use current_app because it's lazy
2017-12-22 35608, 2017
13:50 PM
alastairp
oh, now that I think about it though, you probably need an active application context, which you'll only have if you integrate it into the flask cli
2017-12-22 35642, 2017
13:57 PM
xps2 joined the channel
2017-12-22 35636, 2017
14:15 PM
travis-ci joined the channel
2017-12-22 35637, 2017
14:15 PM
travis-ci
metabrainz/picard#2863 (master - ec07112 : Sambhav Kothari): The build passed.
2017-12-22 35637, 2017
14:15 PM
travis-ci
2017-12-22 35637, 2017
14:15 PM
travis-ci
2017-12-22 35637, 2017
14:15 PM
travis-ci has left the channel
2017-12-22 35608, 2017
14:21 PM
travis-ci joined the channel
2017-12-22 35609, 2017
14:21 PM
travis-ci
metabrainz/picard#2863 (master - ec07112 : Sambhav Kothari): The build passed.
2017-12-22 35609, 2017
14:21 PM
travis-ci
2017-12-22 35609, 2017
14:21 PM
travis-ci
2017-12-22 35609, 2017
14:21 PM
travis-ci has left the channel
2017-12-22 35639, 2017
14:24 PM
dragonzeron joined the channel
2017-12-22 35607, 2017
14:27 PM
padraic has quit
2017-12-22 35645, 2017
14:34 PM
ruaok
2017-12-22 35652, 2017
14:34 PM
ruaok
that is how the export died. O_O
2017-12-22 35645, 2017
14:44 PM
iliekcomputers
user with / in their name
2017-12-22 35656, 2017
14:44 PM
iliekcomputers
should have kept that in mind, ugh, my bad
2017-12-22 35609, 2017
14:46 PM
ruaok
no worries.
2017-12-22 35628, 2017
14:46 PM
iliekcomputers
I'll add some more logging and send a PR
2017-12-22 35632, 2017
14:46 PM
ruaok
ok, so I need to add a new volume and a new container, for the scheduler, right?
2017-12-22 35654, 2017
14:46 PM
ruaok
do you have any more details for me to look at?
2017-12-22 35654, 2017
14:46 PM
iliekcomputers
ruaok: yes
2017-12-22 35612, 2017
14:48 PM
iliekcomputers
wait, Dockerfile.prod hasn't been modified to accomodate cron
2017-12-22 35634, 2017
14:48 PM
ruaok
I kinda assumed that was my job.
2017-12-22 35637, 2017
14:48 PM
ruaok
what does it need?
2017-12-22 35604, 2017
14:49 PM
iliekcomputers
2017-12-22 35622, 2017
14:49 PM
iliekcomputers
2017-12-22 35627, 2017
14:49 PM
ruaok
cake. I'll do it in the next batch of changes I need to make.
2017-12-22 35632, 2017
14:49 PM
ruaok
you focus on the dump stuff.
2017-12-22 35635, 2017
14:49 PM
drsaunders has quit
2017-12-22 35608, 2017
14:50 PM
iliekcomputers
2017-12-22 35616, 2017
14:50 PM
iliekcomputers
ruaok: cool 👍🏽
2017-12-22 35606, 2017
14:55 PM
heyoni joined the channel
2017-12-22 35649, 2017
15:10 PM
skGCI has quit
2017-12-22 35601, 2017
15:21 PM
rgunkar joined the channel
2017-12-22 35615, 2017
15:34 PM
github joined the channel
2017-12-22 35615, 2017
15:34 PM
github
[listenbrainz-server] mayhem opened pull request #324: Use separate prod and beta configuration directories. (master...use-separate-env-dirs)
https://git.io/vb9Am
2017-12-22 35615, 2017
15:34 PM
github has left the channel
2017-12-22 35625, 2017
15:34 PM
ruaok
this is for the lemmy proc count fix, zas, iliekcomputers ^^
2017-12-22 35640, 2017
15:34 PM
zas
k thx ;)
2017-12-22 35641, 2017
15:34 PM
ruaok
which nagios just gave us thumbs up on. :)
2017-12-22 35654, 2017
15:40 PM
Slurpee joined the channel
2017-12-22 35654, 2017
15:40 PM
Slurpee has quit
2017-12-22 35654, 2017
15:40 PM
Slurpee joined the channel
2017-12-22 35645, 2017
15:42 PM
culinko joined the channel
2017-12-22 35650, 2017
15:42 PM
culinko has left the channel
2017-12-22 35611, 2017
15:47 PM
github joined the channel
2017-12-22 35611, 2017
15:47 PM
github
[listenbrainz-server] paramsingh opened pull request #325: LB-268: Escape usernames before creating files in dumps (master...escape-username-dumps)
https://git.io/vb9xN
2017-12-22 35611, 2017
15:47 PM
github has left the channel
2017-12-22 35633, 2017
15:47 PM
ruaok
your favorite task ever, no?
2017-12-22 35645, 2017
15:47 PM
iliekcomputers
lol
2017-12-22 35658, 2017
15:47 PM
iliekcomputers
i don't even now how i could forget about this :P
2017-12-22 35614, 2017
15:48 PM
ruaok
painful memories get repressed.
2017-12-22 35633, 2017
15:48 PM
ruaok
or repossesed. I forget which
2017-12-22 35642, 2017
15:48 PM
iliekcomputers
heh
2017-12-22 35639, 2017
15:51 PM
dragonzeron has quit
2017-12-22 35609, 2017
15:52 PM
ruaok
urllib quote plus for filenames. interesting concept. :)
2017-12-22 35652, 2017
15:52 PM
ruaok
... will that... work on windows?
2017-12-22 35606, 2017
15:53 PM
ruaok 's head asplodes
2017-12-22 35622, 2017
15:56 PM
alastairp
2017-12-22 35624, 2017
15:59 PM
iliekcomputers
it encodes all invalid characters
2017-12-22 35645, 2017
15:59 PM
ruaok
yes, but invalid for URLs, no?
2017-12-22 35659, 2017
15:59 PM
ruaok
not for filenames -- those are two different domains.
2017-12-22 35620, 2017
16:00 PM
ruaok
and sadly, yes, we need to look out for winblows users who want to import 60M listens into excel.
2017-12-22 35620, 2017
16:01 PM
iliekcomputers
yeah, but invalid for urls is a superset of invalid for filenames (unix / windows), although I'd be happy to do something more valid here.
2017-12-22 35609, 2017
16:02 PM
ruaok
is that superset assertion correct?