I'll respond as soon as I can, or somebody else will
stanislas
LordSputnik: I've forgot to add it.
(to add id=1, id=2 and I thought that it is working, because I've seen no errors)
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.
LordSputnik: ?
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
stanislas: It might actually be better to put the TRUNCATE in fixtures.py, right before you add the languages
Gentlecat
opatel99: wait for what?
opatel99
Gentlecat: Wait until you have woken up
after sleep^
Gentlecat
may I ask why?
opatel99
"are you trying to wake me up or something?" > I thought that implied you were sleeping
the only way jinja and js should be connected is by jinja calling functions
LordSputnik
stanislas: Let me know if you're having trouble with the language stuff or are ready to do the commit squashing
Gentlecat
scripts (bundles) should be imported from html, as usual
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
Gentlecat
probably because definition should be before the call
opatel99
I tried that
Gentlecat
I don't remember exactly how it is implemented
you might need to replace `onclick` attribute with a listener
bitmap
trying to reference a function defined in a bundle?
LordSputnik
opatel99: wait for document.ready before adding the listeners
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
(most likely anyway, I haven't been following too closely)
event will bubble up to the document, second arg filters on #more-button selector
ruaok: any advice if search freaks out?
ruaok
Follow the instructions in syswiki.
If that doesn't work, take both search servers offline for a minute or two.
If that doesn't work, take everything offline.
sudo crm_mon -1r
To find out which server is running which services.
stanislas
LordSputnik : ?
bitmap
ruaok: got it, thanks
ruaok
Good luck. :-)
LordSputnik
stanislas: run db.session.execute(...) when truncating, that should fix it
stanislas
when ?
What do you mean by ... ?
And this previous TRUNCATE should be in db.engine.execute or in db.session.execute ?
LordSputnik
db.session.execute
stanislas
LordSputnik: changing only this previous line worked :)
commited and pushed
LordSputnik: Do you want me to clean up these commits ?
LordSputnik
stanislas: yes please - do you remember how to do it? If not, check that chatlogs, the instructions should be pretty much the same :)
bitmap has quit
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)
It would be less readable that way, but I don't like how it's done there. What do you think LordSputnik ?
LordSputnik: I will look in bash_history
LordSputnik
stanislas: You mean with loops to create larger numbers of entities? I think so too
We can probably randomise most of the entity content, I think
stanislas
These are all real examples now :)
LordSputnik
We could have a set of functions to generate random values for the scalar types, and use those in loops
stanislas
I've done it for fun really
I've pasted some real names to google translate and selected some weird language
bitmap joined the channel
ruaok
bitmap: crashed again.
the dora out trick didn't work. :(
stanislas
But I see you point, doing it automatically would make some better tests.
ruaok
everything is back and I now dropped the global rate limit to 1500.
bitmap: zas: I changed the following socket related items back, in hopes they may have made a difference:
LordSputnik: How can I move myself to another branch, I've some old data now
zas
Did you add them to gateway cookbook ?
Safer if we re run cookbooks ....
ruaok
oh hai.
no not added.
LordSputnik
stanislas: Are there commits in the current branch you don't want to keep?
ruaok
and given that I saw your changes that reduces the TIME_WAIT sockets, I'm not sure this will help.
stanislas
LordSputnik: I am afraid, I can't do that myself. There are branches now, and I have no idea how to do that.
ruaok
anyway, the global rate limit is 1500 now.
see if we can be stable with a lower limit.
stanislas
LordSputnik: No
LordSputnik
stanislas: What branch are you in locally?
stanislas
I think that it is master, but i don't really know. I've used PyCharm git client before.
ruaok boards in 20 minutes.
LordSputnik
stanislas: OK, go to the directory your source code is in, and run "git status" to find out the local branch
ruaok
Mineo: can you please help zas understand what is required to deploy the solr search stuff?
I think we may just want to bite the bullet and deploy it.
any bugs that need fixing are likely less troublesome than the shit we're dealing with now.
stanislas
creator_list_test
ruaok
and I am sick and tired of wasting massive amounts of energy into fixing code we're going to throw away.
so, I would like to start the conversations about how to deploy the search servers onto our infrastructure.
LordSputnik
stanislas: OK, isn't that what you want to be on? Why do you want to move branch?
ruaok
and then we can print out the search server code and have ourselves an office style PC LOAD LETTER moment.
ok, enough for now.
stanislas
LordSputnik: I don't want to move it
LordSputnik
stanislas: but you just said you wanted to move to another branch?
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
LordSputnik: I don't remember saying that.
Maybe we didn't understand each other, when I was saying that.
LordSputnik
Ok hold on, could you paste the commands you've done so far in a gist?
Mineo
ruaok: ok
zas: ping
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.
LordSputnik: What do you think ?
LordSputnik
OK, let's start over with your up to date work then
First, you'll want to do "git reset HEAD~20" (not --hard!)
stanislas: are you only going to put it in 1 commit?
stanislas
yes
LordSputnik
Generally it's best to have 1 commit correspond to a complete feature at a particular point
stanislas
LordSputnik: so now commmit and push :) ?
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
Now, I think it would be best to separate your work into one commit for the test class and one commit for each entity
(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)