« Back to channel list

#RubyOnRails - 14 November 2017

« Back 1 day Forward 1 day »
[00:04:50] apparition: has joined #RubyOnRails
[00:04:51] cagomez: has joined #RubyOnRails
[00:05:04] cagomez: has joined #RubyOnRails
[00:07:00] mr-spoon: has joined #RubyOnRails
[00:28:38] mr-spoon: has joined #RubyOnRails
[00:31:00] noizex: has joined #RubyOnRails
[00:34:51] sevenseacat: has joined #RubyOnRails
[00:37:30] cagomez: has joined #RubyOnRails
[00:37:50] cagomez: has joined #RubyOnRails
[01:10:21] MrCrackPotBuilde: has joined #RubyOnRails
[01:11:18] kinduff: Hey all, I'm integrating Mailchimp with an app that uses the devise gem. I'm good with adding the checkbox but I'm wondering what's the best practice to read the checkbox and subscribe the user accordingly. Should I decorate the controller and modify the create action?
[01:12:00] kinduff: One option is after_create on the model but I don't want to add this checkbox field into the user table (so I'll be able to read it from the after_create).
[01:12:53] thither: has joined #RubyOnRails
[01:13:43] thither: Hey, I have the rack-cors gem installed and I'm able to perform cross-origin requests in development, but in my production environment (which uses nginx) cross-origin headers don't seem to be making it past the proxy.
[01:14:16] thither: I've tried adding add_header 'Access-Control-Allow-Origin' '*'; under the location block for my nginx site config with no affect
[01:15:36] kinduff: thither: is this related? https://github.com/cyu/rack-cors/issues/29
[01:16:31] kinduff: thither: or this https://github.com/cyu/rack-cors/issues/117
[01:20:25] thither: kinduff, thanks for your help. It was actually an error on my end
[01:20:42] thither: I'd forgotten to update the allowed routes in the rack-cors gem after changing my URL scheme
[01:26:59] cagomez: has joined #RubyOnRails
[01:27:10] cagomez: has joined #RubyOnRails
[01:28:15] cagomez: has joined #RubyOnRails
[01:34:27] irishfromua: has joined #RubyOnRails
[01:35:57] kinduff: thither, :P
[01:40:10] mr-spoon: has joined #RubyOnRails
[02:01:32] xco: has joined #RubyOnRails
[02:03:52] drowze: has joined #RubyOnRails
[02:24:34] orbyt_: has joined #RubyOnRails
[02:36:53] millz: has joined #RubyOnRails
[02:40:07] alfiemax: has joined #RubyOnRails
[02:51:00] ome: has joined #RubyOnRails
[02:56:20] alfiemax: has joined #RubyOnRails
[02:58:06] orbyt_: has joined #RubyOnRails
[03:02:36] zacts: has joined #RubyOnRails
[03:06:46] alfiemax: has joined #RubyOnRails
[03:09:30] alfiemax: has joined #RubyOnRails
[03:13:21] mr-spoon: has joined #RubyOnRails
[03:31:47] knight33: has joined #RubyOnRails
[03:38:48] andrew9184: has joined #RubyOnRails
[03:42:13] knight33: has joined #RubyOnRails
[03:54:06] ur5us: has joined #RubyOnRails
[03:56:30] guacamole: has joined #RubyOnRails
[04:09:14] Saukk: has joined #RubyOnRails
[04:10:29] thither: has joined #RubyOnRails
[04:10:55] MrCrackPotBuilde: has joined #RubyOnRails
[04:36:52] mheld: has joined #RubyOnRails
[04:48:31] guacamole: has joined #RubyOnRails
[05:00:53] duderonomy: has joined #RubyOnRails
[05:03:24] cheeti: has joined #RubyOnRails
[05:05:30] cheeti: adding nested attributes dynamically not working, "Add New Tag" button not able to add new fields can tell me y i am using https://gist.github.com/entersoftapps/48b4b48114458515d8d022e798018a0c
[05:06:44] iamarun: has joined #RubyOnRails
[05:21:17] srinidhi: has joined #RubyOnRails
[05:24:00] alfiemax: has joined #RubyOnRails
[05:46:53] Jameser: has joined #RubyOnRails
[05:57:25] kies: has joined #RubyOnRails
[06:11:37] cheeti: has joined #RubyOnRails
[06:12:10] mr-spoon: has joined #RubyOnRails
[06:14:04] cheeti: Hi i am working on https://www.driftingruby.com/episodes/nested-forms-from-scratch my code is https://gist.github.com/entersoftapps/48b4b48114458515d8d022e798018a0c but "Add New Tag" button not able to add new fields
[06:14:17] apofis: has joined #RubyOnRails
[06:24:45] ltd: has left #RubyOnRails: ()
[06:25:37] Puffball: has joined #RubyOnRails
[06:42:59] apeiros: has joined #RubyOnRails
[06:55:58] xall: has joined #RubyOnRails
[06:59:12] xall: the book Growing Object Oriented Software Guided By Tests says: Separate Tests That Measure Progress from Those That Catch Regressions
[06:59:30] xall: is this common to do in rails? in the projects I've seen, acceptance tests are usually in specs/features
[06:59:36] xall: but they don't seem to be distinguished
[06:59:48] apeiros: has joined #RubyOnRails
[06:59:58] iamarun: has joined #RubyOnRails
[07:05:32] dionysus69: has joined #RubyOnRails
[07:18:51] dionysus69: I see Ryan Bates use scope module: "v1" do for routes in API versioning, but that doesnt include version number in the URL itself. so I prefer namespace :v1 do, any suggestions about that? if I am missing extra pros of scope module?
[07:19:49] halogenandtoast: has joined #RubyOnRails
[07:21:10] halogenandtoast: Trying to do a deploy on heroku and getting: Module not found: Error: Can't resolve 'jQuery', is there a correct way to configure this in webpacker? In my package.json I have listed jQuery as a dependency, however in my file that uses it I am doing: require('expose-loader?$!jQuery');
[07:22:50] halogenandtoast: locally I have no problem running webpack-dev-server or rake assets:precompile (the step failing during the build on heroku)
[07:30:44] conta: has joined #RubyOnRails
[07:31:04] Puffball: has joined #RubyOnRails
[07:41:13] Tempesta: has joined #RubyOnRails
[07:43:50] Tempesta: has joined #RubyOnRails
[07:44:46] cheeti: has joined #RubyOnRails
[07:45:55] AzaToth: has joined #RubyOnRails
[07:46:49] halogenandtoast: Resolved my issue by switching require('expose-loader?$!jQuery') to import $ from 'jquery'
[07:47:01] cheeti: adding nested attributes dainamically not working using https://www.driftingruby.com/episodes/nested-forms-from-scratch link my code gist https://gist.github.com/entersoftapps/48b4b48114458515d8d022e798018a0c "Add New Tag" button not able to add fields
[08:05:35] srinidhi: has joined #RubyOnRails
[08:17:31] arBmind: has joined #RubyOnRails
[08:22:52] mr-spoon: has joined #RubyOnRails
[08:29:52] defsdoor: has joined #RubyOnRails
[08:31:58] DrYockel: has joined #RubyOnRails
[08:33:46] srinidhi: has joined #RubyOnRails
[08:34:08] apeiros: has joined #RubyOnRails
[08:51:25] Doldge: has joined #RubyOnRails
[08:57:03] blackmesa: has joined #RubyOnRails
[08:58:22] mikecmpbll: has joined #RubyOnRails
[09:00:18] drale2k_: has joined #RubyOnRails
[09:05:56] mr-spoon: has joined #RubyOnRails
[09:07:37] xall: has joined #RubyOnRails
[09:31:24] blackmesa: has joined #RubyOnRails
[09:58:49] kapil___: has joined #RubyOnRails
[10:01:25] ferr: has joined #RubyOnRails
[10:01:35] Ergo: has joined #RubyOnRails
[10:01:46] ferr: has left #RubyOnRails: ()
[10:10:47] roshanavand: has joined #RubyOnRails
[10:11:03] mr-spoon: has joined #RubyOnRails
[10:11:15] jottr: has joined #RubyOnRails
[10:11:22] arBmind: has joined #RubyOnRails
[10:13:39] arBmind: has joined #RubyOnRails
[10:15:18] rgr: has joined #RubyOnRails
[10:22:55] Puffball: has joined #RubyOnRails
[10:23:56] ShalokShalom_: has joined #RubyOnRails
[10:36:52] alfiemax: has joined #RubyOnRails
[10:45:07] Kutakizukari: has joined #RubyOnRails
[10:47:38] srinidhi: has joined #RubyOnRails
[10:55:39] dminuoso: What constitutes as a valid action? Any public instance method on a controller?
[11:01:22] tbuehlmann: wouldn't say so, because you can hide_actions
[11:02:59] tbuehlmann: but it looks like that was removed (https://github.com/rails/rails/issues/18336)
[11:22:36] alfiemax: has joined #RubyOnRails
[11:57:11] gregf_: has joined #RubyOnRails
[12:12:35] cgfbee: has joined #RubyOnRails
[12:15:29] airdisa: has joined #RubyOnRails
[12:23:48] drowze: has joined #RubyOnRails
[12:25:16] drowze: has joined #RubyOnRails
[12:26:57] quazimodo: has joined #RubyOnRails
[12:31:18] truenito: has joined #RubyOnRails
[12:33:55] Jameser: has joined #RubyOnRails
[12:38:22] fox_mulder_cp: has joined #RubyOnRails
[12:50:21] nzst-: has joined #RubyOnRails
[12:53:47] fox_mulder_cp: has joined #RubyOnRails
[13:00:36] conta: has joined #RubyOnRails
[13:01:53] conta: has joined #RubyOnRails
[13:03:45] xco: has joined #RubyOnRails
[13:04:53] xco: hi, for some smaaal bitcoins can someone help me write Rspec tests for just one of these methods? https://gist.github.com/xcobar/53575d8c391febfd5bb3e106318fc911 i don’t know how to connect to redis in rspec and actually test the method (any). will appreciate some help
[13:13:43] nzst-: try this https://github.com/brigade/mock_redis
[13:25:30] andywww: has joined #RubyOnRails
[13:27:39] andywww: has left #RubyOnRails: ()
[13:27:56] airdisa: has joined #RubyOnRails
[13:31:43] airdisa: has joined #RubyOnRails
[13:33:52] Hates_: has joined #RubyOnRails
[13:41:31] rgr: has joined #RubyOnRails
[13:46:39] keegnotrub: has joined #RubyOnRails
[13:46:57] marr: has joined #RubyOnRails
[13:48:53] Technodrome: has joined #RubyOnRails
[13:59:58] dinoangelov: has joined #RubyOnRails
[14:05:30] xall: has joined #RubyOnRails
[14:32:03] airdisa_: has joined #RubyOnRails
[14:33:25] cabotto: has joined #RubyOnRails
[14:35:50] Saukk: has joined #RubyOnRails
[14:41:12] drale2k_: has joined #RubyOnRails
[14:43:27] fugee: has joined #RubyOnRails
[14:44:14] fugee: can someone recommend a good site to convert my website into mobile apps, i've spent time trying different sites still haven't settle on anything
[14:45:12] fugee: thunkable worked but i wasn't able to remove specific links from my app
[14:54:14] arBmind: has joined #RubyOnRails
[14:55:33] nzst: Like a progressive web app? https://developers.google.com/web/progressive-web-apps/
[15:06:25] iamarun: has joined #RubyOnRails
[15:07:05] thither: has joined #RubyOnRails
[15:13:41] arBmind: has joined #RubyOnRails
[15:28:16] blackmesa: has joined #RubyOnRails
[15:30:53] drowze: has joined #RubyOnRails
[15:32:35] mikecmpbll: has joined #RubyOnRails
[15:33:09] blackmesa1: has joined #RubyOnRails
[15:42:12] drowze: has joined #RubyOnRails
[15:45:39] blackmesa1: has joined #RubyOnRails
[15:49:01] chouhoulis: has joined #RubyOnRails
[15:53:07] Kutakizukari: has joined #RubyOnRails
[15:53:48] blackmesa1: has joined #RubyOnRails
[15:59:50] beingjohnm: has joined #RubyOnRails
[16:03:25] truenito: has joined #RubyOnRails
[16:06:04] troys: has joined #RubyOnRails
[16:11:22] drowze: has joined #RubyOnRails
[16:12:33] urk187: has joined #RubyOnRails
[16:12:45] urk187: has left #RubyOnRails: ()
[16:12:47] urk187: has joined #RubyOnRails
[16:14:33] orbyt_: has joined #RubyOnRails
[16:14:42] dviola: has joined #RubyOnRails
[16:15:37] mtkd: has joined #RubyOnRails
[16:18:47] cagomez: has joined #RubyOnRails
[16:24:58] srinidhi: has joined #RubyOnRails
[16:27:37] drowze: has joined #RubyOnRails
[16:29:31] apeiros: has joined #RubyOnRails
[16:35:31] truenito: has joined #RubyOnRails
[16:37:08] NoGodDamnIdea: has joined #RubyOnRails
[16:40:55] mikecmpbll: has joined #RubyOnRails
[16:41:42] apeiros: has joined #RubyOnRails
[16:42:20] havenwood: mikecmpbll: I'm late to the party, but here's a one-liner: ruby -rbundler -rpp -e "pp Bundler.load.specs.map { |spec| [spec.name, spec.licenses.uniq] }.to_h"
[16:53:22] airdisa: has joined #RubyOnRails
[16:54:10] Kutakizukari: has joined #RubyOnRails
[17:01:23] guacamole: has joined #RubyOnRails
[17:05:42] [Butch]: has joined #RubyOnRails
[17:22:55] mikecmpbll: havenwood : :D
[17:23:04] blackmesa1: has joined #RubyOnRails
[17:24:25] hervie: has joined #RubyOnRails
[17:25:08] one_zero: has joined #RubyOnRails
[17:25:20] Exhiled: has joined #RubyOnRails
[17:32:36] airdisa_: has joined #RubyOnRails
[17:35:21] srinidhi: has joined #RubyOnRails
[17:37:07] dminuoso: One does not test functional code, right?
[17:37:38] dminuoso: And by functional I mean it in the paradigm sense, not in the "working" sense.
[17:41:27] Papierkorb: has left #RubyOnRails: ("Konversation terminated!")
[17:44:51] blackmesa1: has joined #RubyOnRails
[17:52:22] havenwood: dminuoso: Hrm? Isn't it the easiest code to test?
[17:52:58] alfiemax: has joined #RubyOnRails
[17:53:02] dminuoso: And its the least interesting code to test.
[17:54:14] havenwood: And those tests tend to run really fast.
[17:54:46] havenwood: Boring, fast code. ;-)
[17:59:37] orbyt_: has joined #RubyOnRails
[17:59:38] dminuoso: havenwood, its like my react components.
[17:59:42] dminuoso: I dont test them because its crazy.
[17:59:46] dminuoso: They have 0 state, 0 logic.
[18:00:46] dminuoso: The day a react component experiences breakage that is not caught by flow, I'll setup istanbul and get to 100% coverage.
[18:01:04] safetypin: has joined #RubyOnRails
[18:14:05] hahuang65: has joined #RubyOnRails
[18:14:47] Technodrome: has joined #RubyOnRails
[18:20:26] Papierkorb: has joined #RubyOnRails
[18:23:48] GodFather: has joined #RubyOnRails
[18:27:53] one_zero: has joined #RubyOnRails
[18:30:30] kies: has joined #RubyOnRails
[18:33:43] hahuang65: has joined #RubyOnRails
[18:33:54] GodFather: has joined #RubyOnRails
[18:36:17] Exhiled: has joined #RubyOnRails
[18:41:01] uksio: has joined #RubyOnRails
[18:42:14] Technodrome: if you wanted to have a checkbox, that toggles a div to show or not, how would you accomplish that? and if i wanted to persist that change , what would be the best way to do that?
[18:46:28] dminuoso: persist across what exactly?
[18:46:33] Dimik: has joined #RubyOnRails
[18:46:37] dminuoso: Technodrome, and the details depend greatly on what view setup you have.
[18:46:42] dminuoso: Do you have traditional static pages?
[18:46:54] dionysus69: has joined #RubyOnRails
[18:47:01] dminuoso: Technodrome, do you need it persisted on a session level, profile level, site wide level?
[18:47:01] Technodrome: its not using react or anything
[18:47:14] Technodrome: profile level, by the user
[18:47:34] Technodrome: session could be workable if user is going to prove to be a super huge challenge
[18:48:22] dminuoso: Technodrome, do you need transitions?
[18:48:34] dminuoso: Technodrome, or could you live with a (turbolinks empowered) page reload?
[18:48:59] Technodrome: transitions meaning it updates live on the page when you click it ?
[18:49:28] dminuoso: Sure, lets say css transitions
[18:49:28] Technodrome: i think they would prefer it to work with the current data set , and future ones
[18:49:44] Technodrome: current visible data set
[18:49:52] dminuoso: Technodrome, would a page reload be harmful?
[18:50:18] Technodrome: since it is filtering , and there arent many results
[18:50:25] dminuoso: Technodrome, set up a small function that sends an XHR to the rails server, doing some PATCH on /profile
[18:50:32] dminuoso: Technodrome, when done you rebuild the div.
[18:50:55] dminuoso: Technodrome, then you also adapt the view to depending on the profile display the same thing.
[18:51:05] dminuoso: add a static test that ensures both generate the same markup
[18:51:38] Technodrome: what is the XHR request for?
[18:51:49] dminuoso: Technodrome, informing the server a change to the profile has been made.
[18:52:05] dminuoso: and store it wherever you like on the server/database/shoot a rocket with a piece of paper in the air triggered by ActiveJob
[18:52:22] Technodrome: the checkbox is to hide the description, no change to anything model wise will be made
[18:53:02] dminuoso: Technodrome, or - you could store such information in localStorage.
[18:53:04] dminuoso: If this is enough.
[18:53:20] Technodrome: information, being the user selections of the checkbox?
[18:53:32] Technodrome: "filter settings"
[18:53:38] dminuoso: Technodrome, yes, it just creates annoying code that on each page:load has to check and rebuild the DOM
[18:53:49] dminuoso: You will be annoyed no matter where you do it
[18:54:14] dminuoso: cookies seem to be the easiest mechanism though
[18:54:26] dminuoso: Technodrome, using the previously mentioned technique with XHR, you could accomplish the same with a cookie.
[18:54:26] Technodrome: i was thinking this
[18:54:36] Technodrome: showing everything and just if things aaren't checked hide
[18:54:56] dminuoso: i.e. update cookie, patch up the DOM and trigger CSS transitions. the server then conditionally renders the description based on the cookie contents
[18:55:07] dminuoso: and then again: make sure you set up a test that both end up producing the same markup.
[18:55:24] dminuoso: (explicitly test for markup equality, rather than just "is description there")
[18:56:23] Technodrome: why should i involve the server for rendering?
[18:56:40] Technodrome: server render everything, based on user selections, javascript to hide stuff
[18:56:54] FrostCandy: has joined #RubyOnRails
[18:57:46] Technodrome: dminuoso isn't that a real simple way of dealing with it ?
[18:58:46] Exhiled: has joined #RubyOnRails
[18:59:18] FrostCandy: uh, in a xyz.each do block would you really want to do end unless xyz.blank? at the end? - if xyz is blank then it wouldn't enter the .each anyway right?
[18:59:30] dminuoso: <Technodrome> why should i involve the server for rendering?
[18:59:40] dminuoso: Technodrome, otherwise you have to update every time the page is displayed.
[18:59:47] FrostCandy: I can't imagine why the coder wrote it this way, does it serve any useful purpose?
[19:00:43] dminuoso: Technodrome, but you dont want some $(document).on('page:load', () => { if(sessionHasSetting) { $('#description').collapse('show'); } })
[19:00:55] Technodrome: dminuoso so you think when a user clicks that box, and says show, instead of just doing a .show call in js, i should actually re render it on the server?
[19:01:05] dminuoso: Technodrome, no.
[19:01:16] dminuoso: Technodrome, I mean you can if you want.
[19:01:32] Technodrome: you mean re render future page loads
[19:01:49] Technodrome: i mean handle the future, and do some dom manipulation to change the current ones
[19:01:52] mtkd: has joined #RubyOnRails
[19:02:50] dminuoso: Technodrome, but you could also just do: $(document).on('click', '#toggleDescription', (e) => { const show = e.target.checked; clickupdateSession(show); $('#description').collapse(show ? 'show' : 'hide'); })
[19:03:07] dminuoso: Technodrome, and then ensure that the server pre-renders the same markup whenever you reload/revisit that page
[19:03:20] dminuoso: This would allow you to use css transitions.
[19:03:38] Technodrome: but when you check to show something, i can just unhide, its not there, the server never generated it
[19:03:57] dminuoso: Technodrome, the server always generates it.
[19:04:02] dminuoso: Technodrome, are you using bootstrap or something similar?
[19:04:20] dminuoso: Technodrome, mark the container of the description as .collapse or .collapse.in
[19:04:25] dminuoso: depending on whether its shown or hidden.
[19:04:55] Technodrome: dminuoso i am talking for the current page, server doesnt generate description
[19:05:30] dminuoso: Technodrome, then just fetch it (render a partial server side), and insert it accordingly.
[19:08:53] blackmesa1: has joined #RubyOnRails
[19:13:16] AlHafoudh: how do you guys to user management and authentication nowadays when using rails 5 api only project? still devise?
[19:14:49] Exhiled: has joined #RubyOnRails
[19:15:16] dminuoso: AlHafoudh, not at all.
[19:15:22] dminuoso: OAuth for everything.
[19:15:48] AlHafoudh: i am used to jWT
[19:17:44] Kutakizukari: has joined #RubyOnRails
[19:39:16] Technodrome: has joined #RubyOnRails
[19:40:29] mikecmpbll: has joined #RubyOnRails
[19:44:14] Sylario: OAuth for SPA ?
[19:44:28] Sylario: OAuth for an app not user centric?
[19:50:55] NoGodDamnIdea: has joined #RubyOnRails
[19:51:24] Exhiled: has joined #RubyOnRails
[19:52:17] ur5us: has joined #RubyOnRails
[19:53:12] xco: has joined #RubyOnRails
[19:55:58] Technodrome: dminuoso you're right, rendering the partial and inserting it is the best way to deal with that
[19:56:57] dminuoso: Technodrome, I would render it inside the already collapsed div, and then use a transition to show it.
[19:57:36] Technodrome: i was going to re render the whole results, but you're saying just re render and and expose just the description?
[19:58:23] orbyt_: has joined #RubyOnRails
[19:58:55] dminuoso: Technodrome, its just an idea. Why not fetch the partial, but dont place it directly visibly into the dom. Put it into something hidden/collapsed and then use bootstrap 3 or css transitions to smoothly blend it in
[19:59:23] Technodrome: what is the partial in this case? the description?
[19:59:53] Sylario: an hidden div and it's content are still part of the DOM
[20:00:28] dminuoso: well they *will be
[20:01:26] Sylario: no, it IS part of the DOM
[20:01:34] NoGodDamnIdea: has joined #RubyOnRails
[20:01:36] Sylario: if it was not you could not reach it with JS
[20:02:04] Technodrome: dminuoso but there is like 15 results, each with that description , i dont want to fire 15 xhr request
[20:02:18] Sylario: as in document.getElementById('blabla');
[20:02:25] Sylario: like, document
[20:02:34] Technodrome: so maybe just re getting the result will be the better way , only one xhr that way dminuoso
[20:10:48] dminuoso: sylario, it is not because its fetched...
[20:11:44] dminuoso: sylario, the point is to fetch a partial from the server, insert it into a hidden div (now its in the dom for the first time), and then just transition it in.
[20:14:54] tubbo: has joined #RubyOnRails
[20:15:14] dblessing: has joined #RubyOnRails
[20:16:13] airdisa: has joined #RubyOnRails
[20:16:18] safetypin: has joined #RubyOnRails
[20:16:53] centrx: has joined #RubyOnRails
[20:19:12] ur5us: has joined #RubyOnRails
[20:20:11] conta2: has joined #RubyOnRails
[20:28:15] cagomez: has joined #RubyOnRails
[20:30:25] knight33: has joined #RubyOnRails
[20:32:25] knight33: has joined #RubyOnRails
[20:37:17] alfiemax: has joined #RubyOnRails
[20:38:40] mochiyoda_: has joined #RubyOnRails
[20:39:28] quazimodo: has joined #RubyOnRails
[20:39:52] duderonomy: has joined #RubyOnRails
[20:41:11] orbyt_: has joined #RubyOnRails
[20:54:43] jottr: has joined #RubyOnRails
[20:58:55] mostlybadfly: has joined #RubyOnRails
[21:00:02] Exhiled: has joined #RubyOnRails
[21:10:08] airdisa: has joined #RubyOnRails
[21:11:11] Kutakizukari: has joined #RubyOnRails
[21:11:45] dviola: has joined #RubyOnRails
[21:16:37] quazimodo: has joined #RubyOnRails
[21:23:18] cagomez: has joined #RubyOnRails
[21:31:38] matcouto: has joined #RubyOnRails
[21:44:32] arBmind: has joined #RubyOnRails
[21:54:41] Fernando-Basso: has joined #RubyOnRails
[22:00:18] defsdoor: has joined #RubyOnRails
[22:00:56] dminuoso: has joined #RubyOnRails
[22:04:50] Kilo`byte: has joined #RubyOnRails
[22:18:12] alfiemax: has joined #RubyOnRails
[22:18:32] starseed00: has joined #RubyOnRails
[22:19:02] NoGodDamnIdea: has joined #RubyOnRails
[22:19:15] starseed00: Anyone have some other terms for "production" or "live"
[22:19:47] kickr: has joined #RubyOnRails
[22:20:39] hahuang65: has joined #RubyOnRails
[22:23:56] dminuoso: "Dont touch"
[22:24:04] dminuoso: "Here be dragons"
[22:25:11] dminuoso: starseed00, honestly the usual name is production
[22:25:54] starseed00: Haha - there be dragons - I hope not
[22:26:01] Kutakizukari: has joined #RubyOnRails
[22:26:33] starseed00: I can see how it would look that way though
[22:30:57] phon: has joined #RubyOnRails
[22:32:37] orbyt_: has joined #RubyOnRails
[22:37:08] Radar: starseed00: what is the question behind the question?
[22:37:24] Radar: Why look for an alternate name? To see chaos and confusion amongst your colleagues?
[22:37:56] starseed00: Radar: It goes deep, but it comes down to how my CI/CD pipelines run
[22:38:18] Radar: I'm listening.
[22:38:34] starseed00: Let me see if I can explain myself well, this might take a minute
[22:42:58] starseed00: I am transforming all of our infrastructure to code. My goal is for anyone, at any time, to spin up a production ready "everything" - one thing in that "everything" is a rails application and an angular frontend. So I view it like this: I have a production infrastructure hosting two of my application stacks, one staging, one production. As I said however, at anytime someone should be able to
[22:42:58] starseed00: spin all this up too - mainly for qa and testing, but also in the event of needing to recover from disaster. From the perspective of testing, it doesn't make sense to bring online an environment with a staging and production server, they should really just have a "production" server in their test environment.
[22:43:18] kickr: has joined #RubyOnRails
[22:44:06] starseed00: Additionally, I figured that in this "production" infrastructure there would be a ci/cd pipeline connecting staging and production
[22:45:02] starseed00: But it's really convenient to have a pipeline with each stack - staging, production, or whatever qa environement that automatically builds all the code and deploys when the new infrastructure comes online
[22:45:15] starseed00: I think I just lack experience to know where the boundaries of all this are
[22:45:47] starseed00: But to boil is down, I have a production infrastructure with a production and staging stack inside
[22:46:16] starseed00: A dev can spin up a test infrastructure that technically has a "production" server in it
[22:46:32] mr-spoon: has joined #RubyOnRails
[22:47:20] starseed00: If any of that makes sense I would love to gain from any experience you might have
[22:47:39] Radar: If it's a QA environment, why not call it qa?
[22:48:59] kickr: has joined #RubyOnRails
[22:49:14] starseed00: Radar: It's more like "the qa server of the production infrastructure" vs "the production server of the development infrastructure"
[22:49:41] starseed00: I was just looking for a better name to abstract the "main" server of each infrastructure
[22:50:11] starseed00: But I believe that perhaps my notion of the infrastructure bounds isn't great - and maybe I shouldn't even consider this
[22:50:45] Radar: Maybe by having a more solid idea of boundaries a name would come out of that process organically.
[22:51:20] starseed00: Radar: Do you have much experience with a ci/cd pipeline that runs through staging and production?
[22:51:42] Radar: starseed00: yeah, but ours deploys to statically named servers.
[22:52:44] starseed00: For the environments, are they IaC or just there as hardware?
[22:53:20] starseed00: Or a better question, can you just build up an environment on demand?
[22:54:02] starseed00: I guess I am trying to figure out if production + staging + a pipeline is one thing or three things at the end of the day.
[22:54:32] starseed00: I am starting to think it is three
[23:01:02] Radar: No we can't build an environment on demand here. We are looking to move to such a thing.
[23:01:19] Radar: Sorry, going to be distracted for a bit as our plebiscite result is being announced here in Kangaland.
[23:02:04] starseed00: Radar: No worries
[23:13:01] orbyt_: has joined #RubyOnRails
[23:16:59] centrx: has joined #RubyOnRails
[23:27:59] orbyt_: has joined #RubyOnRails
[23:48:47] alfiemax: has joined #RubyOnRails
[23:55:41] thither: has joined #RubyOnRails
[23:56:08] thither: Will nginx configured to redirect HTTP to HTTPS automatically redirect WS to WSS?