Page 1 of 5 | Next »
[15:41:50] syndikate: I am working on a problem and it is to remove consecutive duplicate elements in a list
[18:05:59] syndikate: I am trying to read the definition of deduce but am not still able to understand :D
[13:02:56] syndikate: How do I do an idiomatic lazy lookup for translations in a partial under namespaced route?
[13:29:45] syndikate: Anybody migrated from feature spec to system specs? I am seeing to be having problem in configuring chrome for capybara
[13:41:42] syndikate: I am not able to understand what to set it to get It running on an existing applicationn
[13:43:22] syndikate: Nope, I whatever I change it brings up chrome and not headless. I have both old Capybara config setting for default driver and the driven_by as well. Let me share config?
[13:59:28] syndikate: tbuehlmann, I think there are many issues, let me do some clean up and get back
[14:38:55] syndikate: tbuehlmann, I have `Rspec.feature` is it mandatory to have that changed to `Rspec.describe` ?
[07:38:05] syndikate: If am running my specs using parallel_tests gems and in between in one of the specs if I call `DatabaseCleaner.clean` does it wipe out data from all the connections? How does this behave?
[07:53:30] syndikate: Now gotta see what happens when we have parallel_tests to the mix :( Why do people have to bring in complicated situations
[12:58:17] syndikate: If my clean up strategy is truncation does it truncate only the data added in that test or the whole table?
[06:51:16] syndikate: havenwood, Thanks! I have been on rails for sometime but haven't written much tools in Ruby. Recently started looking into gems and seeing if I can get hands into more ruby stuff
[06:52:39] syndikate: havenwood, Any pointers, suggestions, mentoring on stuff to begin contribution are all welcome :D socketry/falcon is something that I wanted to look into for a while now. Fibers as well.
[06:56:14] syndikate: havenwood, Oh didn't know that. Sure, I will probably request for clarification for things I don't understand :D
[07:03:35] syndikate: But problem is that there is not much scope to write much stuff with all those in my current work as mostly it's the usual rails related stuff
[07:07:56] syndikate: Exactly, after a while the charm is lost - well for someone who wants to do something new most of the time. It's not that the current application is best ever but when you working with business requirements and timelines out of scope work is always in the backlogs. You do what's required and that's mostly straightforward stuff. So, I thought looking into more of ruby can help me take something back.
[07:09:21] syndikate: I am trying to see how I can (If I can) improve the tooling and use it to it's utmost potential in my project
[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: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: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: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.
[12:35:50] syndikate: Anybody used parallel_tests gem with database_cleaner to run capybara tests? I am running into issue in my pipeline where it gets stuck and not exiting eventually pipeline has to time out
[06:05:31] syndikate: I see this method #with_responders in a codebase I am working on but I can't figure where it is coming from. It's being called on ActiveRecord collection object
[06:34:55] syndikate: My bad everyone, feel so stupid right now. There was a concern written for some other context but used the same naming
[06:19:56] syndikate: IGnorAND, yes, I am trying to understand more innards of the gem. Still looking into it.
[18:49:33] syndikate: I am trying to understand the new Zeitwerk Gem and how it fixes the current issue. Have been going through the code and current Auto Load issues, but failing to understand. Can anybody give me few pointers here please?
[05:13:55] syndikate: https://guides.rubyonrails.org/active_support_instrumentation.html#send-data-action-controller
[04:43:10] syndikate: Is it advised to use Pundit rules in views? I have this page in which a partial has to be rendered only if the user has a certain role.
[11:20:53] syndikate: Do we use son serialisers for non model object? My API has to return a value( integer ) and I can't figure how I would create a serialiser for it. Should I be using jsonapi then I can't create it for an object with no model associated
[11:21:25] syndikate: Just creating a placeholder model object seems overkill and also it won't have a unique id
[17:42:00] syndikate: Not sure what caused this - I used draper gem, created a decorator which has a field being called itself inside a method with same name essentially going into an infinite loop. So, the app got stuck and I killed it. This somehow broke my mysql data. The table name got rewritten and I am not sure where to start debugging for this. Although, I could replace my dev data and go ahead but I want to inv
[06:05:25] syndikate: Does this PR means that there won't be anymore coffee script left in Rails? https://github.com/rails/rails/pull/34177
[18:53:22] syndikate: Hey, can someone help me understand why this happens? https://github.com/rails/rails/blob/1353610ff2ab4d16d022d5c31d5b4e5d908e05a8/actionpack/lib/action_controller/metal/redirecting.rb#L38
[06:53:17] syndikate: If time cop is not used in `before` block would the time freezing leak out globally to all specs?
[07:03:44] syndikate: Or rather I am looking for a strong argument on why time cop should be in `before` blcok
[06:54:57] syndikate: When sorting with ransack if the field values are all same ransack does not sort the entire table - how does ransack manage to do that?
[06:56:00] syndikate: My assumption was this - even if the specific column values are all same, the table should get sorted desc and ask alternatively. Is it because the SQL query returns the rows without difference?
[04:07:51] syndikate: Oh okay, yeah here its' just purely namespacing purpose with not much functionality of it's own, rather than define a self.table_name_prefix
[04:38:33] syndikate: baweaver, pipework another thing though - I have a table_name_prefix for the intended tables (obviously), so as per Rails 5 convention is it okay to create a module and declare a self.table_name_prefix method in it?
[04:39:27] syndikate: I tried, it works. I wanted to know if it's a preferred approach to have such a method in module
[04:51:07] syndikate: baweaver, pipework This is the kind of simplified setup I have now - https://hastebin.com/osixisafuk.rb
[04:57:22] syndikate: Sorry if any confusions were caused, I thank you guys' help. Just wanted to understand if I have any convention to follow
[09:53:28] syndikate: Or you could add a class to the field if the returned object has no error for it?
[04:07:11] syndikate: tycoon177, as in if I use `probations` it will be come `...probations_path` but if I use `probation` it will become `...probation_index_path`
[16:07:03] syndikate: tycoon177, nope. I understand that difference. I had a route like this `resources :probation`. Here, I didn't provide a plural name and things were all quite messed up
[16:07:33] syndikate: I thought it doesn't matter what the resource name's state is but `resource` or `resources` mattered
[18:54:49] syndikate: tycoon177, okay. Although I thought even if I don't give plural names, only the naming schema would be screwed, apparently the whole path is changed
[11:40:58] syndikate: Guys, I have a question related to view logic. One of my view requires data from lot of tables and conditions. As a start I have a service which eager loads all the records and does some transformations to create a data structure and pass to view.
[11:41:35] syndikate: Although In view I still need to alter the data structure, I was wondering where could I put all these logic - wasn't sure if view objects would fit in
[11:42:03] syndikate: I have managed to move out all the database calls to the controller, but there is still some data transormaation left.
[08:24:04] syndikate: Is there any helper In rails where I can show the time difference in XX year YY months only? I was looking at disance_of_time_in_words but wasn't sure if that was possible in that method
[08:47:29] syndikate: Trying to use scope: for distance_of_time_in_words, looks much cumbersome to get it working the way I want
[06:27:55] syndikate: Not sure if it's the right way to do it but is it possible to lazy load in rails console?
[06:29:06] syndikate: So what am trying to do is, calling an enumerator method on an eager loaded association, if that association is not eager loaded ( i.e lazy loading) then what would happen when that enumerator method is called?
[06:18:12] syndikate: In one of my methods I have to call params[:date] three times since I am passing it to different methods. Rubocop highlights this and tells me I am calling it multiple times. I am not sure how to address this, is assigning that to a variable and using it a good practice? Or I just ignore it?
[06:28:16] syndikate: Yeah so I was calling that hash more than once but I saw no use in assigning it to a variable. Alright, thanks.
[06:25:03] syndikate: I need to temporarily disable has_secure_token on a field. Is it okay if I don't migrate and remove the field but just remove the line `has_secure_token token_field`?
[12:15:23] syndikate: Date.strptime gave me this error Exception: invalid strptime format - `%F'. I can't figure what %F is. My date to parse is of the format this "14 Jul 2018"
[12:36:39] syndikate: Okay, I need to clarify couple of things. If not template is passed strptime uses %F
[12:41:21] syndikate: I was looking at the source code of that method. So, my conclusion is that I was passing wrong string format.
[12:43:59] syndikate: Now, my actual problem here is that my backed expects another format and teh frontend provides another
[12:44:44] syndikate: I have a validator send to expect a format and parsing happens with that format
[12:55:33] syndikate: Okay, so how do you say this can be solved? I have some code in backend which expects Date.strptime('date_string', EXPECTED_FORMAT)
[10:51:45] syndikate: I have a ActiveJob which updates the associations of a record. The association ids are passed as arguments. As of now I blindly get the id and write it to the target record.
[06:03:02] syndikate: Is there an opposite of Hash#slice in ruby? Like I can provide a key which I don't want and display the hash with rest of the key and values?
[06:07:48] syndikate: Okay, so there is no ready method which would accept just a key I would have to provide a block
[06:10:57] syndikate: In fact #except works as well like elomatreb said. But, good to know these. Thanks elomatreb dminuoso
[06:13:41] syndikate: I kept providing keys for a while and was wondering why the method is not working
[12:28:34] syndikate: Is there a way to put a unique constraint/index on a specific value? As in I need the unique index on two fields when one of the field has a specific value
[12:35:42] syndikate: Can anybody help me understand the difference between concurrency and number of workers in sidekiq settings? I do understand what workers are and concurrency sets the number of threads for the sidekiq process.
[12:47:58] syndikate: tbuehlmann, I was looking at sidekiq configs. I see an option to set concurrency and it says it means number of threads. What does that mean? Number of threads for the sidekiq process as a whole?
[12:50:13] syndikate: Okay, so how does number of workers and number of threads come into play? tbuehlmann
[12:53:29] syndikate: tbuehlmann, Okay I think my understanding was off - so how do I increase the number of workers?
[13:00:41] syndikate: Oh okay tbuehlmann Thanks! Will read up and get back if I have any more doubts
[09:25:16] syndikate: dminuoso, Na, this is a scaffold app, my aim is to learn something else - so there is nothing in the app basically
[12:21:50] syndikate: How can I change the redis url for my rails app? I was trying to deploy it in kubernetes but rails is unable to connect to redis
[19:00:35] syndikate: If I assign an ENV variable in a before block in a rspec test, does it pollute the whole test session or will it be available only for the specific spec file?
[19:05:19] syndikate: I was wondering if I should add an after block and remove it. I only need it in two spec files. Thought I will add it in manually
[19:20:42] syndikate: BloopMonster, okay it fails in one case. I am having a spec for a service. RSpec.describe QiscusSyncService do
[19:21:12] syndikate: So, when that gets initialised, it fails. It expects it to be present before that I believe