#metabrainz

/

      • opatel99
        Gentlecat:
      • 2015-12-30 36438, 2015

      • stanislas
        LordSputnik: I am afraid that it doesn't, sorry
      • 2015-12-30 36458, 2015

      • Gentlecat
        are you trying to wake me up or something?
      • 2015-12-30 36414, 2015

      • Gentlecat
        just post your questions here or on GitHub
      • 2015-12-30 36423, 2015

      • opatel99
        Gentlecat: nvm. It can wait. Sorry for waking you
      • 2015-12-30 36431, 2015

      • Gentlecat
        I'll respond as soon as I can, or somebody else will
      • 2015-12-30 36442, 2015

      • stanislas
        LordSputnik: I've forgot to add it.
      • 2015-12-30 36422, 2015

      • stanislas
        (to add id=1, id=2 and I thought that it is working, because I've seen no errors)
      • 2015-12-30 36443, 2015

      • stanislas
        Strangely, after deleting all this languages adding from fixture.py, it worked. I might also say, that printing language_id shown numbers such as 1008 and 1009, and it haven't cleared in the next execution of my program.
      • 2015-12-30 36452, 2015

      • stanislas
        LordSputnik: ?
      • 2015-12-30 36419, 2015

      • LordSputnik
        stanislas: it will show 1008 and 1009 if you haven't set IDs, because it's using the next value of the language_id sequence
      • 2015-12-30 36400, 2015

      • LordSputnik
        stanislas: It might actually be better to put the TRUNCATE in fixtures.py, right before you add the languages
      • 2015-12-30 36414, 2015

      • Gentlecat
        opatel99: wait for what?
      • 2015-12-30 36404, 2015

      • opatel99
        Gentlecat: Wait until you have woken up
      • 2015-12-30 36419, 2015

      • opatel99
        after sleep^
      • 2015-12-30 36429, 2015

      • Gentlecat
        may I ask why?
      • 2015-12-30 36447, 2015

      • opatel99
        "are you trying to wake me up or something?" > I thought that implied you were sleeping
      • 2015-12-30 36401, 2015

      • _Dave_ joined the channel
      • 2015-12-30 36434, 2015

      • Gentlecat
        do you have a question?
      • 2015-12-30 36459, 2015

      • opatel99
        I wanted to discuss http://stackoverflow.com/questions/3412275/loadin… . I was trying to find a way to render Jinja in the js after it is compiled
      • 2015-12-30 36407, 2015

      • Gentlecat
        the only way jinja and js should be connected is by jinja calling functions
      • 2015-12-30 36436, 2015

      • LordSputnik
        stanislas: Let me know if you're having trouble with the language stuff or are ready to do the commit squashing
      • 2015-12-30 36455, 2015

      • Gentlecat
        scripts (bundles) should be imported from html, as usual
      • 2015-12-30 36459, 2015

      • opatel99
        Then another concern. I reference a script, but when I call the function from the load more results button, I get not defined. If I place a console.log in the bundle, the log does output to browser
      • 2015-12-30 36444, 2015

      • Gentlecat
        probably because definition should be before the call
      • 2015-12-30 36459, 2015

      • opatel99
        I tried that
      • 2015-12-30 36401, 2015

      • Gentlecat
        I don't remember exactly how it is implemented
      • 2015-12-30 36452, 2015

      • Gentlecat
        you might need to replace `onclick` attribute with a listener
      • 2015-12-30 36402, 2015

      • bitmap
        trying to reference a function defined in a bundle?
      • 2015-12-30 36404, 2015

      • LordSputnik
        opatel99: wait for document.ready before adding the listeners
      • 2015-12-30 36455, 2015

      • LordSputnik
        It's either that the DOM isn't loaded when you try to assign the handler or that the handler JS isn't loaded at the point when you bind it to the event
      • 2015-12-30 36411, 2015

      • LordSputnik
        (most likely anyway, I haven't been following too closely)
      • 2015-12-30 36439, 2015

      • Gentlecat
      • 2015-12-30 36427, 2015

      • bitmap
        all files are wrapped in functions, so the load_more() function only exists in the file which it's defined in
      • 2015-12-30 36442, 2015

      • stanislas
        LordSputnik: I've not seen that I've lost the connection, sorry.
      • 2015-12-30 36453, 2015

      • bitmap
        if you need to reference it from the template, add load_more to the window or an object defined on the window
      • 2015-12-30 36420, 2015

      • ruaok
        Bitmap: zas is busy today and I'm about to go flying.
      • 2015-12-30 36433, 2015

      • ruaok
        Can you please keep an eye on things?
      • 2015-12-30 36438, 2015

      • stanislas
        LordSputnik: it doesn't work
      • 2015-12-30 36441, 2015

      • bitmap
        I can do
      • 2015-12-30 36448, 2015

      • ruaok
        Note: Dora is out and will stay out.
      • 2015-12-30 36454, 2015

      • stanislas
        LordSputnik: even if I put this line before lan1 = Lan...
      • 2015-12-30 36456, 2015

      • bitmap
        okay
      • 2015-12-30 36404, 2015

      • ruaok
        I think having two servers sometimes causes issues.
      • 2015-12-30 36411, 2015

      • ruaok
        Index rotation is off.
      • 2015-12-30 36431, 2015

      • LordSputnik
        stanislas: OK, I'll have a look
      • 2015-12-30 36440, 2015

      • stanislas
        LordSputnik: but now different errore
      • 2015-12-30 36452, 2015

      • stanislas
        LordSputnik: It says something about alias table
      • 2015-12-30 36413, 2015

      • opatel99
        bitmap: I will try that.
      • 2015-12-30 36443, 2015

      • stanislas
        HINT says that I should cut at the same time alias or use TRUNCATE ... CASCADE.
      • 2015-12-30 36459, 2015

      • LordSputnik
        stanislas: add CASCADE at the end :)
      • 2015-12-30 36400, 2015

      • bitmap
        opatel99: the better option is to just attach an event listener in the file where load_more is defined
      • 2015-12-30 36448, 2015

      • bitmap
        you can either do what LordSputnik said or use event delegation, which doesn't need the elements to exist
      • 2015-12-30 36451, 2015

      • stanislas
        LordSputnik: doesn't working too
      • 2015-12-30 36402, 2015

      • opatel99
        bitmap: Like this document.getElementById("more-button").addEventListener("click", load_more);
      • 2015-12-30 36408, 2015

      • stanislas
        LordSputnik: the same error as before
      • 2015-12-30 36415, 2015

      • stanislas
        LordSputnik: id=1 exists
      • 2015-12-30 36445, 2015

      • bitmap
        opatel99: $(document).on('click', '#more-button', load_more)
      • 2015-12-30 36432, 2015

      • bitmap
        event will bubble up to the document, second arg filters on #more-button selector
      • 2015-12-30 36444, 2015

      • bitmap
        ruaok: any advice if search freaks out?
      • 2015-12-30 36415, 2015

      • ruaok
        Follow the instructions in syswiki.
      • 2015-12-30 36439, 2015

      • ruaok
        If that doesn't work, take both search servers offline for a minute or two.
      • 2015-12-30 36453, 2015

      • ruaok
        If that doesn't work, take everything offline.
      • 2015-12-30 36423, 2015

      • ruaok
        sudo crm_mon -1r
      • 2015-12-30 36441, 2015

      • ruaok
        To find out which server is running which services.
      • 2015-12-30 36447, 2015

      • stanislas
        LordSputnik : ?
      • 2015-12-30 36410, 2015

      • bitmap
        ruaok: got it, thanks
      • 2015-12-30 36431, 2015

      • ruaok
        Good luck. :-)
      • 2015-12-30 36428, 2015

      • LordSputnik
        stanislas: run db.session.execute(...) when truncating, that should fix it
      • 2015-12-30 36401, 2015

      • stanislas
        when ?
      • 2015-12-30 36422, 2015

      • stanislas
        What do you mean by ... ?
      • 2015-12-30 36452, 2015

      • stanislas
        And this previous TRUNCATE should be in db.engine.execute or in db.session.execute ?
      • 2015-12-30 36411, 2015

      • LordSputnik
        db.session.execute
      • 2015-12-30 36402, 2015

      • stanislas
        LordSputnik: changing only this previous line worked :)
      • 2015-12-30 36438, 2015

      • stanislas
        commited and pushed
      • 2015-12-30 36430, 2015

      • stanislas
        LordSputnik: Do you want me to clean up these commits ?
      • 2015-12-30 36451, 2015

      • LordSputnik
        stanislas: yes please - do you remember how to do it? If not, check that chatlogs, the instructions should be pretty much the same :)
      • 2015-12-30 36418, 2015

      • bitmap has quit
      • 2015-12-30 36441, 2015

      • stanislas
        And I've been wondering if changing fixture.py to more iterative style would be appropriate (it is mainly copy-paste, but I left it since I've encountered it thay way)
      • 2015-12-30 36452, 2015

      • stanislas
        It would be less readable that way, but I don't like how it's done there. What do you think LordSputnik ?
      • 2015-12-30 36455, 2015

      • stanislas
        LordSputnik: I will look in bash_history
      • 2015-12-30 36425, 2015

      • LordSputnik
        stanislas: You mean with loops to create larger numbers of entities? I think so too
      • 2015-12-30 36441, 2015

      • LordSputnik
        We can probably randomise most of the entity content, I think
      • 2015-12-30 36406, 2015

      • stanislas
        These are all real examples now :)
      • 2015-12-30 36410, 2015

      • LordSputnik
        We could have a set of functions to generate random values for the scalar types, and use those in loops
      • 2015-12-30 36412, 2015

      • stanislas
        I've done it for fun really
      • 2015-12-30 36442, 2015

      • stanislas
        I've pasted some real names to google translate and selected some weird language
      • 2015-12-30 36445, 2015

      • bitmap joined the channel
      • 2015-12-30 36459, 2015

      • ruaok
        bitmap: crashed again.
      • 2015-12-30 36405, 2015

      • ruaok
        the dora out trick didn't work. :(
      • 2015-12-30 36407, 2015

      • stanislas
        But I see you point, doing it automatically would make some better tests.
      • 2015-12-30 36417, 2015

      • ruaok
        everything is back and I now dropped the global rate limit to 1500.
      • 2015-12-30 36448, 2015

      • ruaok
        bitmap: zas: I changed the following socket related items back, in hopes they may have made a difference:
      • 2015-12-30 36451, 2015

      • ruaok
      • 2015-12-30 36458, 2015

      • ruaok
        applied on bert and ernie
      • 2015-12-30 36419, 2015

      • stanislas
        LordSputnik: How can I move myself to another branch, I've some old data now
      • 2015-12-30 36426, 2015

      • zas
        Did you add them to gateway cookbook ?
      • 2015-12-30 36407, 2015

      • zas
        Safer if we re run cookbooks ....
      • 2015-12-30 36454, 2015

      • ruaok
        oh hai.
      • 2015-12-30 36457, 2015

      • ruaok
        no not added.
      • 2015-12-30 36410, 2015

      • LordSputnik
        stanislas: Are there commits in the current branch you don't want to keep?
      • 2015-12-30 36413, 2015

      • ruaok
        and given that I saw your changes that reduces the TIME_WAIT sockets, I'm not sure this will help.
      • 2015-12-30 36425, 2015

      • stanislas
        LordSputnik: I am afraid, I can't do that myself. There are branches now, and I have no idea how to do that.
      • 2015-12-30 36425, 2015

      • ruaok
        anyway, the global rate limit is 1500 now.
      • 2015-12-30 36433, 2015

      • ruaok
        see if we can be stable with a lower limit.
      • 2015-12-30 36435, 2015

      • stanislas
        LordSputnik: No
      • 2015-12-30 36443, 2015

      • LordSputnik
        stanislas: What branch are you in locally?
      • 2015-12-30 36431, 2015

      • stanislas
        I think that it is master, but i don't really know. I've used PyCharm git client before.
      • 2015-12-30 36409, 2015

      • ruaok boards in 20 minutes.
      • 2015-12-30 36452, 2015

      • LordSputnik
        stanislas: OK, go to the directory your source code is in, and run "git status" to find out the local branch
      • 2015-12-30 36425, 2015

      • ruaok
        Mineo: can you please help zas understand what is required to deploy the solr search stuff?
      • 2015-12-30 36437, 2015

      • ruaok
        I think we may just want to bite the bullet and deploy it.
      • 2015-12-30 36457, 2015

      • ruaok
        any bugs that need fixing are likely less troublesome than the shit we're dealing with now.
      • 2015-12-30 36417, 2015

      • stanislas
        creator_list_test
      • 2015-12-30 36434, 2015

      • ruaok
        and I am sick and tired of wasting massive amounts of energy into fixing code we're going to throw away.
      • 2015-12-30 36454, 2015

      • ruaok
        so, I would like to start the conversations about how to deploy the search servers onto our infrastructure.
      • 2015-12-30 36406, 2015

      • LordSputnik
        stanislas: OK, isn't that what you want to be on? Why do you want to move branch?
      • 2015-12-30 36415, 2015

      • ruaok
        and then we can print out the search server code and have ourselves an office style PC LOAD LETTER moment.
      • 2015-12-30 36423, 2015

      • ruaok
        ok, enough for now.
      • 2015-12-30 36440, 2015

      • stanislas
        LordSputnik: I don't want to move it
      • 2015-12-30 36407, 2015

      • LordSputnik
        stanislas: but you just said you wanted to move to another branch?
      • 2015-12-30 36428, 2015

      • stanislas
        LordSputnik: But when I am looking on the files the new ones aren't there, It might be usable that I've done git reset --hard HEAD~1 21 times
      • 2015-12-30 36456, 2015

      • stanislas
        LordSputnik: I don't remember saying that.
      • 2015-12-30 36440, 2015

      • stanislas
        Maybe we didn't understand each other, when I was saying that.
      • 2015-12-30 36421, 2015

      • LordSputnik
        Ok hold on, could you paste the commands you've done so far in a gist?
      • 2015-12-30 36414, 2015

      • Mineo
        ruaok: ok
      • 2015-12-30 36416, 2015

      • Mineo
        zas: ping
      • 2015-12-30 36417, 2015

      • stanislas
        bash_history is deleting the duplicates, I have copied the whole directory somewhere else on my computer, we can use that copy and forget this local thing.
      • 2015-12-30 36423, 2015

      • stanislas
        LordSputnik: What do you think ?
      • 2015-12-30 36400, 2015

      • LordSputnik
        OK, let's start over with your up to date work then
      • 2015-12-30 36453, 2015

      • LordSputnik
        First, you'll want to do "git reset HEAD~20" (not --hard!)
      • 2015-12-30 36401, 2015

      • LordSputnik
        Actually
      • 2015-12-30 36413, 2015

      • LordSputnik
        let's make it really easy
      • 2015-12-30 36421, 2015

      • LordSputnik
        "git reset --soft 178269e1cb5a2d99ef6957f03bead7241b59fa7f"
      • 2015-12-30 36443, 2015

      • LordSputnik
        Then go through and make the commits you want
      • 2015-12-30 36402, 2015

      • LordSputnik
        (with git add and git add --patch)
      • 2015-12-30 36423, 2015

      • stanislas
        ok, done
      • 2015-12-30 36429, 2015

      • stanislas
        LordSputnik: ^
      • 2015-12-30 36457, 2015

      • stanislas
        now commit and push
      • 2015-12-30 36458, 2015

      • stanislas
        ?
      • 2015-12-30 36438, 2015

      • LordSputnik
        stanislas: are you only going to put it in 1 commit?
      • 2015-12-30 36440, 2015

      • stanislas
        yes
      • 2015-12-30 36443, 2015

      • LordSputnik
        Generally it's best to have 1 commit correspond to a complete feature at a particular point
      • 2015-12-30 36438, 2015

      • stanislas
        LordSputnik: so now commmit and push :) ?
      • 2015-12-30 36409, 2015

      • LordSputnik
        So having everything in one commit isn't great - ideally you would have created the EntityTestCase class, committed, added some working complete functions, committed, and then kept going like that, writing useful commit messages as you went
      • 2015-12-30 36410, 2015

      • LordSputnik
        Now, I think it would be best to separate your work into one commit for the test class and one commit for each entity
      • 2015-12-30 36433, 2015

      • LordSputnik
        (but please try to do more useful commit messages in future so we don't have to go back and rewrite history in this way)
      • 2015-12-30 36438, 2015

      • gcilou
        LordSputnik: Since there is an avatar on the creator display page eg. https://bookbrainz.org/creator/4e8f8704-7c34-4a00… ; does that mean it is an option to add a picture to a creator? Like MB?
      • 2015-12-30 36410, 2015

      • LordSputnik
        gcilou: there will be, but not yet unfortunately
      • 2015-12-30 36438, 2015

      • LordSputnik
        we need to sort out stuff with the CAA, and additionally implement linking to wikimedia commons images