« Back to channel list

#RubyOnRails - 12 February 2019

« Back 1 day Forward 1 day »
[00:06:40] conta: has joined #RubyOnRails
[00:18:55] Dbugger: has joined #RubyOnRails
[00:30:40] elcontrastador: has joined #RubyOnRails
[00:35:09] Technodrome: has joined #RubyOnRails
[00:44:13] dbugger_: has joined #RubyOnRails
[00:59:47] Fenhl: has joined #RubyOnRails
[01:08:31] bruul: has joined #RubyOnRails
[01:26:17] Majadon: has joined #RubyOnRails
[01:29:04] Technodrome: has joined #RubyOnRails
[01:30:40] dviola: has joined #RubyOnRails
[01:36:11] davidh38: has joined #RubyOnRails
[01:59:51] orbyt_: has joined #RubyOnRails
[02:08:36] cnsvc: has joined #RubyOnRails
[02:11:15] v01d4lph4: has joined #RubyOnRails
[02:14:57] octos: has joined #RubyOnRails
[02:26:40] Saukk: has joined #RubyOnRails
[02:45:22] dbugger__: has joined #RubyOnRails
[02:48:57] salasrod: has joined #RubyOnRails
[02:51:12] tdy: has joined #RubyOnRails
[02:52:33] lexileo: has joined #RubyOnRails
[03:01:42] gambl0r3: has joined #RubyOnRails
[03:06:47] davidh38: has joined #RubyOnRails
[03:13:09] segy: has joined #RubyOnRails
[03:56:07] work_: has joined #RubyOnRails
[04:05:20] sevenseacat: has joined #RubyOnRails
[04:09:01] braincrash: has joined #RubyOnRails
[04:15:01] v01d4lph4: has joined #RubyOnRails
[04:50:06] srruby: has joined #RubyOnRails
[04:51:18] srruby: delayed job/rails 5/debian 9: How do I start it automatically when the server restarts? cronjob, init.d script ??
[05:01:51] eclm: has joined #RubyOnRails
[05:05:58] alan_w: has joined #RubyOnRails
[05:24:10] dustinm`: has joined #RubyOnRails
[05:27:35] tdy: has joined #RubyOnRails
[05:39:08] Technodrome: has joined #RubyOnRails
[05:48:40] maryo: has joined #RubyOnRails
[05:53:18] Technodrome: has joined #RubyOnRails
[06:11:07] maryo: has joined #RubyOnRails
[06:14:53] dustinm`: has joined #RubyOnRails
[06:16:35] elcontrastador: has joined #RubyOnRails
[06:18:14] barhum2013: has joined #RubyOnRails
[06:18:14] Technodrome: has joined #RubyOnRails
[06:18:15] conta: has joined #RubyOnRails
[06:32:09] srinidhi: has joined #RubyOnRails
[06:39:57] elcontrastador: has joined #RubyOnRails
[06:41:21] Technodrome: has joined #RubyOnRails
[06:47:09] paranoicsan: has joined #RubyOnRails
[06:55:40] sandstrom: has joined #RubyOnRails
[07:00:33] conta1: has joined #RubyOnRails
[07:02:02] gambl0r3: has joined #RubyOnRails
[07:05:00] barhum2013: has joined #RubyOnRails
[07:48:57] ariedler: has joined #RubyOnRails
[08:01:41] lankanmon: has joined #RubyOnRails
[08:07:43] paranoicsan: has joined #RubyOnRails
[08:18:36] LightStalker: has joined #RubyOnRails
[08:19:05] ellcs: has joined #RubyOnRails
[08:19:50] powerbit: has joined #RubyOnRails
[08:28:54] helpa-bot: has joined #RubyOnRails
[08:31:24] helpa: has joined #RubyOnRails
[08:47:47] LightStalker: has joined #RubyOnRails
[09:00:17] mikecmpbll: has joined #RubyOnRails
[09:06:00] paranoicsan: has left #RubyOnRails: ()
[09:06:15] sandstrom: has joined #RubyOnRails
[09:16:16] LightStalker: has joined #RubyOnRails
[09:22:36] srruby_: has joined #RubyOnRails
[09:23:35] kidPalooma: has joined #RubyOnRails
[09:24:47] kidPalooma: Hello, forgive my ignorance, I have the same problem as https://github.com/webpack/webpack/issues/1914#issuecomment-454640722 , the comment I have linked to mentions "export NODE_OPTIONS=--max_old_space_size=4096". In which file should I write this statement?
[09:42:07] lxsameer: has joined #RubyOnRails
[09:49:39] ariedler: has joined #RubyOnRails
[09:55:34] srinidhi: has joined #RubyOnRails
[10:06:25] paranoicsan: has joined #RubyOnRails
[10:12:13] v01d4lph4: has joined #RubyOnRails
[10:12:37] Ergo: has joined #RubyOnRails
[10:52:30] srinidhi: has joined #RubyOnRails
[11:05:52] kapil____: has joined #RubyOnRails
[11:10:52] segy: has joined #RubyOnRails
[11:21:29] mikecmpb_: has joined #RubyOnRails
[11:38:06] conta: has joined #RubyOnRails
[11:42:27] conta: has joined #RubyOnRails
[11:45:54] wethu: has joined #RubyOnRails
[11:50:27] ariedler: has joined #RubyOnRails
[11:52:35] lankanmon: has joined #RubyOnRails
[11:55:07] ariedler: has joined #RubyOnRails
[11:58:53] davidh38: has joined #RubyOnRails
[12:30:56] conta1: has joined #RubyOnRails
[12:44:34] lupine: those of us using the danger gem - how do you test the code in your Dangerfile and danger plugins ?
[12:51:01] quazimodo: has joined #RubyOnRails
[12:58:41] lupine: oh dear :(
[13:03:19] tbuehlmann: danger zone?
[13:06:17] FastJack: somewhere in the background plays kenny loggins
[13:35:12] conta1: has joined #RubyOnRails
[13:35:47] borodin: has joined #RubyOnRails
[13:41:51] davidh38: has joined #RubyOnRails
[13:42:51] DTZUZO: has joined #RubyOnRails
[13:43:02] syndikate: How long does y'all monolith app's test suite's take to complete? Is something near to an hour normal thing?
[13:43:56] paranoicsan: has joined #RubyOnRails
[13:45:17] EminenceHC: has joined #RubyOnRails
[13:46:42] EminenceHC: Is it possible to use a separate params hash for a separate POST method? Even though I specify Object.new(my_separate_params_hash), it still defaults to my first strong params hash.
[13:48:35] tbuehlmann: eminencehc: just use a different method in your controller action. if that doesn't work, something else is wrong
[13:49:40] tbuehlmann: syndikate: shopify's test suite runs for hours, already parallelized. it totally depends on the app's size and on your testing preferences
[13:51:12] syndikate: tbuehlmann, do they have any writeup on how they have parallelized it? (I know it's coming in rails 6 and also know about parallel_tests), just curious
[13:51:21] syndikate: Also, what is it that you mean by testing preferences?
[13:52:11] syndikate: In such cases what do we do when we want a pipeline to be completed before having a PR merged? We check for the "green tick" before merging a branch and I was trying to see how I can bring the spec timings down
[14:00:35] catbusters: has joined #RubyOnRails
[14:05:00] syndikate: Looks like I scared you away
[14:05:30] tbuehlmann: I don't know how they do it. the testing preference is about what you think is worth to be tested
[14:05:58] tbuehlmann: nah, it's just you're not my highest priority right now
[14:07:23] tbuehlmann: if you test every nuance of your app, things that are not meant to be tested, that'll surely slow down the test suite. also, slow operations will obviously slow down the test suite, like unnecessary database queries
[14:07:24] fox_mulder_cp: syndikate: you can start no all tests, only relevant, when change something
[14:08:09] fox_mulder_cp: tbuehlmann - and create/seed/drop test database, with SQL server performance slow..
[14:09:08] syndikate: tbuehlmann, alright. I have got all those in the app now.
[14:09:22] syndikate: fox_mulder_cp, how do you segregate the relevant tests?
[14:09:33] davidh38: has joined #RubyOnRails
[14:12:44] fox_mulder_cp: syndikate: you can start it for models, controllers differently..
[14:13:53] syndikate: I was thinking along the lines of an automated test. What I had in mind was when a person submits a PR, run a subset of tests and not the whole suite. Trying to figure that "subset" is what am trying to do for now.
[14:13:58] syndikate: Not sure if I made sense
[14:15:37] tbuehlmann: I wouldn't do that. how would you know the tests you're excluding wouldn't fail?
[14:16:25] EminenceHC: tbuehlmann: Strange that it only uses my custom strong params if I comment out the other params hash, even though I am specifying the correct params hash in the Object.new(correct_params_hash)
[14:16:41] tbuehlmann: eminencehc: can you paste the controller code?
[14:17:06] EminenceHC: tbuehlmann: Will do, one sec.
[14:17:41] tbuehlmann: (as in: use https://gist.github.com/, not actually pasting the code in this channel)
[14:18:47] EminenceHC: tbuehlmann: https://dpaste.de/dwRk
[14:20:03] EminenceHC: tbuehlmann: That controller method is a POST set from routes.rb. My aim is to override the default create method with this route and strong params.
[14:21:15] tbuehlmann: why not use the regular create action?
[14:22:23] EminenceHC: tbuehlmann: Because I want logged in users to have a different form and be able to specify the unit_id start_date and end_date.
[14:22:42] tbuehlmann: you could use the same action but different strong params methods
[14:25:08] EminenceHC: tbuehlmann: Hmm thats a possibility. I was just thinking it was so much conditional logic in the controller with different redirects, different forms, different attributes being automatically set etc. Is a separate create method bad practice?
[14:29:49] EminenceHC: tbuehlmann: Plus one form is using a nested route, and the other one isnt.
[14:30:34] tbuehlmann: I wouldn't use a different method. if the differences between regular users and ownser are small, have the same controller with different strong params methods and the same views with conditionals
[14:31:29] tbuehlmann: if the differences aren't that small (different redirects?), consider having a different controller and different views. this is a sane option for when you want to have a dedicated admin UI, too
[14:33:34] EminenceHC: tbuehlmann: Can I use a different controllers with the same model Reservation?
[14:34:15] EminenceHC: tbuehlmann: I never thought about doing that. I'll give that a whirl. Thank you.
[14:35:09] Souvent22: has joined #RubyOnRails
[14:35:16] fox_mulder_cp: how i can move id from update packages to minion selector? paste here https://pastebin.com/At1Web9z
[14:35:31] fox_mulder_cp: now it executed on non-fedora minions
[14:36:47] tbuehlmann: eminencehc: an example: https://gist.github.com/tbuehlmann/b92f7b671754b56a98b65b09ca0fddc9
[14:37:23] tbuehlmann: I can't say whether this makes sense for your use case, but it's certainly an option
[14:37:54] fox_mulder_cp: oh, sory, miskate
[14:38:03] EminenceHC: tbuehlmann: Awesome
[14:46:52] syndikate: tbuehlmann, yeah that's the thing. It could break something else.
[14:53:07] akosednar: has joined #RubyOnRails
[14:53:46] Jervis_: has joined #RubyOnRails
[14:53:59] EminenceHC: tbuehlmann: I am trying with the same create method, but it still won't override the strong params unless I comment them out.
[14:55:56] alan_w: has joined #RubyOnRails
[14:56:12] tbuehlmann: can you gist the complete controller code your have right now?
[14:59:01] EminenceHC: tbuehlmann: Oh it looks like I needed to put the conditional logic in one strong params method instead of having two separate methods and calling them from a conditional.
[15:02:35] tbuehlmann: if done properly, both options should work. but if it works now, great
[15:03:41] tbuehlmann: get to go now, happy hacking!
[15:04:35] Xiti`: has joined #RubyOnRails
[15:18:09] roshanavand__: has joined #RubyOnRails
[15:33:11] Souvent22: has joined #RubyOnRails
[15:56:10] snk: has joined #RubyOnRails
[15:58:36] snk: has joined #RubyOnRails
[16:03:56] Saukk: has joined #RubyOnRails
[16:12:33] elcontrastador: has joined #RubyOnRails
[16:27:47] agent_white: has joined #RubyOnRails
[16:28:09] nakuku: has joined #RubyOnRails
[16:30:53] nakuku: Hello. I want to be true to REST conventions and I want to create current user endpoint that return some additional information for signed in user. It's and API and i authorize users by token. So i have sessions_controll#{create, destroy}. And now i don't which url to choose and how to name my controller
[16:31:10] nakuku: If it was JWT i think i would go for - sessions/{:user_id}/show
[16:36:31] EminenceHC: has joined #RubyOnRails
[16:54:33] conta1: has joined #RubyOnRails
[17:02:40] Souvent22: has joined #RubyOnRails
[17:02:58] gambl0r3: has joined #RubyOnRails
[17:10:40] work_: has joined #RubyOnRails
[17:10:44] tdy: has joined #RubyOnRails
[17:12:22] gregf_: has joined #RubyOnRails
[17:16:27] octos: has joined #RubyOnRails
[17:24:22] EminenceHC: has joined #RubyOnRails
[17:32:27] valadares: has joined #RubyOnRails
[17:32:53] [Butch]: has joined #RubyOnRails
[17:32:56] aidanh010: has joined #RubyOnRails
[17:34:16] jane_booty_doe: has joined #RubyOnRails
[17:36:13] markoong: has joined #RubyOnRails
[17:36:37] bruul: has joined #RubyOnRails
[17:37:43] jane_booty_doe: has joined #RubyOnRails
[17:44:19] ariedler: has joined #RubyOnRails
[17:45:21] Xiti: has joined #RubyOnRails
[17:49:53] v01d4lph4: has joined #RubyOnRails
[17:59:01] maryo: has joined #RubyOnRails
[18:00:35] tdy1: has joined #RubyOnRails
[18:02:39] orbyt_: has joined #RubyOnRails
[18:03:02] Souvent22_: has joined #RubyOnRails
[18:08:17] reber: has joined #RubyOnRails
[18:14:10] valadares: has joined #RubyOnRails
[18:22:27] v01d4lph4: has joined #RubyOnRails
[18:28:27] timdotrb: has joined #RubyOnRails
[18:34:44] Dbugger: has joined #RubyOnRails
[18:36:16] Dbugger: has joined #RubyOnRails
[18:36:55] mikecmpbll: has joined #RubyOnRails
[18:54:34] Technodrome: has joined #RubyOnRails
[19:03:20] elcontrastador: has joined #RubyOnRails
[19:03:21] cnsvc: has joined #RubyOnRails
[19:04:33] lunarkitty7: has joined #RubyOnRails
[19:04:43] Majadon: has joined #RubyOnRails
[19:05:31] universa1: has joined #RubyOnRails
[19:05:59] sphalerite: has joined #RubyOnRails
[19:10:18] orbyt_: has joined #RubyOnRails
[19:12:06] srinidhi: has joined #RubyOnRails
[19:12:14] lxsameer: has joined #RubyOnRails
[19:12:25] Jervis_: has joined #RubyOnRails
[19:15:03] spectra: has joined #RubyOnRails
[19:26:49] orbyt_: has joined #RubyOnRails
[19:29:12] Linuus`: has joined #RubyOnRails
[19:35:01] orbyt_: has joined #RubyOnRails
[19:39:04] valadares: has joined #RubyOnRails
[19:41:37] defsdoor: has joined #RubyOnRails
[19:45:12] roshanavand: has joined #RubyOnRails
[20:02:11] Linuus`: has joined #RubyOnRails
[20:04:45] segy: has joined #RubyOnRails
[20:17:57] [Butch]: has joined #RubyOnRails
[20:32:59] ellcs: has joined #RubyOnRails
[20:56:00] conta: has joined #RubyOnRails
[21:05:47] roshanavand1: has joined #RubyOnRails
[21:06:13] hive-mind: has joined #RubyOnRails
[21:06:13] Maja: has joined #RubyOnRails
[21:07:18] sphalerite_: has joined #RubyOnRails
[21:07:35] ellcs: has joined #RubyOnRails
[21:20:22] fcser_: has joined #RubyOnRails
[21:37:48] gambl0r3: has joined #RubyOnRails
[21:47:35] davidh38: has joined #RubyOnRails
[21:52:08] orbyt_: has joined #RubyOnRails
[22:12:42] bruul: has joined #RubyOnRails
[22:17:51] MrCrackPotBuilde: has joined #RubyOnRails
[22:21:50] wethu: has joined #RubyOnRails
[22:29:18] aidanh010: has joined #RubyOnRails
[22:38:55] conta1: has joined #RubyOnRails
[22:52:19] bambanx: has joined #RubyOnRails
[23:39:23] work_: has joined #RubyOnRails
[23:51:31] Technodrome: has joined #RubyOnRails