12:00 am
johtso
hehe, just being nosey :)
12: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"
12:15 am
johtso
Sput|Away, is the nginx config somewhere?
12:16 am
Sput|Away
12:16 am
(for the uwsgi stuff)
12:17 am
johtso
is there a `server_name bookbrainz` somewhere?
12:19 am
Sput|Away
nope, only "server_name bookbrainz.org"
12:20 am
bitmap: is the load balancer doing anything funny with the HTTP_HOST header?
12:21 am
johtso
All I can thinking of it try to enable more logging to pinpoint where it starts looking odd
12:27 am
bitmap
I'll try adding a proxy_set_header directive
12:29 am
did that help?
12:30 am
Sput|Away
hold on
12:30 am
checking
12:31 am
wow
12:31 am
bitmap: You GentleCat'd it
12:31 am
bitmap
haha
12:31 am
Sput|Away
HTTP_HOST='bookbrainz.org'
12:31 am
bitmap
awesome
12:32 am
Sput|Away
was that on the load balancer or in our bookbrainz config?
12:32 am
bitmap
load balancer, it was losing the original host and using the name of the upstream
12:33 am
sorry I didn't see that sooner
12:33 am
Sput|Away
That's OK, I learnt a lot about Flask and Werkzeug ;)
12:36 am
Ahh, so that did fix HTTP_HOST, but still getting the same issue in Flask... I'll continue looking tomorrow
12:44 am
Oh nope, that's just my cache...
12:49 am
hmm Leftmost: Not Found (GET: /ws/ws/publication/a4dc4915-9d57-4b75-9465-a33f960275b2/disambiguation)
12: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
1:00 pm
oh
1:04 pm
hmm, the pre-commit hook prevents me from pushing
1:04 pm
*commiting
1:04 pm
johtso
What does language mean for a creator? and what does the "primary" checkbox signify?
1:05 pm
bookzombie
bookbrainz-site/master e622cfe LeoVerto: Updated message form URL in message reply link.
1: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
1:06 pm
johtso
aha
1:06 pm
I see, so it's like adding an alias in MB
1:07 pm
Leo_Verto
LordSputnik, can you update the server?
1:07 pm
LordSputnik
johtso: yeah exactly
1: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
1:08 pm
Leo_Verto: yup, sure, just doing a tweak of my own, then I'll pull
1:11 pm
johtso
Is a translation a different work?
1:12 pm
LordSputnik
Yeah, it is
1:13 pm
zag joined the channel
1:13 pm
hey zag :)
1:14 pm
bookzombie
bookbrainz-site/master 6a4c8df Ben Ockmore: Add beta notice onto homepage.
1:14 pm
johtso
LordSputnik, does that mean it wouldn't make sense to add multiple language aliases to a work then?
1:14 pm
as a different language alias would be a different translation..
1: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
1:15 pm
johtso
I'm sure stranger things have happened :)
1:15 pm
LordSputnik
site going down for 20 seconds, just updating a few pages
1:15 pm
zag
afternoon
1:16 pm
johtso
Hmm, not sure what the right type would be for a "series of short stories"
1:16 pm
LordSputnik
johtso: that's probably an anthology or something - we don't have that yet
1: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 :)
1:17 pm
johtso
1:19 pm
LordSputnik
hmm, that seems a little more tricky, since the stories could probably also be considered as a single work
1:19 pm
perhaps an "Anthology" work would be best for now?
1:20 pm
johtso
yeah, don't think the stories were every published individually, and there's some kind of continuity between the stories
1:20 pm
Leo_Verto
apparently you removed the multiple alias thing but why is the "Primary" checkbox still there?
1:21 pm
LordSputnik
Leo_Verto: the checkbox we removed was default - it's still possible to add an initial "non-primary" alias though
1:21 pm
eg. if you only know some colloquial name or a nickname for the entity
1:22 pm
johtso: added "Anthology" for you :)
1:25 pm
Leo_Verto: ahh, adding the culture novels?
1:26 pm
Leo_Verto
yup :D
1:26 pm
johtso
ah, nice one
1:26 pm
although... I'm thinking anthology doesn't fit quite right
1:27 pm
anthology seems to imply a bunch of works that were selected by a complier and released as a group
1:27 pm
often spanning multiple authors
1:28 pm
LordSputnik
Yeah I think you're probably right - not sure what to call a collection of short stories by the same person