I remember having some reason for removing it but i can't remember it now
2016-02-12 04315, 2016
stanislas
* recall
2016-02-12 04355, 2016
LordSputnik
OK
2016-02-12 04358, 2016
stanislas
I will check it once again
2016-02-12 04314, 2016
LordSputnik
does the user have to manually call RequestQueue.send_all?
2016-02-12 04329, 2016
LordSputnik
and do they have to instantiate it?
2016-02-12 04303, 2016
stanislas
no
2016-02-12 04305, 2016
LordSputnik
(does it interface with the models yet?)
2016-02-12 04311, 2016
stanislas
they are not dealing with it at all
2016-02-12 04354, 2016
stanislas
And it doesn't iterfere with the models
2016-02-12 04321, 2016
LordSputnik
stanislas: oh no I meant do the models use it yet?
2016-02-12 04327, 2016
LordSputnik
I've just seen it on Entity()
2016-02-12 04349, 2016
LordSputnik
So a RequestQueue is instantiated for each group of requests to build an object
2016-02-12 04350, 2016
stanislas
they are :)
2016-02-12 04307, 2016
LordSputnik
And then all the requests for the object and it's properties to be filled are put into the queue, and then sent?
2016-02-12 04308, 2016
stanislas
And yes it is
2016-02-12 04325, 2016
stanislas
yes, but in two rounds sometimes
2016-02-12 04359, 2016
stanislas
in the first round: entity, relationships, aliases, identifiers ...
2016-02-12 04316, 2016
stanislas
in the second round (for Edition): publication, publisher
2016-02-12 04344, 2016
LordSputnik
OK, because it relies on having the edition data?
2016-02-12 04349, 2016
stanislas
\yes
2016-02-12 04300, 2016
stanislas
I don't know what publisher/publication to query
2016-02-12 04315, 2016
stanislas
before requesting Edition first
2016-02-12 04323, 2016
stanislas
ly
2016-02-12 04333, 2016
LordSputnik
Technically, it would be better to more everything to the second round apart from the data - the reason the WS serves URLs for that is so that the URLs can change if we need them to. However, so long as we update pybb if the URLs change, we should be OK
2016-02-12 04356, 2016
stanislas
good point, I will change it in some time
2016-02-12 04359, 2016
LordSputnik
OK :)
2016-02-12 04307, 2016
LordSputnik
Generally though, this is really good stuff :)
2016-02-12 04333, 2016
stanislas
I don't know if you've seen, but there is a function that can return a list of entities of various types.
2016-02-12 04353, 2016
LordSputnik
where?
2016-02-12 04330, 2016
stanislas
So if you want to query Works, Creators, Editions at once, it will return a list that will look like this [Creator, Creator, ..., Edition, Work, Edition]
2016-02-12 04342, 2016
stanislas
in entity.py
2016-02-12 04300, 2016
stanislas
get_multiple_ids_derived
2016-02-12 04316, 2016
stanislas
And thank you :) I am trying to do my best
2016-02-12 04336, 2016
LordSputnik
Ahh OK, I see now
2016-02-12 04313, 2016
LordSputnik
With a little bit of adjustment, you should be able to merge get_multiple_ids_json and get_multiple_ids_json_derived
2016-02-12 04319, 2016
LordSputnik
I think only 1 line is different
2016-02-12 04331, 2016
stanislas
Also, if you query multiple ids, requests from each round will be sended at the same time
2016-02-12 04345, 2016
LordSputnik
Also don't forget to update the licenses to v2 and also remove me from the copyright, since I haven't written any of it ;)
2016-02-12 04359, 2016
stanislas
That's not true
2016-02-12 04304, 2016
stanislas
you have written a lot of it
2016-02-12 04311, 2016
stanislas
I've been copying bbschema
2016-02-12 04332, 2016
stanislas
second, there is a TODO about moving to v2
2016-02-12 04337, 2016
LordSputnik
Nah that doesn't count, you've only really kept the class names
2016-02-12 04325, 2016
LordSputnik
(and maybe a few comments)
2016-02-12 04329, 2016
stanislas
that's also no true, see utils.format_date
2016-02-12 04338, 2016
stanislas
it's entirely yours
2016-02-12 04309, 2016
LordSputnik
well OK, there should be a header in that file with me on it, but I probably shouldn't be on the other files, trust me ;)
2016-02-12 04321, 2016
stanislas
Yeah, I see your point
2016-02-12 04319, 2016
stanislas
removed fetch_from_json and fetch_from_json_filled
2016-02-12 04302, 2016
stanislas
I have a question, what was it that you've said that I want to merge
2016-02-12 04312, 2016
stanislas
fixtures.py in bbschema ?
2016-02-12 04316, 2016
stanislas
something like that
2016-02-12 04349, 2016
LordSputnik
fixtures.py in bbws and utils/data.py in bbschema
2016-02-12 04309, 2016
stanislas
And how should I use this in bbws ?
2016-02-12 04319, 2016
stanislas
which database should I fill
2016-02-12 04320, 2016
LordSputnik
I'm not sure, it may not be worth doing, since it'll be ported to node soon
2016-02-12 04335, 2016
stanislas
ok, that's true
2016-02-12 04353, 2016
stanislas
How should I test delete/put/posts on pybb ?
2016-02-12 04327, 2016
stanislas
I wanted to set up my own bbws
2016-02-12 04314, 2016
LordSputnik
stanislas: yeah go for it :) The best thing would be to use data dumps to set up a db and then spin up the WS
2016-02-12 04331, 2016
LordSputnik
I really want to make Docker images for BookBrainz :P
2016-02-12 04307, 2016
LordSputnik
stanislas: I can make you some up-to-date production database dumps if you like?
2016-02-12 04314, 2016
stanislas
I've learnt what docker is no more than a week ago and it seems great :)
2016-02-12 04335, 2016
stanislas
I'd be grateful
2016-02-12 04310, 2016
LordSputnik
stanislas: ha, well I learnt about it about 2 days ago :P
2016-02-12 04321, 2016
LordSputnik
I sort of knew what it was but it seems amazing
2016-02-12 04322, 2016
stanislas
Do you have time to send me some data dump today ?
2016-02-12 04346, 2016
LordSputnik
stanislas: already made it :)
2016-02-12 04300, 2016
LordSputnik
just putting it somewhere public
2016-02-12 04319, 2016
LordSputnik wonders why he hasn't set up weekly dumps yet