« Back to channel list

#RubyOnRails - 23 January 2019

« Back 1 day Forward 1 day »
[00:08:27] sevenseacat: has joined #RubyOnRails
[00:31:38] nchambers: has joined #RubyOnRails
[00:54:22] ^amra: has joined #RubyOnRails
[01:53:47] Jervis_: has joined #RubyOnRails
[01:59:15] mr_roybot: has joined #RubyOnRails
[01:59:59] segy: has joined #RubyOnRails
[02:18:58] Linuus`: has joined #RubyOnRails
[02:25:40] krawchyk: has joined #RubyOnRails
[02:31:12] chouhoulis: has joined #RubyOnRails
[02:44:39] xuyuheng: has joined #RubyOnRails
[02:47:19] quazimodo: has joined #RubyOnRails
[02:50:24] xall: has joined #RubyOnRails
[02:54:34] Saukk: has joined #RubyOnRails
[02:55:06] quazimodo: has joined #RubyOnRails
[03:27:28] tdy1: has joined #RubyOnRails
[03:28:14] Axsuul: has joined #RubyOnRails
[03:32:00] gambl0r3: has joined #RubyOnRails
[04:04:14] brandoncc: has joined #RubyOnRails
[04:08:11] Avinash: has joined #RubyOnRails
[04:10:03] braincrash: has joined #RubyOnRails
[04:14:44] Avinash_: has joined #RubyOnRails
[04:21:44] DTZUZO_: has joined #RubyOnRails
[04:22:54] borodin: has joined #RubyOnRails
[04:45:06] Avinash: has joined #RubyOnRails
[04:49:00] Linuus`: has joined #RubyOnRails
[04:58:57] mr_roybot: has joined #RubyOnRails
[05:22:55] andrewray: has joined #RubyOnRails
[05:24:47] Avinash: has joined #RubyOnRails
[05:34:30] paranoicsan: has joined #RubyOnRails
[05:39:44] RiPuk: has joined #RubyOnRails
[05:49:05] uksio: has joined #RubyOnRails
[06:12:30] Linuus`: has joined #RubyOnRails
[06:13:16] Avinash: has joined #RubyOnRails
[06:15:08] srinidhi: has joined #RubyOnRails
[06:15:09] Dbugger: has joined #RubyOnRails
[06:17:48] conta: has joined #RubyOnRails
[06:40:42] reber: has joined #RubyOnRails
[06:49:58] za1b1tsu: has joined #RubyOnRails
[06:53:43] kapil____: has joined #RubyOnRails
[06:58:29] dionysus69: has joined #RubyOnRails
[07:07:38] eckhardt: has joined #RubyOnRails
[07:17:45] hive-mind: has joined #RubyOnRails
[07:22:26] srinidhi: has joined #RubyOnRails
[08:12:41] ur5us: has joined #RubyOnRails
[08:16:11] RedNifre: has joined #RubyOnRails
[08:20:08] b6b: has joined #RubyOnRails
[08:22:40] Avinash: has joined #RubyOnRails
[08:51:06] fox_mulder_cp: istrasci:some like def home_adress addresses.where(home: true).first end
[08:51:28] fox_mulder_cp: blackjid: create - only create. save - create AND save :)
[08:52:53] blackmesa: has joined #RubyOnRails
[09:03:40] mikecmpbll: has joined #RubyOnRails
[09:08:58] blackmesa1: has joined #RubyOnRails
[09:21:05] Technodrome: has joined #RubyOnRails
[09:24:30] lexileo: has joined #RubyOnRails
[09:27:37] Puffball: has joined #RubyOnRails
[09:33:26] lxsameer: has joined #RubyOnRails
[09:44:44] yottanami: has joined #RubyOnRails
[09:45:46] yottanami: Is it a good idea to use Active Storage for local disk and not any cloud storage service in production?
[09:57:08] apparition: has joined #RubyOnRails
[10:03:00] Ergo: has joined #RubyOnRails
[10:18:28] Puffball: has joined #RubyOnRails
[10:19:57] jacksop: has joined #RubyOnRails
[10:34:03] cabotto323: has joined #RubyOnRails
[10:34:22] cabotto323: has left #RubyOnRails: ()
[10:35:00] jacksop: has left #RubyOnRails: ()
[10:36:28] jacksop: has joined #RubyOnRails
[10:37:11] hammer065: has joined #RubyOnRails
[10:44:01] srinidhi: has joined #RubyOnRails
[11:01:38] blackmesa1: has joined #RubyOnRails
[11:27:52] Avinash: has joined #RubyOnRails
[11:28:46] jacksop: has joined #RubyOnRails
[11:31:59] conta: has joined #RubyOnRails
[11:34:46] yottanami: has joined #RubyOnRails
[11:35:51] darris: Hello, anyone uses graphql-ruby with raw sql statements before?
[11:44:43] KeyJoo: has joined #RubyOnRails
[11:55:29] ariedler: has joined #RubyOnRails
[11:56:59] ariedler: has joined #RubyOnRails
[12:32:00] ariejan: has joined #RubyOnRails
[12:39:34] paranoicsan: has joined #RubyOnRails
[12:51:31] srinidhi: has joined #RubyOnRails
[12:58:09] jacksop: has joined #RubyOnRails
[13:08:59] blackmesa1: has joined #RubyOnRails
[13:09:29] someuser: has joined #RubyOnRails
[13:18:18] lxsameer: has joined #RubyOnRails
[13:24:30] blackmesa1: has joined #RubyOnRails
[13:37:36] kidPalooma: has joined #RubyOnRails
[13:37:58] kidPalooma: Hello, how do I find and execute an ActiveJob:Base by its jid?
[13:51:49] lxsameer: has joined #RubyOnRails
[14:03:25] Avinash: has joined #RubyOnRails
[14:15:25] eclm: has joined #RubyOnRails
[14:22:21] yottanami: has joined #RubyOnRails
[14:24:45] jacksop: has joined #RubyOnRails
[14:25:13] Avinash: has joined #RubyOnRails
[14:25:35] blackmesa1: has joined #RubyOnRails
[14:33:12] Tempesta: has joined #RubyOnRails
[14:35:01] krawchyk: has joined #RubyOnRails
[14:36:38] sphalerite: has joined #RubyOnRails
[14:43:21] gambl0r3: has joined #RubyOnRails
[14:53:48] paranoicsan: has joined #RubyOnRails
[14:55:59] mikecmpb_: has joined #RubyOnRails
[14:59:42] helpa: has joined #RubyOnRails
[15:03:06] Tempesta: has joined #RubyOnRails
[15:09:12] beholders_eye: has joined #RubyOnRails
[15:13:04] skryking: has joined #RubyOnRails
[15:18:00] conta: has joined #RubyOnRails
[15:20:16] chouhoulis: has joined #RubyOnRails
[15:21:12] kidPalooma: has joined #RubyOnRails
[15:21:32] kidPalooma: Hello, just to be sure I'm not wasting my time coming here .... does anybody read me? Hello?
[15:23:02] fox_mulder_cp: kidPalooma: 17.30, i have a dance training, so no, nobody reads your msgs
[15:23:53] kidPalooma: thanks, fox_mulder_cp, I was a little confused whether or not I can still ask questions here
[15:24:10] kidPalooma: I have been coming for a few days without replies
[15:26:33] kidPalooma: anyway, I have a question on ActiveJob. I am setting a retry_on (exception) callback in an ActiveJob class. I am setting a :wait parameter (3 seconds) and an :attempts parameter (2). I have set the callback to run with a custom exception, however, when I raise this exception within the job's execution, not only the job keeps running every 30 (and not 3) seconds but it keeps retrying until I kill sidekiq
[15:27:50] kidPalooma: is it possible that an ActiveJob instance already has its retry conditions and this one is just not running my retry_on callback? I think so because I have put some code in the block I pass to retry_on and that code is definitely not bein executed
[15:28:07] kidPalooma: how do I make sure that an ActiveJob runs my retry_on callback?
[15:28:47] status402: has joined #RubyOnRails
[15:34:15] xMopx: has joined #RubyOnRails
[15:36:25] kidPalooma: fox_mulder_cp: do you think anyone can answer this one here?
[15:37:54] fox_mulder_cp: i don't know. may be guys can help you for some hours, when available and online..
[15:41:09] kidPalooma: I'll just wait a few hours then
[15:49:04] brandoncc: has joined #RubyOnRails
[15:56:19] SteenJobs: has joined #RubyOnRails
[15:59:17] Avinash: has joined #RubyOnRails
[16:05:10] kidPalooma: this is a code example: https://hastebin.com/ovijavekiz.rb
[16:05:41] kidPalooma: job runs for as many times as it suits it, with an interval of 30 seconds
[16:06:16] Guest16678: has joined #RubyOnRails
[16:07:16] kidPalooma: and "RETRYING" is never printed anywhere
[16:08:26] kidPalooma: what am I doing worng?
[16:17:33] srinidhi: has joined #RubyOnRails
[16:22:13] uks: has joined #RubyOnRails
[16:26:19] orbyt_: has joined #RubyOnRails
[16:28:57] uksio: has joined #RubyOnRails
[16:31:28] jacksop: has joined #RubyOnRails
[16:31:50] peterhil`: has joined #RubyOnRails
[16:44:48] srinidhi: has joined #RubyOnRails
[16:47:06] ivanskie: has joined #RubyOnRails
[16:51:34] kidPalooma: I have posted this on stackOverflow, in case anyone's interested: https://stackoverflow.com/questions/54331802/activejob-retry-on-callback-being-ignored
[16:54:10] ivanskie: has joined #RubyOnRails
[17:24:13] brandoncc: has joined #RubyOnRails
[17:25:35] blackmesa1: has joined #RubyOnRails
[17:27:43] reber: has joined #RubyOnRails
[17:30:53] blackmesa1: has joined #RubyOnRails
[17:32:44] Guest16678: has joined #RubyOnRails
[17:38:53] andrewray: has joined #RubyOnRails
[17:38:57] agent_white: has joined #RubyOnRails
[17:42:37] Avinash: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[17:43:50] jarlopez: has joined #RubyOnRails
[17:43:55] jarlopez: How can I query an ActiveRecord that has an text[] field for 'select * where "the array has an element that starts with MyString"' ?
[17:49:29] darris: Is there a huge difference in term of psql performance using ActiveRecord vs. Sequel?
[17:50:20] darris: I am having hard time optimizing my ORM query, it takes nearly 30 secs... https://hastebin.com/qamezolipu.rb
[17:56:48] ivanskie: has joined #RubyOnRails
[18:08:18] tdy: has joined #RubyOnRails
[18:23:44] noob69: has joined #RubyOnRails
[18:25:21] noob69: Hi! So, I'm trying render a json, It has a user_id key, I want to convert it to the name of user.
[18:25:26] noob69: Any suggestions?
[18:26:04] baweaver: noob69: Can you not include the user name in the response?
[18:26:16] baweaver: Typically you want to keep response key names the same as the actual data when possible
[18:26:25] baweaver: otherwise you get all types of headaches later mitigating for it
[18:27:02] noob69: baweaver: Yeah, I know. But this case requires it to be like this!
[18:27:16] baweaver: Define requires
[18:27:18] noob69: 2 years in RoR and I'm still stumped!
[18:27:36] baweaver: and how are you currently rendering JSON
[18:27:52] aidanh010: has joined #RubyOnRails
[18:29:26] noob69: baweaver: It'll be something like this {user_id: 1, book: "abc murder" reviews: [{user_id: 2 text: "sucks!"}]}
[18:29:43] noob69: I want user_id to be replaced with the actual data.
[18:29:52] baweaver: Firstly, don't
[18:29:59] baweaver: Just get the name instead.
[18:30:20] baweaver: How are you serializing the json?
[18:30:21] baweaver: jbuilder or something else?
[18:30:25] noob69: baweaver: What do you mean by "get the name"?
[18:30:36] noob69: baweaver: I was thinking of using jbuilder.
[18:30:50] baweaver: {user_id: 1, book: "abc murder" reviews: [{user_id: 2, user_name: "Bob" text: "sucks!"}]}
[18:31:06] baweaver: You probably want the ID too, come to think of it
[18:31:09] Technodrome: has joined #RubyOnRails
[18:31:19] baweaver: otherwise linking to aforementioned user is a bit difficult.
[18:31:41] noob69: baweaver: Hmm, true.
[18:31:59] baweaver: Keep parity between DB fields and JSON responses whenever possible
[18:32:09] baweaver: Down the other path lies great pain
[18:32:33] noob69: baweaver: Cool, thanks!
[18:36:06] srinidhi: has joined #RubyOnRails
[18:49:38] ravenousmoose: has joined #RubyOnRails
[18:53:20] chouhoulis: has joined #RubyOnRails
[19:09:54] lxsameer: has joined #RubyOnRails
[19:10:27] krawchyk: has joined #RubyOnRails
[19:42:52] mikepack: has joined #RubyOnRails
[19:59:58] blackcross: has joined #RubyOnRails
[20:04:28] catphish: has joined #RubyOnRails
[20:05:55] catphish: is there an api call to reload rails in development between invocations?
[20:08:53] catphish: ah Rails.application.reloader.reload!
[20:12:09] tdy1: has joined #RubyOnRails
[20:13:45] defsdoor: has joined #RubyOnRails
[20:23:39] ur5us: has joined #RubyOnRails
[20:29:37] ellcs: has joined #RubyOnRails
[21:01:00] Psy-Q: has joined #RubyOnRails
[21:16:00] tdy1: has joined #RubyOnRails
[21:25:48] Jervis_: has joined #RubyOnRails
[21:29:32] eclm: has joined #RubyOnRails
[21:36:43] eclm: has joined #RubyOnRails
[22:04:19] fragamus: has joined #RubyOnRails
[22:11:18] dozzed: has left #RubyOnRails: ()
[22:28:00] DoctorMonocular: has joined #RubyOnRails
[22:28:18] DoctorMonocular: hey, what's the usual way to handle testing when you have large object graphs for your models?
[22:28:37] DoctorMonocular: just like, eat shit and deal with it? Presumably you mock as much as possible
[22:32:09] wethu: has joined #RubyOnRails
[22:52:36] chouhoulis: has joined #RubyOnRails
[22:53:35] chouhoulis: has joined #RubyOnRails
[22:59:14] chouhoulis: has joined #RubyOnRails
[23:09:11] chouhoulis: has joined #RubyOnRails
[23:14:50] chouhoulis: has joined #RubyOnRails
[23:20:15] chouhoulis: has joined #RubyOnRails
[23:24:46] chouhoulis: has joined #RubyOnRails
[23:30:21] chouhoulis: has joined #RubyOnRails
[23:31:14] ellcs: has joined #RubyOnRails
[23:32:17] quazimodo: has joined #RubyOnRails
[23:34:52] chouhoulis: has joined #RubyOnRails
[23:49:03] lexileo: has joined #RubyOnRails
[23:53:14] ellcs: has joined #RubyOnRails