0:00 AM
johtso
hehe, just being nosey :)
0:10 AM
Sput|Away
So, the question is, if my browser is saying that the "Host" header is
bookbrainz.org , why is the HTTP_HOST in the wsgi environment just "bookbrainz"
0:15 AM
johtso
Sput|Away, is the nginx config somewhere?
0:16 AM
Sput|Away
0:16 AM
(for the uwsgi stuff)
0:17 AM
johtso
is there a `server_name bookbrainz` somewhere?
0:19 AM
Sput|Away
nope, only "server_name bookbrainz.org"
0:20 AM
bitmap: is the load balancer doing anything funny with the HTTP_HOST header?
0:21 AM
johtso
All I can thinking of it try to enable more logging to pinpoint where it starts looking odd
0:27 AM
bitmap
I'll try adding a proxy_set_header directive
0:29 AM
did that help?
0:30 AM
Sput|Away
hold on
0:30 AM
checking
0:31 AM
wow
0:31 AM
bitmap: You GentleCat'd it
0:31 AM
bitmap
haha
0:31 AM
Sput|Away
HTTP_HOST='bookbrainz.org'
0:31 AM
bitmap
awesome
0:32 AM
Sput|Away
was that on the load balancer or in our bookbrainz config?
0:32 AM
bitmap
load balancer, it was losing the original host and using the name of the upstream
0:33 AM
sorry I didn't see that sooner
0:33 AM
Sput|Away
That's OK, I learnt a lot about Flask and Werkzeug ;)
0:36 AM
Ahh, so that did fix HTTP_HOST, but still getting the same issue in Flask... I'll continue looking tomorrow
0:44 AM
Oh nope, that's just my cache...
0:49 AM
hmm Leftmost: Not Found (GET: /ws/ws/publication/a4dc4915-9d57-4b75-9465-a33f960275b2/disambiguation)
0:59 AM
Ah, it now seems that relative URLs once again have the /ws prefix - I'll see what I can do to fix that tomorrow
1:00 AM
Sput|Away has left the channel
9:53 AM
LordSputnik joined the channel
9:59 AM
LordSputnik
Leftmost: If you're here, I'm not sure we should try to avoid the "/ws" part of the relative URL
10:02 AM
ZaphodBeeblebrox joined the channel
10:07 AM
11:16 AM
bookzombie
bookbrainz-schema/master c300981 Ben Ockmore: Added option to not create tables during bootstrap.
11:19 AM
bookbrainz-schema/master 93329eb Ben Ockmore: Corrected mistakes in arguments to bootstrap.
11:29 AM
LordSputnik
Leftmost: Leo_Verto: ping?
11:49 AM
Leo_Verto
pong
11:52 AM
LordSputnik
Ok, I'm not exactly sure what to about Leftmost and ID #2, he doesn't seem to be here and the launch is in 8 minutes
11:52 AM
Might make a placeholder...
11:53 AM
Leo_Verto: see PM
11:56 AM
Leo_Verto
um
11:56 AM
something's broken
11:56 AM
LordSputnik
Fixing it now
11:56 AM
Leo_Verto
I end up on /login/handler
11:57 AM
LordSputnik
Leo_Verto: now?
11:57 AM
Leo_Verto
yay
11:57 AM
logged in and #3 :D
11:58 AM
LordSputnik
Freso: here, and want to claim #5?
11:58 AM
11:59 AM
We're going to need to do something about those times
11:59 AM
I wonder why that's happened
11:59 AM
At least there should be a constant offset, so it should be fairly simple to fix once we find out why
12:00 PM
Leftmost
I am here.
12:00 PM
LordSputnik
Ok, register now and I'll move you to #2
12:01 PM
Leftmost
Done.
12:03 PM
LordSputnik, why was it you don't think we should strip the /ws from relative URIs?
12:04 PM
LordSputnik
12:05 PM
Leftmost: because with "/..." urls, the URL is meant to be relative to the domain name
12:06 PM
err
12:06 PM
We may be missing some of the languages - not sure why yet
12:06 PM
taken things down just to be safe
12:11 PM
Got it
12:14 PM
12:14 PM
12:15 PM
LordSputnik thinks Terry Pratchett should be #8 if not #1
12:15 PM
since 8 is particularly important in Discworld
12:15 PM
Leo_Verto
hmm, 404 on messageForm
12:18 PM
LordSputnik
ah, should be message send, I'll fix that
12:21 PM
bookzombie
bookbrainz-site/master a77e816 Ben Ockmore: Updated message form URL in editor page link.
12:24 PM
LordSputnik
ah, client JS ws endpoint needs updating - relationships form (and editor profile form) currently out of action
12:26 PM
Leftmost
LordSputnik, there's just no way to be graceful about how we construct URLs if we include /ws.
12:27 PM
LordSputnik
Leftmost: well, if we keep using absolute URLs, we're fine
12:27 PM
Leftmost
Sorry, phone company's April Fool's gag is to make tethering not work properly.
12:27 PM
LordSputnik
if not, can't we just add /ws to the front of any hand-types urls, and use
bookbrainz.org as the ws setting?
12:27 PM
Ahh, I forgot to update the relationship templates in the bootstrap script
12:28 PM
Leftmost
We could. Mostly we just need to decide if we're going to hardcode /ws or if we're going to allow that to be a config thing.
12:29 PM
What's up with the editor page?
12:29 PM
LordSputnik
Looks fine to me?
12:30 PM
Leftmost
I'm getting "Cannot read property 'id' of undefined".
12:31 PM
LordSputnik
Still? I thought I fixed that :(
12:31 PM
Leftmost
Oh, it's because I'm not logged in and there's no check to make sure that req.user exists before accessing it.
12:31 PM
LordSputnik
There is as of 5 minutes ago
12:32 PM
Leftmost
Not in routes/editor.js for the /:id route.
12:32 PM
LordSputnik
It's in view/editor/editor.jade
12:32 PM
Ohhh
12:32 PM
Not a template error...
12:33 PM
fixed
12:34 PM
Leftmost
By the way, you violated style guidelines for our first publication. ;)
12:36 PM
LordSputnik
the "The" ?
12:36 PM
Leftmost
Yep.
12:36 PM
LordSputnik
well, it'll give someone something to do when entity updates come in :D
12:36 PM
Leftmost
Hehe.
12:36 PM
Leo_Verto
umm
12:36 PM
so it says "Person" under persons but nothing under the publication?
12:38 PM
LordSputnik
Leo_Verto: I couldn't set a type for the first publication - there wasn't really an appropriate one
12:38 PM
Leo_Verto
ah
12:38 PM
LordSputnik
There's journal, but I don't think that covers it
12:39 PM
Is it a book, maybe?
12:43 PM
Leftmost
Okay, I need to go back to bed now. Back in a little while.
12:46 PM
Leo_Verto
do we really want the type to be part of the <a>?
12:47 PM
LordSputnik
Leftmost: Don't forget twitter, before you go
12:47 PM
Leo_Verto: I tweaked it so the whole box was clickable, like a button
12:47 PM
Leo_Verto
ah nice
12:47 PM
LordSputnik
easier for mobile users
12:47 PM
(and less fiddly for desktop users)
12:48 PM
Ahh damn
12:48 PM
I made a bad edit
12:48 PM
LordSputnik wishes we had reverting in now
12:51 PM
Hmm, and it's debatable whether I should've made those relationships between creator->publication anyway
12:51 PM
probably creator<->work would be more appropriate
12:52 PM
Leo_Verto
well, MB has the same problem
13:00 PM
oh
13:04 PM
hmm, the pre-commit hook prevents me from pushing
13:04 PM
*commiting
13:04 PM
johtso
What does language mean for a creator? and what does the "primary" checkbox signify?
13:05 PM
bookzombie
bookbrainz-site/master e622cfe LeoVerto: Updated message form URL in message reply link.
13:06 PM
LordSputnik
johtso: you should tick the primary checkbox if the alias you enter is the most commonly used on for the language you specify
13:06 PM
johtso
aha
13:06 PM
I see, so it's like adding an alias in MB
13:07 PM
Leo_Verto
LordSputnik, can you update the server?
13:07 PM
LordSputnik
johtso: yeah exactly
13:08 PM
johtso: up until about a week ago, you could add many aliases in the creation form, but we removed it because the interface wasn't very clear
13:08 PM
Leo_Verto: yup, sure, just doing a tweak of my own, then I'll pull
13:11 PM
johtso
Is a translation a different work?
13:12 PM
LordSputnik
Yeah, it is
13:13 PM
zag joined the channel
13:13 PM
hey zag :)
13:14 PM
bookzombie
bookbrainz-site/master 6a4c8df Ben Ockmore: Add beta notice onto homepage.
13:14 PM
johtso
LordSputnik, does that mean it wouldn't make sense to add multiple language aliases to a work then?
13:14 PM
as a different language alias would be a different translation..
13:15 PM
LordSputnik
johtso: I can't see a reason to right now, unless the work hadn't been translated, but still had a different title outside the original country
13:15 PM
johtso
I'm sure stranger things have happened :)
13:15 PM
LordSputnik
site going down for 20 seconds, just updating a few pages
13:15 PM
zag
afternoon
13:16 PM
johtso
Hmm, not sure what the right type would be for a "series of short stories"
13:16 PM
LordSputnik
johtso: that's probably an anthology or something - we don't have that yet
13:16 PM
I'd add each story as a separate short story work, then when we add sets/series, we can deal with anthologies properly :)
13:17 PM
johtso
13:19 PM
LordSputnik
hmm, that seems a little more tricky, since the stories could probably also be considered as a single work
13:19 PM
perhaps an "Anthology" work would be best for now?
13:20 PM
johtso
yeah, don't think the stories were every published individually, and there's some kind of continuity between the stories
13:20 PM
Leo_Verto
apparently you removed the multiple alias thing but why is the "Primary" checkbox still there?
13:21 PM
LordSputnik
Leo_Verto: the checkbox we removed was default - it's still possible to add an initial "non-primary" alias though
13:21 PM
eg. if you only know some colloquial name or a nickname for the entity
13:22 PM
johtso: added "Anthology" for you :)
13:25 PM
Leo_Verto: ahh, adding the culture novels?
13:26 PM
Leo_Verto
yup :D
13:26 PM
johtso
ah, nice one
13:26 PM
although... I'm thinking anthology doesn't fit quite right
13:27 PM
anthology seems to imply a bunch of works that were selected by a complier and released as a group
13:27 PM
often spanning multiple authors
13:28 PM
LordSputnik
Yeah I think you're probably right - not sure what to call a collection of short stories by the same person